/* ═══════════════════════════════════════════
   DTR Request Access — Navy Blue Theme
   Matches employee dashboard navbar palette
   ═══════════════════════════════════════════ */

/* Hide navbar and sidebar when on request pages */
body:has(.dtr-request-wrap) .page-header,
body:has(.dtr-request-wrap) .navbar,
body:has(.dtr-request-wrap) .page-sidebar-wrapper,
body:has(.dtr-request-wrap) .sidebar,
body:has(.dtr-request-wrap) .portal-footer,
body:has(.dtr-request-wrap) .go2top {
    display: none !important;
}

/* Override all wrappers so the page takes full screen */
body:has(.dtr-request-wrap),
body:has(.dtr-request-wrap) .wrapper,
body:has(.dtr-request-wrap) .page-container,
body:has(.dtr-request-wrap) .page-content {
    margin: 0 !important;
    padding: 0 !important;
    background: #0f172a !important;
    background-color: #0f172a !important;
    min-height: 100vh !important;
    width: 100% !important;
}

.content-wrapper:has(.dtr-request-wrap) {
    margin: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    min-height: 100vh !important;
}

.dtr-request-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    width: 100%;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.12), transparent 24%),
        radial-gradient(circle at right center, rgba(30, 41, 59, 0.16), transparent 26%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
}

.dtr-request-card {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    padding: 48px 44px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 24px 48px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(100, 116, 139, 0.1);
    animation: dtrSlideUp 0.5s ease-out;
}

.dtr-request-card-wide {
    max-width: 680px;
}

@keyframes dtrSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Icon badge ── */
.dtr-card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 14px 24px rgba(59, 130, 246, 0.3);
    color: #fff;
    font-size: 1.7rem;
}

/* ── Title & subtitle ── */
.dtr-card-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0 0 6px;
}

.dtr-card-subtitle {
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 32px;
}

/* ── Form ── */
.dtr-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Field group ── */
.dtr-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dtr-label {
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dtr-required {
    color: #ef4444;
}

/* ── Input with icon ── */
.dtr-input-icon {
    position: relative;
}

.dtr-input-icon > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #94a3b8;
    z-index: 2;
    pointer-events: none;
    transition: color 0.2s;
}

.dtr-input-icon:focus-within > i {
    color: #3b82f6;
}

.dtr-input {
    width: 100%;
    height: auto !important;
    padding: 14px 16px 14px 48px !important;
    border: 2px solid transparent !important;
    border-radius: 14px !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-size: 1.15rem !important;
    font-family: inherit;
    transition: all 0.25s ease;
}

.dtr-input:focus {
    border-color: #3b82f6 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
    outline: none !important;
}

.dtr-input::placeholder {
    color: #94a3b8;
}

.dtr-select {
    appearance: auto;
    cursor: pointer;
}

/* ── Form grid (save page) ── */
.dtr-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

/* ── Info bar (employee details) ── */
.dtr-info-bar {
    display: flex;
    gap: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 16px;
    padding: 0;
    margin-bottom: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.dtr-info-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.dtr-info-item:last-child {
    border-right: none;
}

.dtr-info-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(203, 213, 225, 0.6);
}

.dtr-info-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -0.01em;
}

/* ── Checkbox ── */
.dtr-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    color: #64748b;
    cursor: pointer;
    margin-top: 2px;
}

.dtr-checkbox input[type="checkbox"] {
    width: auto;
    height: auto;
}

/* ── Help text ── */
.dtr-help-text {
    font-size: 0.92rem;
    color: #ef4444;
    min-height: 0;
}

/* ── Buttons ── */
.dtr-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 14px 28px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    font-family: inherit;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dtr-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(59, 130, 246, 0.3);
}

.dtr-btn-primary:active {
    transform: translateY(0);
}

.dtr-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: #64748b;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.dtr-btn-outline:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.04);
}

/* ── Form actions row ── */
.dtr-form-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 12px;
}

.dtr-form-actions .dtr-btn-primary {
    flex: 1;
}

/* ── Alert ── */
.dtr-alert {
    display: flex !important;
    align-items: center;
    gap: 10px;
    border: none !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.dtr-alert.alert-danger {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border-left: 3px solid #ef4444 !important;
}

.dtr-alert.alert-success {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border-left: 3px solid #10b981 !important;
}

.dtr-alert i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ── Notice blocks ── */
.dtr-notice {
    margin-top: 28px;
    padding: 28px;
    border-radius: 16px;
    text-align: center;
    animation: dtrSlideUp 0.4s ease-out 0.2s both;
}

.dtr-notice-warning {
    background: #fffbeb;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.dtr-notice-danger {
    background: #fef2f2;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.dtr-notice-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
    font-size: 1.4rem;
}

.dtr-notice-icon.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.dtr-notice h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.dtr-notice p {
    font-size: 1.08rem;
    line-height: 1.65;
    color: #64748b;
    margin: 0 0 6px;
}

.dtr-notice .dtr-btn-outline {
    margin-top: 16px;
}

/* ── Utility ── */
.display-hide { display: none !important; }

/* ── Responsive ── */
@media (max-width: 767.98px) {
    .dtr-request-wrap {
        padding: 20px 12px;
        align-items: flex-start;
        padding-top: 32px;
    }

    .dtr-request-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .dtr-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .dtr-card-title {
        font-size: 1.9rem;
    }

    .dtr-card-subtitle {
        font-size: 1.08rem;
    }

    .dtr-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dtr-info-bar {
        flex-direction: column;
    }

    .dtr-info-item {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 14px 18px;
    }

    .dtr-info-item:last-child {
        border-bottom: none;
    }

    .dtr-form-actions {
        flex-direction: column;
    }

    .dtr-form-actions .dtr-btn-outline {
        width: 100%;
    }
}

@media (max-width: 479.98px) {
    .dtr-request-card {
        padding: 22px 16px;
        border-radius: 18px;
    }

    .dtr-card-icon {
        width: 52px;
        height: 52px;
        border-radius: 14px;
        font-size: 1.2rem;
    }

    .dtr-card-title {
        font-size: 1.7rem;
    }

    .dtr-btn-primary,
    .dtr-btn-outline {
        min-height: 50px;
    }
}

/* Force rounded request account UI against global/theme overrides */
body:has(.dtr-request-wrap) .dtr-request-card {
    border-radius: 24px !important;
    overflow: hidden !important;
}

body:has(.dtr-request-wrap) .dtr-card-icon {
    border-radius: 18px !important;
}

body:has(.dtr-request-wrap) .dtr-input,
body:has(.dtr-request-wrap) .dtr-btn-primary,
body:has(.dtr-request-wrap) .dtr-btn-outline {
    border-radius: 14px !important;
}
