/* =========================================================
   REJESTR CZASU PRACY — NOWY STYL
   Plik: register_times.css
========================================================= */


/* =========================================================
   GLOBAL / SIDEBAR FIX
========================================================= */

#sidebar,
#sidebar .sidebar-inner,
#sidebar .h-100 {
    min-height: 100vh;
    height: auto !important;
}

.task-name-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.task-name-link:hover {
    color: inherit;
    text-decoration: underline;
}



/* =========================================================
   DATE NAVIGATION
========================================================= */

.attendance-date-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 18px;
    padding: 12px 18px;
    width: fit-content;
    margin: 18px auto 25px auto;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.date-nav-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: #3473BA;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: .25s ease;
}

.date-nav-btn:hover {
    background: #d5481f;
    color: #fff;
    transform: translateY(-2px);
}

.attendance-current-date {
    min-width: 150px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}


/* =========================================================
   CURRENT USER REGISTER CARD
========================================================= */

.time-register-card {
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: 0 12px 35px rgba(15, 23, 42, .06);
}

.work-icon {
    width: 90px;
    height: 90px;
    background: rgba(52, 115, 186, 0.12);
    color: #3473BA;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    margin: auto;
}

.current-time {
    font-size: 58px;
    font-weight: 800;
    color: #212529;
    letter-spacing: 2px;
}

.work-status-badge {
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
}

.info-box {
    background: #f8f9fa;
    border-radius: 18px;
    padding: 20px;
}

.info-box small {
    display: block;
    color: #6c757d;
    margin-bottom: 5px;
}

.info-box strong {
    font-size: 18px;
}

.btn-register-time {
    height: 58px;
    border-radius: 18px;
    border: none;
    background: #3473BA;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    transition: .3s ease;
}

.btn-register-time:hover {
    background: #d94b21;
    transform: translateY(-2px);
    color: #fff;
}


/* =========================================================
   EMPLOYEE WORK CARD — PREMIUM
========================================================= */

.employee-work-card {
    position: relative;
    height: 100%;
    background: #fff;
    border-radius: 34px;
    padding: 28px;
    border: 1px solid rgba(15, 23, 42, .06);

    /* statyczny cień */
    box-shadow: 0 8px 20px rgba(15, 23, 42, .05);

    overflow: hidden;

    /* wyłączenie animacji */
    transform: none !important;
    transition: none !important;
}




/* =========================================================
   EDIT BUTTON
========================================================= */

.edit-work-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: #3473BA;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(52, 115, 186, .25);
    transition: .25s ease;
    z-index: 20;
}

.edit-work-btn:hover {
    transform: translateY(-2px) scale(1.06);
    background: #2C629D;
    color: #fff;
}

.edit-work-btn i {
    font-size: 18px;
}


/* =========================================================
   EMPLOYEE HEADER
========================================================= */

.employee-card-header {
    display: flex;
    align-items: center;
    padding-right: 64px;
    margin-bottom: 30px;
}

.employee-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #3473BA;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.employee-info {
    margin-left: 18px;
    min-width: 0;
}

.employee-info h5 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: #111827;
}

.employee-info span {
    display: block;
    color: #6b7280;
    font-size: 14px;
    margin-top: 2px;
    word-break: break-word;
}


/* =========================================================
   WORK TIME ROWS
========================================================= */

.work-times {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.work-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #edf2f7;
}

.work-row:last-child {
    border-bottom: none;
}

.work-label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.work-label i {
    font-size: 18px;
    color: #3473BA;
}

.work-label span,
.work-row > span {
    font-size: 16px;
    color: #374151;
    font-weight: 500;
}

