/* Variables */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #2196F3;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f5f6fa;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

img {
    max-width: 100%;
}

/* Admin Layout */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #fff;
    box-shadow: var(--box-shadow);
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.logo img {
    height: 50px;
}

.menu li {
    margin-bottom: 5px;
}

.menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #555;
    transition: var(--transition);
}

.menu li a i {
    margin-right: 10px;
    font-size: 1.1rem;
}

.menu li a:hover {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--primary-color);
}

.menu li.active a {
    background-color: var(--primary-color);
    color: #fff;
}

.main-content {
    flex: 1;
    margin-left: 250px;
}

header {
    background-color: #fff;
    box-shadow: var(--box-shadow);
    padding: 15px 30px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
}

.user-info span {
    margin-right: 15px;
    font-weight: 500;
}

.user-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.content {
    padding: 30px;
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 20px;
    display: flex;
    align-items: center;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    color: #fff;
}

.card-icon i {
    font-size: 1.5rem;
}

.card-icon.blue {
    background-color: var(--secondary-color);
}

.card-icon.green {
    background-color: var(--primary-color);
}

.card-icon.orange {
    background-color: var(--warning-color);
}

.card-icon.purple {
    background-color: #9c27b0;
}

.card-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #777;
}

.card-info .number {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.card-info span {
    font-size: 0.8rem;
    color: #777;
}

/* Section Styles */
.section {
    display: none;
}

.section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 1.5rem;
}

.view-all {
    color: var(--primary-color);
    font-weight: 500;
}

/* Table Styles */
.table-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #f8f9fa;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    font-weight: 600;
    color: #555;
}

.patient-info {
    display: flex;
    align-items: center;
}

.patient-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.patient-info .name {
    font-weight: 500;
    margin-bottom: 3px;
}

.patient-info .email {
    font-size: 0.8rem;
    color: #777;
}

.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
}

.status.pending {
    background-color: rgba(255, 193, 7, 0.2);
    color: #e6a700;
}

.status.confirmed {
    background-color: rgba(23, 162, 184, 0.2);
    color: #138496;
}

.status.completed {
    background-color: rgba(40, 167, 69, 0.2);
    color: #218838;
}

.status.cancelled {
    background-color: rgba(220, 53, 69, 0.2);
    color: #c82333;
}

.actions {
    display: flex;
}

.btn-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background-color: #f8f9fa;
    color: #555;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #555;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 8px 15px;
    border-radius: 5px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.btn i {
    margin-right: 5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #3d8b40;
}

/* Configuration */
.config-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.config-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    padding: 20px;
}

.config-card h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 991px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar .logo {
        display: flex;
        justify-content: center;
        padding: 15px 0;
    }
    
    .sidebar .logo img {
        height: 40px;
    }
    
    .menu li a span {
        display: none;
    }
    
    .menu li a i {
        margin-right: 0;
        font-size: 1.3rem;
    }
    
    .main-content {
        margin-left: 70px;
    }
}

@media (max-width: 768px) {
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .config-container {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .section-header button {
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .sidebar {
        position: fixed;
        left: -70px;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header-content {
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    .header-content h1 {
        margin-left: 40px;
    }
}