@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

* {
    font-family: "Poppins", sans-serif;
}

html,
body {
    background-color: #1F1F1F !important;
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100vh;
}

.page {
    background-color: #1F1F1F;
    min-height: 100vh;
}

.rz-fileupload-buttonbar {
    background-color: white !important;
}

.body-wrapper {
    min-height: calc(100vh - 85px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #1F1F1F;
}

.modern-container {
    max-width: 700px;
    width: 100%;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.modern-container header {
    font-size: 1.5rem;
    color: #333;
    font-weight: 500;
    text-align: center;
    margin-bottom: 30px;
}

.modern-form {
    margin-top: 30px;
}

.input-box {
    width: 100%;
    margin-top: 20px;
}

.input-box label {
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.input-box input,
.input-box select,
.select-box select,
.modern-input,
.modern-select {
    height: 50px;
    width: 100%;
    outline: none;
    font-size: 1rem;
    color: #707070;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0 15px;
}

.input-box input:focus,
.input-box select:focus,
.modern-input:focus,
.modern-select:focus {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    border-color: #2F7599;
}

.column {
    display: flex;
    column-gap: 15px;
}

.gender-box {
    margin-top: 20px;
}

.gender-box h3 {
    color: #333;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.gender-option,
.gender {
    display: flex;
    align-items: center;
    column-gap: 50px;
    flex-wrap: wrap;
}

.gender {
    column-gap: 5px;
}

.gender input {
    accent-color: #2F7599;
}

.gender input,
.gender label {
    cursor: pointer;
}

.gender label {
    color: #707070;
}

.modern-btn {
    height: 55px;
    width: 100%;
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #1F1F1F;
    border-radius: 6px;
}

.modern-btn:hover {
    background: #2F7599;
}

.modern-btn.danger {
    background: #d9534f;
    margin-top: 10px;
}

.modern-btn.danger:hover {
    background: #c9302c;
}

.input-box textarea,
.modern-textarea {
    width: 100%;
    height: 120px;
    outline: none;
    font-size: 1rem;
    color: #707070;
    margin-top: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 15px;
    resize: none;
}

.input-box textarea:focus,
.modern-textarea:focus {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    border-color: #2F7599;
}

/* Specific Select Box styling wrapper if needed */
.select-box {
    width: 100%;
    margin-top: 20px;
}

/* Responsive */
@media screen and (max-width: 500px) {
    .column {
        flex-wrap: wrap;
    }

    .gender-option,
    .gender {
        row-gap: 15px;
    }
}

/* Modern Card and Icon Buttons */
.modern-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eee;
}

.modern-card p {
    margin: 0;
    color: #333;
    font-weight: 500;
}

.modern-icon-btn {
    background: #1F1F1F;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.modern-icon-btn:hover {
    background: #333;
}

.modern-icon-btn .rzi {
    color: white !important;
}

/* Dashboard Styles */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    width: 100%;
}

/* Dark Modern Dashboard Card */
.dashboard-card {
    background: #1E1E1E;
    /* Dark surface */
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #333;
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    align-items: center;
    justify-content: space-between;
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: #555;
    background: #252525;
}

/* Decorative glow effect */
.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #2F7599, transparent);
    opacity: 0.7;
}

.dashboard-card:hover::before {
    opacity: 1;
}

.dashboard-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2F2F2F;
    /* Subtly lighter dark */
    margin-right: 20px;
    border: 1px solid #444;
}

.dashboard-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.dashboard-count {
    font-size: 2.2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.1;
}

.dashboard-title {
    font-size: 0.95rem;
    color: #A0A0A0;
    font-weight: 500;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

/* Adjust grid gap */
.dashboard-grid {
    gap: 30px;
}




/* Dashboard Detail Modal Styles */
.dashboard-detail-container {
    padding: 10px;
    text-align: center;
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1F1F1F;
    margin: 0;
}

.detail-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin: 0;
}

.gauge-container {
    margin: 30px 0;
    position: relative;
}

.gauge-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.detail-description {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 30px;
    border-left: 4px solid #2F7599;
}

/* Modern Tags */
.modern-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-tag.reparacion {
    background-color: rgba(0, 188, 125, 0.15);
    color: #00BC7D;
    border: 1px solid rgba(0, 188, 125, 0.3);
}

.modern-tag.mantenimiento {
    background-color: rgba(124, 134, 224, 0.15);
    color: #7C86E0;
    border: 1px solid rgba(124, 134, 224, 0.3);
}

.detail-footer {
    display: flex;
    justify-content: center;
}

