* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #F7E9E9;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    display: flex;
    height: calc(100vh - 40px);
    position: relative;
}

/* Mobile layout fixes: stack content vertically */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 40px);
        padding: 20px 10px;
        justify-content: center;
    }

    /* Ensure card sections stack cleanly on small screens */
    .card .row {
        flex-direction: column;
    }

    .card .row>[class*="col-"] {
        width: 100% !important;
    }
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    z-index: 9999;
    opacity: 0;
    animation: fadeInOut 4s ease-in-out forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.notification.success {
    background-color: #28a745;
}

.notification.error {
    background-color: #dc3545;
}

.notification.warning {
    background-color: #ffc107;
    color: #000;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    10% {
        opacity: 1;
        transform: translateX(0);
    }

    90% {
        opacity: 1;
        transform: translateX(0);
    }

    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: #F7E9E9;
    border-right: 2px solid linear-gradient(-161deg, #c91517 0%, #500506 100%);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    position: fixed;
    height: 110%;
    top:-10px;
    z-index: 1000;
    overflow-y: auto;
    left: 0px;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid linear-gradient(-161deg, #c91517 0%, #500506 100%);
}

.logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, linear-gradient(-161deg, #c91517 0%, #500506 100%), #260606);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #F7E9E9;
    font-weight: bold;
    font-size: 18px;
}

.app-title {
    font-size: 20px;
    font-weight: 600;
    color: linear-gradient(-161deg, #c91517 0%, #500506 100%);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 12px;
    margin-bottom: 8px;
    border-radius: 12px;
    color: #260606;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.menu-item:hover {
    background: rgba(74, 10, 10, 0.1);
    color: linear-gradient(-161deg, #c91517 0%, #500506 100%);
    transform: translateX(5px);
}

.menu-item.active {
    background: linear-gradient(45deg, linear-gradient(-161deg, #c91517 0%, #500506 100%), #260606) !important;
}

.menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 15px;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.sidebar.active~.main-content {
    margin-left: 280px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900 !important;
    color: #c91517;
    letter-spacing: 1.5px;
    text-transform: uppercase;   /* küçük harf girilse bile büyük yazar */

}



.menu-toggle {
    background: none;
    border: none;
    color: #F7E9E9;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(247, 233, 233, 0.2);
}



.qr-scanner-container {
    background: linear-gradient(-161deg, #c91517 0%, #500506 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #260606;
    max-width: 500px;
    margin: 0 auto;
    color: #ffffff;
}

/* Login Form Styles */
.login {
        position: absolute;
        width: 90%;
        max-width: 400px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(255, 255, 255, 0.95);
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-form input {
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #cbd5e0;
    font-size: 16px;
    outline: none;
    transition: border 0.2s;
}

.login-form input:focus {
    border: 1.5px solid #667eea;
}

.login-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.login-btn:hover {
    background: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.login-error {
    color: #c53030;
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 15px;
    text-align: center;
}

.scanner-title {
    text-align: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 300px;
    background: #f7fafc;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px dashed #cbd5e0;
}

#video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scan-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 3px solid #8B0000;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3);
}

.scan-overlay::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 3px solid #8B0000;
    border-radius: 12px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.result-container {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border-left: 4px solid #667eea;
}

.result-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.result-text {
    color: #4a5568;
    word-break: break-all;
    line-height: 1.5;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.user-btn {
    color: #000000;
    font-size: 1.4rem;
    font-weight: bold;
    padding: 18px 36px;
    border: none;
    border-radius: 32px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.12);
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-bottom: 8px;
    position: relative;
    font-family: 'Segoe UI', Arial, sans-serif;

}

.user-btn:active {
    transform: scale(0.8);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    filter: brightness(0.9) saturate(1.2);
}

.user-btn .subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: normal;
    margin-top: 6px;
    color: #000000;
    opacity: 0.9;
}





/* Content Section Styles */
.content-section {
    background: linear-gradient(-161deg, #c91517 0%, #500506 100%);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #260606;
    color: #ffffff;
}

.section-title {
    color: #F7E9E9;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #F7E9E9, #ffffff);
    border-radius: 2px;
}

/* Mobile Calendar Wrapper */
.calendar-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile First Design */
@media (max-width: 768px) {
    .main-content {
        padding: 10px;
    }

    .sidebar {
        width: 100%;
        transform: translateX(-100%);
    }

    .sidebar.active~.main-content {
        margin-left: 0;
    }

  

  

    .content-section {
        padding: 15px;
        margin-bottom: 15px;
        border-radius: 15px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .profile-card {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-item {
        padding: 15px;
        font-size: 14px;
        color: black;
    }

    .table-responsive {
        font-size: 14px;
    }

    .table th,
    .table td {
        padding: 8px;
    }

    .schedule-calendar {
        grid-template-columns: repeat(7, 1fr);
        gap: 3px;
        min-width: 350px;
        width: 100%;
    }

    .calendar-day {
        padding: 6px 2px;
        min-width: 45px;
        font-size: 11px;
        border-radius: 8px;
    }

    .day-number {
        font-size: 12px;
        margin-bottom: 2px;
    }

    .day-name {
        font-size: 8px;
        margin-bottom: 4px;
    }

    .day-shift {
        font-size: 8px;
        padding: 2px 4px;
        min-width: auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border-radius: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }

    .settings-card {
        padding: 20px;
        margin-bottom: 15px;
    }

    .form-group input {
        padding: 10px 12px;
        font-size: 16px;
    }

    .submit-button {
        padding: 12px 20px;
        font-size: 16px;
    }

    .setting-item {
        padding: 15px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .switch {
        align-self: flex-end;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .main-content {
        padding: 5px;
    }

    .content-section {
        padding: 10px;
        margin-bottom: 10px;
    }

    .section-title {
        font-size: 20px;
    }

    .profile-card {
        padding: 15px;
    }

    .info-item {
        padding: 10px;
    }

    .calendar-day {
        padding: 4px 1px;
        min-width: 40px;
    }

    .day-number {
        font-size: 10px;
        margin-bottom: 1px;
    }

    .day-name {
        font-size: 7px;
        margin-bottom: 2px;
    }

    .day-shift {
        font-size: 7px;
        padding: 1px 2px;
    }

    .stat-card {
        padding: 15px;
    }

    .settings-card {
        padding: 15px;
    }
}

/* Touch Friendly Buttons */
@media (max-width: 768px) {

    .btn,
    .submit-button {
        min-height: 44px;
        font-size: 16px;
    }

    .menu-item {
        padding: 20px 15px;
        font-size: 16px;
    }

    .switch {
        width: 50px;
        height: 28px;
    }

    .slider:before {
        height: 20px;
        width: 20px;
        left: 4px;
        bottom: 4px;
    }

    input:checked+.slider:before {
        transform: translateX(22px);
    }
}

/* Profile Card */
.profile-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.profile-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border-collapse: collapse;
}

.table thead {
    background: white;
    color: rgb(0, 0, 0);
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table tbody tr:hover {
    background: rgba(139, 0, 0, 0.05);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* Schedule Calendar */
.schedule-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.calendar-day {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.calendar-day:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.calendar-day.today {
    background: white;
    color: rgb(0, 0, 0);
    border-color: #FFD700;
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.3);
}

.day-number {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.day-name {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.day-shift {
    font-size: 13px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 20px;
    display: inline-block;
    min-width: 60px;
}

.shift-a {
    background: #e3f2fd;
    color: #1976d2;
}

.shift-b {
    background: #fff3e0;
    color: #f57c00;
}

.shift-c {
    background: #f3e5f5;
    color: #7b1fa2;
}

.shift-off {
    background: #ffebee;
    color: #d32f2f;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.stat-card {
    background: linear-gradient(135deg, linear-gradient(-161deg, #c91517 0%, #500506 100%) 0%, #260606 100%);
    color: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(74, 10, 10, 0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-value {
    font-weight: bold;
    font-size: 18px;
}

/* Settings Card */
.settings-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(139, 0, 0, 0.1);
}

.settings-card h3 {
    color: #8B0000;
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;
}

.form-grid {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.submit-button {
    background: white;
    color: rgb(0, 0, 0);
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.3);
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.setting-item:last-child {
    border-bottom: none;
}

/* Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background: white;
}

input:checked+.slider:before {
    transform: translateX(30px);
}

/* Status Badge */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.status-badge.success {
    background: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
    border: 1px solid #4caf50;
}

/* No Data States */
.no-schedule,
.no-activity {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.no-schedule-icon,
.no-activity-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-schedule-text,
.no-activity-text {
    font-size: 18px;
    font-weight: 500;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }

}

/* Profile Card */
.profile-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.profile-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.table {
    width: 100%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border-collapse: collapse;
}

.table thead {
    background: white;
    color: rgb(0, 0, 0);
}

.table th,
.table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table tbody tr:hover {
    background: rgba(139, 0, 0, 0.05);
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* Schedule Calendar */
.schedule-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.calendar-day {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.calendar-day:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.calendar-day.today {
    background: white;
    color: rgb(0, 0, 0);
    border-color: #FFD700;
    box-shadow: 0 10px 30px rgba(139, 0, 0, 0.3);
}

.day-number {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

.day-name {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.day-shift {
    font-size: 13px;
    font-weight: bold;
    padding: 8px 12px;
    border-radius: 20px;
    display: inline-block;
    min-width: 60px;
}

.shift-a {
    background: #e3f2fd;
    color: #1976d2;
}

.shift-b {
    background: #fff3e0;
    color: #f57c00;
}

.shift-c {
    background: #f3e5f5;
    color: #7b1fa2;
}

.shift-off {
    background: #ffebee;
    color: #d32f2f;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
}

.stat-card h3 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-value {
    font-weight: bold;
    font-size: 18px;
}

/* Settings Card */
.settings-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(139, 0, 0, 0.1);
}

.settings-card h3 {
    color: #8B0000;
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;
}

.form-grid {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #8B0000;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.1);
}

.submit-button {
    background: white;
    color: rgb(0, 0, 0);
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(139, 0, 0, 0.3);
}

.setting-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.setting-item:last-child {
    border-bottom: none;
}

/* Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background: white;
}

input:checked+.slider:before {
    transform: translateX(30px);
}

/* Status Badge */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
}

.status-badge.success {
    background: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
    border: 1px solid #4caf50;
}

/* No Data States */
.no-schedule,
.no-activity {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.no-schedule-icon,
.no-activity-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-schedule-text,
.no-activity-text {
    font-size: 18px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .content-section {
        padding: 20px;
        margin-bottom: 20px;
    }

    .info-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .schedule-calendar {
        grid-template-columns: repeat(7, 1fr);
        gap: 8px;
    }

    .calendar-day {
        padding: 10px 5px;
    }

    .day-number {
        font-size: 16px;
    }

    .day-name,
    .day-shift {
        font-size: 11px;
    }
}

/* Reset Warning Modal */
.reset-warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.reset-warning-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.warning-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.reset-warning-content h3 {
    color: #dc3545;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.reset-warning-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.warning-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
}

.warning-actions .btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .reset-warning-content {
        padding: 20px;
        margin: 20px;
    }

    .warning-actions {
        flex-direction: column;
    }

    .warning-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

ss {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.text-info {
    color: #17a2b8 !important;
}

.text-secondary {
    color: #6c757d !important;
}

.text-light {
    color: #f8f9fa !important;
}

.text-dark {
    color: #343a40 !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        width: 280px;
    }

    .main-content {
        padding: 15px;
    }

    .sidebar.active~.main-content {
        margin-left: 0;
    }

    .qr-scanner-container {
        padding: 20px;
    }

    .login {
        padding: 20px;
        margin: 10px auto;
        position: static;
        top: auto;
        transform: none;
        width: 90%;
        max-width: 350px;
    }

    .video-container {
        height: 250px;
    }

    .scan-overlay {
        width: 160px;
        height: 160px;
    }

    .controls {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

.bsvibe {
    top: 0;
    left: 0;
    right: 0;
    padding: 0 !important;
    margin: 0 !important;
    background: linear-gradient(-161deg, #c91517 0%, #500506 100%);
    padding: 12px 0;
    display: flex;
    height: 40px;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.bsvibe img {
    display: block;
    margin: 0 auto;
}

.user-info-box {
    max-width: 500px;
    margin: 32px auto 24px auto;
    padding: 24px 28px;
    background: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    text-align: left;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #222;
    border: 1px solid #e2e8f0;
}

.user-info-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #388e3c;
}

.user-info-box div {
    font-size: 1.08rem;
    margin-bottom: 6px;
    color: #333;
}

@media (max-width: 700px) {
    .user-info-box {
        padding: 14px 8px;
        font-size: 1rem;
    }

    .user-info-box h2 {
        font-size: 1.1rem;
    }
}


.settings-card {
    background: linear-gradient(-161deg, #c91517 0%, #500506 100%) !important;
    color: #ffffff !important;
}

.settings-card h3 {
    color: #F7E9E9 !important;
}

.form-group label {
    color: #F7E9E9 !important;
}

.form-group input {
    background: #ffffff !important;
    border: 1px solid linear-gradient(-161deg, #c91517 0%, #500506 100%) !important;
    color: #000000 !important;
}

.form-group input:focus {
    border-color: #F7E9E9 !important;
}

.submit-button {
    background: linear-gradient(-161deg, #c91517 0%, #500506 100%) !important;
    color: #F7E9E9 !important;
    border: 1px solid #260606 !important;
}

.setting-item {
    border-bottom-color: #260606 !important;
    color: #ffffff !important;
}

.table {
    background: linear-gradient(-161deg, #c91517 0%, #500506 100%) !important;
    color: #ffffff !important;
}

.table thead {
    background: #260606 !important;
    color: #F7E9E9 !important;
}

.table th,
.table td {
    border-bottom-color: #260606 !important;
    color: #000000 !important;
}

.table tbody tr:hover {
    background: rgba(247, 233, 233, 0.1) !important;
}

.info-item {
    background: rgba(247, 233, 233, 0.1) !important;
    border: 1px solid linear-gradient(-161deg, #c91517 0%, #500506 100%) !important;
    color: #ffffff !important;
}

.result-container {
    background: #260606 !important;
    border-left-color: #F7E9E9 !important;
    color: #ffffff !important;
}

.result-title {
    color: #F7E9E9 !important;
}

.result-text {
    color: #ffffff !important;
}


/* User Page Styles */
.user-info-box {
    background: linear-gradient(-161deg, #c91517 0%, #500506 100%) !important;
    border: 2px solid #260606 !important;
    color: #ffffff !important;
}

.user-info-box h2 {
    color: #F7E9E9 !important;
}

.user-info-box div {
    color: #ffffff !important;
}

.today-shift-card {
    background: linear-gradient(-161deg, #c91517 0%, #500506 100%) !important;
    border: 2px solid #260606 !important;
    color: #ffffff !important;
}

.today-shift-card .card-title {
    color: #F7E9E9 !important;
}

.today-shift-card .shift-time {
    color: #ffffff !important;
}

.today-shift-card .card-body {
    color: #ffffff !important;
}

.action-btn-left,
.action-btn-right {
    background: linear-gradient(-161deg, #c91517 0%, #500506 100%) !important;
    border: 2px solid #260606 !important;
    color: #F7E9E9 !important;
}

.quick-actions .user-btn.bg-info {
    background: linear-gradient(-161deg, #c91517 0%, #500506 100%) !important;
    border: 2px solid #260606 !important;
    color: #F7E9E9 !important;
}

.quick-actions .user-btn.bg-info .subtitle {
    color: #ffffff !important;
}

.modal-content {
    background: linear-gradient(-161deg, #c91517 0%, #500506 100%) !important;
    border: 2px solid #260606 !important;
    color: #ffffff !important;
}

.modal-title {
    color: #F7E9E9 !important;
}

.calendar-day {
    background: #F7E9E9 !important;
    border: 1.5px solid linear-gradient(-161deg, #c91517 0%, #500506 100%) !important;
    color: linear-gradient(-161deg, #c91517 0%, #500506 100%) !important;
}

.calendar-day.today {
    background: #260606 !important;
    border-color: linear-gradient(-161deg, #c91517 0%, #500506 100%) !important;
    color: #F7E9E9 !important;
}

.day-number {
    color: linear-gradient(-161deg, #c91517 0%, #500506 100%) !important;
}

.day-name {
    color: #260606 !important;
}

.modal-close {
    color: #F7E9E9 !important;
}


/* Bottom Navigation Menu */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(-161deg, #c91517 0%, #500506 100%);
    border-top: 2px solid #260606;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 999;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    text-decoration: none;
    color: #F7E9E9;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex: 1;
}

.bottom-nav a:hover {
    background: rgba(247,233,233,0.2);
    color: #ffffff;
}

.bottom-nav a.active {
    background: rgba(247,233,233,0.3);
    color: #ffffff;
}

.bottom-nav-icon {
    height: 32px;
}

@media (max-width: 768px) {
    .main-content {
        padding-bottom: 80px;
    }
}
