﻿/* inside container */
.emp-tab-panes {
    padding-top: 0.9rem;
}

.content-card .card-header{
    padding:0;
    border-bottom:none;
}

.content-card .nav-tabs {
    border-bottom: 1px solid rgba(148, 163, 184, 0.5);
    /*margin-bottom: 0.5rem;*/
    background: linear-gradient( 90deg, rgba(15, 118, 110, 0.12), rgba(14, 165, 233, 0.08) );
    border-radius: 0.6rem;
    padding: 0.2rem;
}

    .content-card .nav-tabs .nav-item {
        margin-right: 0.1rem;
    }

    .content-card .nav-tabs .nav-link {
        border: none;
        border-radius: 0.45rem;
        color: #0f172a;
        font-size: 0.9rem;
        font-weight: 500;
        padding: 0.35rem 0.8rem;
        background-color: transparent;
        transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    }

        .content-card .nav-tabs .nav-link:hover {
            background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
            color: #065f46;
            box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
            transform: translateY(-1px);
        }

        /* active tab */
        .content-card .nav-tabs .nav-link.active {
            background: linear-gradient(135deg, #059669, #0f766e);
            color: #ecfdf5;
            box-shadow: 0 3px 10px rgba(5, 150, 105, 0.5);
        }

    /* dropdown in tab bar */
    .content-card .nav-tabs .nav-item.dropdown .nav-link {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .content-card .nav-tabs .dropdown-menu {
        border-radius: 0.45rem;
        border: 1px solid rgba(148, 163, 184, 0.7);
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
    }

    .content-card .nav-tabs .dropdown-item:hover {
        background: linear-gradient(135deg, #ecfdf5, #e0f2fe);
        color: #065f46;
    }

/* ---------------------------------------------------
   Inner cards in "Persönliche Daten" tab
--------------------------------------------------- */

.emp-det-container .card {
    border-radius: 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background-color: var(--tt-card-bg);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}

.emp-det-container .card-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.6rem 0.9rem;
    background: linear-gradient( 90deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.06) );
}

    .emp-det-container .card-header h2,
    .emp-det-container .card-header h5 {
        margin: 0;
        color: var(--tt-green-main);
    }

.emp-det-container .card-body {
    padding: 0.9rem 1rem 1rem;
}

/* read-only inputs */
.emp-det-container .form-control[readonly],
.emp-det-container input[readonly] {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #111827;
}

/* labels */
.emp-det-container .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--tt-text-muted);
}

/* ---------------------------------------------------
   Special cards: bank, disability, additional employment
--------------------------------------------------- */

.bank-card,
.disability-card {
    border-radius: 0.6rem;
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: radial-gradient( circle at top left, #ecfdf5 0%, #f9fafb 60%, #ffffff 100% );
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

    .bank-card .card-title,
    .disability-card .card-title {
        color: var(--tt-green-main);
    }

/* Request list items */
.dis-con-requests .list-group-item {
    border-radius: 0.5rem;
    border-color: rgba(148, 163, 184, 0.5);
    background: #f9fafb;
    margin-bottom: 0.4rem;
}

.dis-con-requests .small.text-muted {
    color: var(--tt-text-muted) !important;
}

/* Status badges: assume statuses like "pending", "approved", "rejected" */
.badge.pending {
    background-color: #facc15;
    color: #1f2937;
}

.badge.approved {
    background-color: #22c55e;
    color: #022c22;
}

.badge.rejected {
    background-color: #ef4444;
    color: #f9fafb;
}

/* ---------------------------------------------------
   Buttons inside this page
--------------------------------------------------- */

/* header buttons on cards */
.emp-det-container .card-header .btn.btn-primary,
.emp-det-container .add-shift-btn,
.emp-det-container .add-document-btn {
    border: none;
    border-radius: 0.45rem;
    background: linear-gradient(135deg, #059669, #0f766e);
    color: #f9fafb;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.5);
}

    .emp-det-container .card-header .btn.btn-primary:hover,
    .emp-det-container .add-shift-btn:hover,
    .emp-det-container .add-document-btn:hover {
        background: linear-gradient(135deg, #10b981, #0284c7);
    }

/* outline-danger in cards (delete actions) */
.emp-det-container .btn.btn-outline-danger.btn-sm {
    border-radius: 0.4rem;
    border-color: rgba(239, 68, 68, 0.7);
    color: #b91c1c;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
}

    .emp-det-container .btn.btn-outline-danger.btn-sm:hover {
        background: linear-gradient(135deg, #fee2e2, #fecaca);
    }

/* Disability modal "button" elements using .button class */
.submit-disability-btn,
#disabilityModal .button {
    border-radius: 0.5rem;
}

/* ---------------------------------------------------
   Second tab: small summary tiles
--------------------------------------------------- */

#secondTabPane .border.rounded.py-2.bg-light {
    border-radius: 0.6rem !important;
    border-color: rgba(148, 163, 184, 0.6) !important;
    background: linear-gradient( 135deg, #ecfdf5, #e0f2fe ) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

#secondTabPane .fw-bold {
    color: var(--tt-green-main);
}

#secondTabPane .text-muted.small {
    color: var(--tt-text-muted) !important;
}

/* ---------------------------------------------------
   Tables in tab 4 & 5 (if not already using .tt-table)
--------------------------------------------------- */

.datatable-shifts,
.datatable-documents {
    /* if you want them to look like tt-table without changing markup */
    background-color: #f9fafb;
    border-radius: 0.5rem;
    overflow: hidden;
    border-color: #e5e7eb;
}

    .datatable-shifts thead,
    .datatable-documents thead {
        background: linear-gradient(90deg, #047857, #0f766e, #0ea5e9);
        color: #ecfdf5;
    }

        .datatable-shifts thead th,
        .datatable-documents thead th {
            background: transparent;
            border-color: rgba(15, 118, 110, 0.45);
        }

/* ---------------------------------------------------
   Modals (general styling for this page)
--------------------------------------------------- */

.modal-content {
    border-radius: 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
}

.modal-header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.5);
    background: linear-gradient( 90deg, rgba(15, 23, 42, 0.9), rgba(15, 118, 110, 0.9) );
    color: #f9fafb;
}

    .modal-header .modal-title {
        font-weight: 600;
    }

.modal-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.5);
}

