﻿
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.sidebar {
    min-height: calc(100vh - 56px);
    background-color: #fff;
    box-shadow: 2px 0 4px rgba(0,0,0,.1);
    padding-top: 20px;
}

    .sidebar .nav-link {
        color: #333;
        padding: 10px 5px;
        margin: 5px 0;
        border-radius: 5px;
        transition: all 0.3s;
    }

        .sidebar .nav-link:hover {
            background-color: var(--light-color);
            color: var(--primary-color);
        }

        .sidebar .nav-link.active {
            background-color: var(--primary-color);
            color: white;
        }

        .sidebar .nav-link i {
            width: 20px;
            margin-left: 10px;
        }

.main-content {
    padding: 20px;
}

.card {
    box-shadow: 0 0 10px rgba(0,0,0,.1);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
}

.stat-card {
    border-right: 4px solid;
    transition: transform 0.3s;
}

    .stat-card:hover {
        transform: translateY(-5px);
    }

    .stat-card.primary {
        border-color: var(--primary-color);
    }

    .stat-card.success {
        border-color: var(--success-color);
    }

    .stat-card.warning {
        border-color: var(--warning-color);
    }

    .stat-card.danger {
        border-color: var(--danger-color);
    }

    .stat-card.info {
        border-color: var(--info-color);
    }

.notification-dropdown {
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

    .notification-item:hover {
        background-color: #f8f9fa;
    }

    .notification-item.unread {
        background-color: #e3f2fd;
    }

.badge-notification {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 10px;
}

.tooth-chart {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.tooth {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

    .tooth:hover {
        transform: scale(1.1);
        box-shadow: 0 0 5px rgba(0,0,0,.2);
    }

    .tooth.treated {
        background-color: #198754;
        color: white;
    }

    .tooth.planned {
        background-color: #ffc107;
    }

    .tooth.problem {
        background-color: #dc3545;
        color: white;
    }

/*@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        right: -250px;
        width: 250px;
        height: 100vh;
        z-index: 1000;
        transition: right 0.3s;
    }

        .sidebar.show {
            right: 0;
        }

    .main-content {
        margin-right: 0;
    }
}*/

.loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.print-only {
    display: none;
}

@media print {
    .no-print {
        display: none !important;
    }

    .print-only {
        display: block !important;
    }

    body {
        background-color: white;
    }
}


.notification-link {
    display: inline-block;
    padding: 8px 16px;
    color: black;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    font-size: 14px;
}
/* sidebar الأساسي */
#sidebar {
    width: 250px;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

    /* عندما يكون مخفي */
    #sidebar.hidden {
        width: 0;
        opacity: 0;
        padding: 0;
        margin: 0;
    }

/* المحتوى الرئيسي */
.main-content {
    width: calc(100% - 250px);
    transition: all 0.3s ease-in-out;
}

/* عند إخفاء القائمة، خذ كامل العرض */
.sidebar-hidden .main-content {
    width: 100% !important;
}

/* الزر */
#sidebarToggle {
    border: none;
    color: #00ff21;
    background: transparent;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

    #sidebarToggle:hover {
        transform: scale(1.2);
        color: #ffd700; /* لون ذهبي عند التحويم */
    }

/* وضع الزر في مكان واضح دائمًا */
#sidebarToggle {
    z-index: 1055;
}

    /* حركة دوران عند التبديل */
    #sidebarToggle i {
        transition: transform 0.3s ease;
    }

.rotate {
    transform: rotate(180deg);
}
#sidebar {
    width: 250px;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

    #sidebar.hidden {
        width: 0;
        opacity: 0;
        padding: 0;
        margin: 0;
    }

.main-content {
    width: calc(100% - 250px);
    transition: all 0.3s ease-in-out;
}

.sidebar-hidden .main-content {
    width: 100% !important;
}
