/* Admin Panel Styles for Aura Dental Square */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Sidebar styles */
#sidebar {
    min-height: 100vh;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding-top: 20px;
}

#sidebar .nav-link {
    color: #333;
    border-radius: 5px;
    margin: 3px 10px;
    padding: 10px 15px;
    transition: all 0.3s;
}

#sidebar .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

#sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

/* Main content styles */
main {
    padding-top: 20px;
    padding-bottom: 40px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

/* Card styles */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
}

.card-body {
    padding: 20px;
}

/* Table styles */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: #333;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Button styles */
.btn {
    border-radius: 5px;
    padding: 8px 16px;
}

/* Form styles */
.form-control, .form-select {
    border-radius: 5px;
    padding: 10px 15px;
    border: 1px solid #ced4da;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Modal styles */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
}

/* Status badges */
.badge {
    padding: 6px 10px;
    border-radius: 5px;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    #sidebar.show {
        transform: translateX(0);
    }

    .navbar-toggler {
        display: block;
    }
}

/* Custom styles for dental specific elements */
.tooth-chart {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    margin: 20px 0;
}

.tooth {
    aspect-ratio: 1;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.tooth:hover {
    background-color: #f0f0f0;
}

.tooth.selected {
    background-color: #0d6efd;
    color: white;
}

.tooth.treated {
    background-color: #198754;
    color: white;
}

.tooth.needs-treatment {
    background-color: #ffc107;
    color: white;
}