/* primary/secondary in modals */
.modal-content .btn.btn-primary {
    border-radius: 0.45rem;
    border: none;
    background: linear-gradient(135deg, #059669, #0f766e);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.6);
}

    .modal-content .btn.btn-primary:hover {
        background: linear-gradient(135deg, #10b981, #0284c7);
    }

.modal-content .btn.btn-secondary {
    border-radius: 0.45rem;
}


/* ==============================
   Stundenübersicht – Tab 2
============================== */

#secondTabPane {
    padding-top: 0.75rem;
}

    /* KPI row at the top */
    #secondTabPane .hours-summary-row {
        margin-inline: 0;
    }

    #secondTabPane .hours-summary-card {
        border-radius: 0.6rem;
        border-color: rgba(148, 163, 184, 0.7) !important;
        background: linear-gradient( 135deg, #ecfdf5, #e0f2fe ) !important;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
    }

        #secondTabPane .hours-summary-card .text-muted.small {
            color: #6b7280 !important;
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }

        #secondTabPane .hours-summary-card .fw-bold {
            color: #065f46;
        }

    /* ==============================
   Left card: Letzte Zeiteinträge
============================== */

    #secondTabPane .card {
        border-radius: 0.6rem;
        border: 1px solid rgba(148, 163, 184, 0.6);
        background-color: #f9fafb;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
    }

    #secondTabPane .card-header {
        border-bottom: 1px solid rgba(148, 163, 184, 0.45);
        padding: 0.55rem 0.85rem;
        background: linear-gradient( 90deg, rgba(16, 185, 129, 0.1), rgba(14, 165, 233, 0.08) );
    }

        #secondTabPane .card-header h5 {
            margin: 0;
            font-size: 0.95rem;
            font-weight: 600;
            color: #065f46;
        }

    #secondTabPane .card-body {
        padding: 0.9rem 0.95rem 1rem;
    }

    /* Date filters in header */
    #secondTabPane .card-header .form-control.form-control-sm {
        border-radius: 0.45rem;
        border-color: rgba(148, 163, 184, 0.75);
        font-size: 0.8rem;
        padding-inline: 0.4rem;
    }

        #secondTabPane .card-header .form-control.form-control-sm:focus {
            box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.45);
            border-color: rgba(5, 150, 105, 0.9);
        }

    /* Table – uses tt-table for main styling, just adjust spacing here */
    #secondTabPane #userTimeEntriesTable {
        margin-bottom: 0;
    }

    /* ==============================
   Right card: Monatsübersicht
============================== */

    #secondTabPane .col-lg-4 .card {
        background: radial-gradient( circle at top left, #ecfdf5 0%, #f9fafb 60%, #ffffff 100% );
    }

    #secondTabPane .col-lg-4 .card-header {
        background: linear-gradient( 90deg, rgba(16, 185, 129, 0.12), rgba(56, 189, 248, 0.08) );
    }

        #secondTabPane .col-lg-4 .card-header h5 {
            color: #065f46;
            font-size: 0.95rem;
        }

    #secondTabPane .col-lg-4 dl.row {
        margin-bottom: 0;
    }

    #secondTabPane .col-lg-4 dt {
        font-size: 0.8rem;
        color: #6b7280;
    }

    #secondTabPane .col-lg-4 dd {
        font-size: 0.9rem;
        color: #111827;
    }

    /* Positive/negative balance colors (reuse existing logic) */
    #secondTabPane .text-success {
        color: #16a34a !important;
    }

    #secondTabPane .text-danger {
        color: #dc2626 !important;
    }