.work-row strong {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.total-row {
    background: #fff7f4;
    border-radius: 18px;
    padding: 16px;
    border-bottom: none;
}

.work-total {
    color: #3473BA !important;
    font-size: 24px !important;
}


/* =========================================================
   STATUS BADGES
========================================================= */

.employee-status {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    padding: 14px;
    width: 100%;
    font-weight: 800;
    font-size: 15px;
}

.employee-status.gray,
.bg-not-started {
    background: rgba(108, 117, 125, .12);
    color: #6c757d;
}

.employee-status.green,
.bg-working {
    background: rgba(25, 135, 84, .12);
    color: #198754;
}

.employee-status.yellow {
    background: #fef3c7;
    color: #92400e;
}

.employee-status.blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.employee-status.orange,
.bg-finished {
    background: rgba(52, 115, 186, .12);
    color: #3473BA;
}


/* =========================================================
   MODAL STYLE
========================================================= */

.modal-content {
    border: none;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 23, 42, .18);
}

.modal-header {
    border-bottom: 1px solid #eef2f7;
    padding: 22px 26px;
}

.modal-title {
    font-weight: 800;
    color: #111827;
}

.modal-body {
    padding: 26px;
}

.modal-footer {
    border-top: 1px solid #eef2f7;
    padding: 20px 26px;
}

.modal .form-control {
    height: 52px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    font-weight: 600;
}

.modal .form-control:focus {
    border-color: #3473BA;
    box-shadow: 0 0 0 .2rem rgba(52, 115, 186, .15);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .attendance-date-nav {
        gap: 10px;
        padding: 10px 12px;
    }

    .attendance-current-date {
        font-size: 16px;
        min-width: 110px;
    }

    .date-nav-btn {
        width: 38px;
        height: 38px;
    }

    .current-time {
        font-size: 42px;
    }

    .work-icon {
        width: 75px;
        height: 75px;
        font-size: 34px;
    }

    .employee-work-card {
        padding: 22px;
        border-radius: 28px;
    }

    .edit-work-btn {
        width: 44px;
        height: 44px;
        top: 18px;
        right: 18px;
    }

    .edit-work-btn i {
        font-size: 16px;
    }

    .employee-card-header {
        padding-right: 50px;
        margin-bottom: 24px;
    }

    .employee-avatar {
        width: 62px;
        height: 62px;
        font-size: 22px;
    }

    .employee-info {
        margin-left: 14px;
    }

    .employee-info h5 {
        font-size: 16px;
    }

    .employee-info span {
        font-size: 13px;
    }

    .work-label span,
    .work-row > span {
        font-size: 14px;
    }

    .work-row strong {
        font-size: 16px;
    }

    .work-total {
        font-size: 21px !important;
    }
}
:root {
    --blue: #3473BA;
    --blue-dark: #2C629D;
    --dark: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --soft: #f9fafb;
}

body {
    background: #f4f7fb;
    font-family: "Poppins", sans-serif;
    color: var(--dark);
}

.content {
    padding-top: 28px !important;
}

.time-register-card {
    border-radius: 34px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .9) !important;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .12) !important;
    overflow: hidden;
}

.time-register-card .card-body {
    padding: 42px 36px !important;
}

.work-icon {
    width: 82px;
    height: 82px;
    border-radius: 26px;
    background: rgba(52, 115, 186, .10);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.work-icon i {
    font-size: 38px;
}

.current-time {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--dark);
}

.work-status-badge {
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.bg-not-started {
    background: #f3f4f6;
    color: #6b7280;
}

.bg-working {
    background: rgba(34, 197, 94, .12);
    color: #16a34a;
}

.bg-finished {
    background: rgba(52, 115, 186, .12);
    color: var(--blue);
}

.today-info {
    background: #f9fafb;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 16px;
}

.info-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px 12px;
}

.info-box small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 6px;
}

.info-box strong {
    font-size: 16px;
    font-weight: 900;
    color: var(--dark);
}

.btn-register-time,
.btn-orange {
    min-height: 56px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--blue), #4E80BD);
    color: #fff !important;
    font-weight: 900;
    box-shadow: 0 18px 36px rgba(52, 115, 186, .25);
}