/* Override Radzen Dialog for softer look */
.rz-dialog-content {
    border-radius: 15px !important;
    padding: 30px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

.rz-dialog-titlebar {
    background: transparent !important;
    border: none !important;
    padding: 20px 20px 0 0 !important;
}

/* Custom Modal Styles (for RevisarMantenimientos) */
.overlay-dialog {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.container-dialog {
    background-color: #ffffff;
    width: 90%;
    max-width: 800px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 0;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    color: #333;
    overflow-y: auto;
}

/* BtnDelMant Styles */
.mant-btn {
    cursor: pointer;
    width: 37.5px;
    height: 23px;
    position: relative;
    border-radius: 10px;
    -webkit-transition: .2s linear;
    transition: .2s linear;
    transition-delay: .2s;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: space-between;
}

.mant-btn:hover {
    width: 112px;
    height: 23px;
    transition-delay: .2s;
    color: white;
}

.mant-btn-red:hover {
    background: #e62222;
}

.mant-btn-blue:hover {
    background: #A6D3EA;
}

.mant-btn:hover>.paragraph {
    visibility: visible;
    opacity: 1;
    -webkit-transition-delay: .4s;
    transition-delay: .4s;
}

.mant-btn:hover>.icon-wrapper .icon {
    transform: scale(1.1);
}

.mant-btn:focus {
    box-shadow: none;
}

.mant-btn:hover>.icon-wrapper .icon path {
    stroke: black;
}

.mant-btn .paragraph {
    color: black;
    visibility: hidden;
    opacity: 0;
    font-size: 13.5px;
    margin-right: 15px;
    padding-left: 15px;
    -webkit-transition: .2s linear;
    transition: .2s linear;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.mant-btn .icon-wrapper {
    width: 37.5px;
    height: 23px;
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mant-btn .icon {
    transform: scale(.9);
    transition: .2s linear;
}

.mant-btn .icon path {
    stroke: #000;
    stroke-width: 2px;
    -webkit-transition: .2s linear;
    transition: .2s linear;
}

/* Taps Styles */
/* From Uiverse.io by GustavoAlmeidaPuff */
.mode+.container-tab {
    --color-pure: #000;
    --color-primary: #e8e8e8;
    --color-secondary: #212121;
    --muted: #b8b8b8;
}

.mode:checked+.container-tab {
    --color-pure: #fff;
    --color-primary: #212121;
    --color-secondary: #fff;
    --muted: #383838;
}

.container-tab {
    background-color: transparent !important;
    /* Changed from #1F1F1F to integrate with body-wrapper */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 20px;
}

.container-tab .theme {
    color: var(--color-secondary);
    background-color: var(--color-primary);
    position: relative;
    cursor: pointer;
    z-index: 9;
    border: 1px solid var(--muted);
    border-radius: calc(var(--round) - var(--p-y));
    margin-left: calc(var(--p-x) * 2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: background-color 0.25s linear;
}

.container-tab .theme:hover {
    background-color: var(--muted);
}

.container-tab .theme::before {
    content: "";
    position: absolute;
    left: calc(var(--p-x) * -1);
    width: 1px;
    height: 100%;
    background-color: var(--muted);
}

.container-tab .theme span {
    border: none;
    outline: none;
    background-color: transparent;
    padding: 0.125rem;
    border-radius: 9999px;
    align-items: center;
    justify-content: center;
}

.mode:checked+.container-tab .theme span.light,
.mode+.container-tab .theme span.dark {
    display: none;
}

.mode+.container-tab .theme span.light,
.mode:checked+.container-tab .theme span.dark {
    display: flex;
}

.container-tab .theme svg {
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke: currentColor;
    fill: none;
    height: 22px;
    width: 22px;
}

/* main style */
.wrap {
    --round: 10px;
    --p-x: 8px;
    --p-y: 4px;
    --w-label: 100px;
    display: flex;
    align-items: center;
    padding: var(--p-y) var(--p-x);
    position: relative;
    background: #FFF;
    border-radius: var(--round);
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    top: 0;
    z-index: 1;
}

.wrap input {
    height: 0;
    width: 0;
    position: absolute;
    overflow: hidden;
    display: none;
    visibility: hidden;
}

.label {
    cursor: pointer;
    outline: none;
    font-size: 0.875rem;
    letter-spacing: initial;
    font-weight: 500;
    color: var(--color-secondary);
    background: transparent;
    padding: 12px 16px;
    width: var(--w-label);
    min-width: var(--w-label);
    text-decoration: none;
    transition: color 0.25s ease;
    outline-offset: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.label span {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.wrap input[class*="rd-"]:checked+label {
    color: var(--color-pure);
}

.bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: absolute;
    transform-origin: 0 0 0;
    height: 100%;
    width: var(--w-label);
    z-index: 0;
    transition: transform 0.5s cubic-bezier(0.33, 0.83, 0.99, 0.98);
}

.bar::before,
.bar::after {
    content: "";
    position: absolute;
    height: 4px;
    width: 100%;
    background: var(--color-secondary);
}

.bar::before {
    top: 0;
    border-radius: 0 0 9999px 9999px;
}

.bar::after {
    bottom: 0;
    border-radius: 9999px 9999px 0 0;
}

.slidebar {
    position: absolute;
    height: calc(100% - (var(--p-y) * 4));
    width: var(--w-label);
    border-radius: calc(var(--round) - var(--p-y));
    background: var(--muted);
    transform-origin: 0 0 0;
    z-index: 0;
    transition: transform 0.5s cubic-bezier(0.33, 0.83, 0.99, 0.98);
}

.rd-1:checked~.bar,
.rd-1:checked~.slidebar,
.rd-1+label:hover~.slidebar {
    transform: translateX(0) scaleX(1);
}

.rd-2:checked~.bar,
.rd-2:checked~.slidebar,
.rd-2+label:hover~.slidebar {
    transform: translateX(100%) scaleX(1);
}

.rd-3:checked~.bar,
.rd-3:checked~.slidebar,
.rd-3+label:hover~.slidebar {
    transform: translateX(200%) scaleX(1);
}

/* Modern Table Styles */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    color: #333;
    font-size: 0.95rem;
}

.modern-table th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #e0e0e0;
}

.modern-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.modern-table tr:hover {
    background-color: #f9f9f9;
}

.modern-table tr:last-child td {
    border-bottom: none;
}

/* Modern CSS Loader */
.modern-loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    flex-direction: column;
    gap: 20px;
}

.modern-loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(47, 117, 153, 0.3);
    border-radius: 50%;
    border-top-color: #2F7599;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

.loader-text {
    color: #a0a0a0;
    font-size: 0.9rem;
    letter-spacing: 1px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* Fix Radzen DatePicker z-index to appear above high z-index modals */
.rz-datepicker-popup,
.rz-popup,
.rz-dropdown-panel {
    z-index: 20000 !important;
}