/* ==============================
   Schichten – Tab 3
============================== */

#thirdTabPane {
    padding-top: 0.75rem;
}

    /* KPI row */
    #thirdTabPane .shift-summary-row {
        margin-inline: 0;
    }

    #thirdTabPane .shift-summary-card {
        border-radius: 0.6rem;
        border-color: rgba(148, 163, 184, 0.7) !important;
        background: linear-gradient( 135deg, #ecfdf5, #e0f2fe ) !important;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
    }

        #thirdTabPane .shift-summary-card .text-muted.small {
            color: #6b7280 !important;
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }

        #thirdTabPane .shift-summary-card .fw-bold {
            color: #065f46;
        }

    /* Main cards */
    #thirdTabPane .card {
        border-radius: 0.6rem;
        border: 1px solid rgba(148, 163, 184, 0.6);
        background-color: #f9fafb;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
    }

    #thirdTabPane .card-header {
        border-bottom: 1px solid rgba(148, 163, 184, 0.45);
        padding: 0.55rem 0.85rem;
        background: linear-gradient( 90deg, rgba(16, 185, 129, 0.1), rgba(14, 165, 233, 0.08) );
    }

        #thirdTabPane .card-header h5 {
            margin: 0;
            font-size: 0.95rem;
            font-weight: 600;
            color: #065f46;
        }

    #thirdTabPane .card-body {
        padding: 0.9rem 0.95rem 1rem;
    }

    /* Assign card specific tweaks */
    #thirdTabPane .shift-assign-card .form-label {
        font-size: 0.8rem;
        font-weight: 500;
        color: #6b7280;
    }

    #thirdTabPane .shift-assign-card .form-select {
        border-radius: 0.45rem;
        border-color: rgba(148, 163, 184, 0.75);
        font-size: 0.85rem;
    }

        #thirdTabPane .shift-assign-card .form-select:focus {
            box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.45);
            border-color: rgba(5, 150, 105, 0.9);
        }

    /* Legend card */
    #thirdTabPane .shift-hint-card ul li strong {
        color: #111827;
    }

    /* Table spacing (tt-table already handles look) */
    #thirdTabPane #userShiftsTable {
        margin-bottom: 0;
    }

/* Edit/archive buttons (icon style) */
/*.edit-shift-btn {
    border-radius: 0.4rem;
    border: 1px solid #a7f3d0;
    background: #f9fafb;
    color: #047857;
    padding: 0.2rem 0.35rem;
    font-size: 0.8rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

    .edit-shift-btn i {
        font-size: 0.85rem;
    }

    .edit-shift-btn:hover {
        background: linear-gradient(135deg, #10b981, #0f766e);
        border-color: #0f766e;
        color: #ecfdf5;
        box-shadow: 0 3px 10px rgba(5, 150, 105, 0.55);
        transform: translateY(-1px);
    }*/

/* archive button shares theme with other outline-danger buttons */
.archive-shift-btn {
    border-radius: 0.4rem;
    font-size: 0.8rem;
    padding: 0.2rem 0.45rem;
}


/* ==============================
   Urlaub – Tab 4
============================== */