.btn-register-time:hover,
.btn-orange:hover {
    background: linear-gradient(135deg, var(--blue-dark), #ff6a35);
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-danger {
    min-height: 56px;
    border: 0;
    border-radius: 18px;
    font-weight: 900;
    box-shadow: 0 18px 36px rgba(220, 38, 38, .22);
}

.btn-secondary {
    min-height: 56px;
    border-radius: 18px;
    font-weight: 900;
}

.attendance-date-nav {
    margin: 34px auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.date-nav-btn {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: var(--dark);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    transition: .2s ease;
}

.date-nav-btn:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-1px);
}

.attendance-current-date {
    min-width: 180px;
    height: 48px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: var(--dark);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.card.border-0.shadow-sm {
    border-radius: 30px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 22px 70px rgba(15, 23, 42, .10) !important;
}

.employee-work-card {
    height: 100%;
    position: relative;
    padding: 24px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
    transition: .2s ease;
}

.employee-work-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 55px rgba(15, 23, 42, .10);
}

.edit-work-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(52, 115, 186, .10);
    color: var(--blue);
    transition: .2s ease;
}

.edit-work-btn:hover {
    background: var(--blue);
    color: #fff;
}

.employee-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 48px;
    margin-bottom: 22px;
}

.employee-avatar {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--blue), #4E80BD);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 16px;
    box-shadow: 0 14px 28px rgba(52, 115, 186, .22);
}

.employee-info h5 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
}

.employee-info span {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.work-times {
    display: grid;
    gap: 12px;
}

.work-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f9fafb;
    border: 1px solid #eef0f3;
}

.work-label {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.work-label i {
    color: var(--blue);
}

.work-row strong {
    color: var(--dark);
    font-size: 15px;
    font-weight: 900;
}

.total-row {
    background: rgba(52, 115, 186, .08);
    border-color: rgba(52, 115, 186, .18);
}

.work-total {
    color: var(--blue) !important;
}

.employee-status {
    display: inline-flex;
    align-items: center;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.employee-status.gray {
    background: #f3f4f6;
    color: #6b7280;
}

.employee-status.green {
    background: rgba(34, 197, 94, .12);
    color: #16a34a;
}

.employee-status.yellow {
    background: rgba(245, 158, 11, .14);
    color: #b45309;
}

.employee-status.blue {
    background: rgba(59, 130, 246, .12);
    color: #2563eb;
}

.employee-status.orange {
    background: rgba(52, 115, 186, .12);
    color: var(--blue);
}

/* MODAL EDYCJI */
.modal-content {
    border-radius: 28px;
    border: 0;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .18);
}

.modal-header {
    border-bottom: 0;
    padding: 26px 28px 10px;
}

.modal-title {
    font-weight: 900;
    color: var(--dark);
}

.modal-body {
    padding: 20px 28px;
}

.modal-footer {
    border-top: 0;
    padding: 10px 28px 28px;
}

.modal .form-label {
    font-size: 13px;
    font-weight: 800;
    color: #374151;
}

.modal .form-control {
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #f9fafb;
}

.modal .form-control:focus {
    border-color: rgba(52, 115, 186, .55);
    box-shadow: 0 0 0 5px rgba(52, 115, 186, .11);
}

/* MOBILE */
@media (max-width: 768px) {
    .current-time {
        font-size: 46px;
    }

    .time-register-card .card-body {
        padding: 32px 22px !important;
    }

    .attendance-current-date {
        min-width: 150px;
        font-size: 14px;
    }

    .employee-work-card {
        padding: 22px;
    }
}


/* ==========================================
   PREMIUM SECTION TITLE
========================================== */

.section-title-box {
    margin-bottom: 28px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 10px 16px;
    border-radius: 999px;

    background: rgba(52, 115, 186,.10);
    color: #3473BA;

    font-size: 13px;
    font-weight: 800;

    margin-bottom: 18px;
}

.section-title {
    margin: 0;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.8px;
    color: #111827;
}

.section-subtitle {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 15px;
    font-weight: 500;
}

/* MOBILE */

@media (max-width: 768px) {

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 14px;
    }
}