#fourthTabPane {
    padding-top: 0.75rem;
}

    /* KPI row */
    #fourthTabPane .vacation-summary-row {
        margin-inline: 0;
    }

    #fourthTabPane .vacation-summary-card {
        border-radius: 0.6rem;
        border-color: rgba(148, 163, 184, 0.7) !important;
        background: linear-gradient( 135deg, #fefce8, /* leicht gelblich */
        #ecfdf5 /* mint */
        ) !important;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
    }

        #fourthTabPane .vacation-summary-card .text-muted.small {
            color: #6b7280 !important;
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }

        #fourthTabPane .vacation-summary-card .fw-bold {
            color: #065f46;
        }

    /* Cards */
    #fourthTabPane .card {
        border-radius: 0.6rem;
        border: 1px solid rgba(148, 163, 184, 0.6);
        background-color: #f9fafb;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
    }

    #fourthTabPane .card-header {
        border-bottom: 1px solid rgba(148, 163, 184, 0.45);
        padding: 0.55rem 0.85rem;
        background: linear-gradient( 90deg, rgba(250, 204, 21, 0.12), /* warm yellow */
        rgba(16, 185, 129, 0.12) /* mint */
        );
    }

        #fourthTabPane .card-header h5 {
            margin: 0;
            font-size: 0.95rem;
            font-weight: 600;
            color: #854d0e; /* etwas sonniger Ton */
        }

    #fourthTabPane .card-body {
        padding: 0.9rem 0.95rem 1rem;
    }

    /* Vacation table */
    #fourthTabPane #vacationRequestsTable {
        margin-bottom: 0;
    }

    /* "New vacation request" button */
    #fourthTabPane .add-vacation-request-btn {
        border: none;
        border-radius: 0.45rem;
        background: linear-gradient(135deg, #facc15, #eab308);
        color: #1f2937;
        font-size: 0.82rem;
        padding: 0.3rem 0.8rem;
        box-shadow: 0 4px 10px rgba(202, 138, 4, 0.55);
    }

        #fourthTabPane .add-vacation-request-btn:hover {
            background: linear-gradient(135deg, #fde047, #f59e0b);
        }

    /* Overview dl */
    #fourthTabPane .col-lg-4 dl.row {
        margin-bottom: 0;
    }

    #fourthTabPane .col-lg-4 dt {
        font-size: 0.8rem;
        color: #6b7280;
    }

    #fourthTabPane .col-lg-4 dd {
        font-size: 0.9rem;
        color: #111827;
    }

    /* Upcoming vacations list */
    #fourthTabPane .col-lg-4 .card-body ul li .fw-semibold {
        color: #065f46;
    }

/* Status badges (reuse patterns from elsewhere if you like) */
.badge.pending {
    background-color: #facc15;
    color: #1f2937;
}

.badge.approved {
    background-color: #22c55e;
    color: #022c22;
}

.badge.rejected {
    background-color: #ef4444;
    color: #f9fafb;
}

.badge.cancelled,
.badge.canceled {
    background-color: #9ca3af;
    color: #111827;
}




/* ==============================
   Dokumente – Tab 5
============================== */

#fifthTabPane {
    padding-top: 0.75rem;
}

    /* KPI row */
    #fifthTabPane .docs-summary-row {
        margin-inline: 0;
    }

    #fifthTabPane .docs-summary-card {
        border-radius: 0.6rem;
        border-color: rgba(148, 163, 184, 0.7) !important;
        background: linear-gradient( 135deg, #ecfdf5, #e0f2fe ) !important;
        box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
    }

        #fifthTabPane .docs-summary-card .text-muted.small {
            color: #6b7280 !important;
            font-size: 0.78rem;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }

        #fifthTabPane .docs-summary-card .fw-bold {
            color: #065f46;
        }

    /* Cards */
    #fifthTabPane .card {
        border-radius: 0.6rem;
        border: 1px solid rgba(148, 163, 184, 0.6);
        background-color: #f9fafb;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.18);
    }

    #fifthTabPane .card-header {
        border-bottom: 1px solid rgba(148, 163, 184, 0.45);
        padding: 0.55rem 0.85rem;
        background: linear-gradient( 90deg, rgba(15, 118, 110, 0.12), rgba(56, 189, 248, 0.1) );
    }

        #fifthTabPane .card-header h5 {
            margin: 0;
            font-size: 0.95rem;
            font-weight: 600;
            color: #065f46;
        }

    #fifthTabPane .card-body {
        padding: 0.9rem 0.95rem 1rem;
    }

    /* Filter bar in header */
    #fifthTabPane .docs-filter-bar .form-select,
    #fifthTabPane .docs-filter-bar .form-control {
        border-radius: 0.45rem;
        border-color: rgba(148, 163, 184, 0.75);
        font-size: 0.8rem;
        padding-inline: 0.4rem;
    }

        #fifthTabPane .docs-filter-bar .form-select:focus,
        #fifthTabPane .docs-filter-bar .form-control:focus {
            box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.45);
            border-color: rgba(5, 150, 105, 0.9);
        }

    /* Add-document button */
    #fifthTabPane .add-document-btn {
        border: none;
        border-radius: 0.45rem;
        background: linear-gradient(135deg, #059669, #0f766e);
        color: #f9fafb;
        font-size: 0.82rem;
        padding: 0.25rem 0.9rem;
        box-shadow: 0 4px 10px rgba(5, 150, 105, 0.55);
    }

        #fifthTabPane .add-document-btn:hover {
            background: linear-gradient(135deg, #10b981, #0284c7);
        }

    /* Right-side list */
    #fifthTabPane .col-lg-4 ul li span:first-child {
        color: #4b5563;
    }

    /* Table spacing */
    #fifthTabPane #documentsTable {
        margin-bottom: 0;
    }
