﻿/*.admin-dashboard {
    padding: 2rem;
    background-color: #f5f7fa;
    min-height: 100vh;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

    .admin-header h1 {
        font-size: 1.8rem;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

.admin-actions {
    display: flex;
    gap: 1rem;
}

.admin-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

    .admin-btn.primary {
        background-color: var(--secondary-main);
        color: white;
    }

        .admin-btn.primary:hover {
            background-color: var(--secondary-dark);
        }

    .admin-btn:not(.primary) {
        background-color: white;
        border: 1px solid #ddd;
    }

        .admin-btn:not(.primary):hover {
            background-color: #f0f0f0;
        }

 Admin Tabs 
.admin-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1.5rem;
}

    .admin-tabs button {
        padding: 0.75rem 1.5rem;
        background: none;
        border: none;
        border-bottom: 3px solid transparent;
        font-weight: 600;
        color: #7f8c8d;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

        .admin-tabs button.active {
            color: var(--secondary-main);
            border-bottom-color: var(--secondary-main);
        }

        .admin-tabs button:hover:not(.active) {
            color: #2c3e50;
        }

 Tab Content 
.admin-tab-content {
    display: none;
}

    .admin-tab-content.active {
        display: block;
    }

 Admin Tables 
.admin-table-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

    .admin-table-header h2 {
        font-size: 1.3rem;
        color: #2c3e50;
    }

.admin-search {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border-radius: 6px;
    padding: 0.5rem 1rem;
}

    .admin-search i {
        color: #7f8c8d;
        margin-right: 0.5rem;
    }

    .admin-search input {
        border: none;
        background: transparent;
        outline: none;
    }

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-table th {
        text-align: left;
        padding: 1rem;
        background: #f5f7fa;
        color: #2c3e50;
        font-weight: 600;
    }

    .admin-table td {
        padding: 1rem;
        border-bottom: 1px solid #eee;
        vertical-align: middle;
    }

.doctor-cell {
    
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .doctor-cell img {
        margin:30px;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
    }

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

    .status-badge.active {
        background: #e3fcef;
        color: #006644;
    }

    .status-badge.inactive {
        background: #faeae5;
        color: #bf0711;
    }

.doctor-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

    .doctor-rating i {
        color: #FFC107;
        font-size: 0.9rem;
    }

    .doctor-rating span {
        color: #7f8c8d;
        font-size: 0.9rem;
    }

.action-cell {
    padding:20px;
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f5f7fa;
    color: #7f8c8d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .icon-btn:hover {
        background: #e0e6ed;
    }

    .icon-btn.danger {
        color: #bf0711;
    }

        .icon-btn.danger:hover {
            background: #faeae5;
        }

 Pagination 
.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

    .admin-pagination button {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 1px solid #ddd;
        background: white;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .admin-pagination button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

 Analytics 
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 1.5rem;
}
.analytics-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;  Wide + Regular 
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.analytics-card .chart-placeholder,
.analytics-card canvas,  if you're using Chart.js 
.analytics-card .chart-container {
    width: 100%;
    height: 300px;  or auto depending on your content 
}

.analytics-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5rem;
    height:100%;
}

    .analytics-card.wide {
        grid-column: span 2;
    }

    .analytics-card h2 {
        font-size: 1.3rem;
        color: #2c3e50;
        margin-bottom: 1.5rem;
    }

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    padding: 1.5rem;
    background: #f5f7fa;
    border-radius: 8px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.metric-label {
    color: #7f8c8d;
    margin: 0.5rem 0;
}

.metric-trend {
    font-size: 0.9rem;
    font-weight: 500;
}

    .metric-trend.up {
        color: #006644;
    }

    .metric-trend.down {
        color: #bf0711;
    }

.chart-placeholder {
    height: fit-content !important;
    background: #f5f7fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    padding:20px;

}

    .chart-placeholder i {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

.top-doctors {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-doctor {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

    .top-doctor:last-child {
        border-bottom: none;
    }

.doctor-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .doctor-info img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }

    .doctor-info h4 {
        margin: 0;
        font-size: 1rem;
    }

    .doctor-info p {
        margin: 0;
        color: #7f8c8d;
        font-size: 0.9rem;
    }

.doctor-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .doctor-stats .rating {
        font-weight: 600;
        color: #2c3e50;
    }

    .doctor-stats .appointments {
        color: #7f8c8d;
        font-size: 0.9rem;
    }

 Modal 
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 800px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

    .modal-header h3 {
        margin: 0;
        font-size: 1.3rem;
        color: #2c3e50;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #7f8c8d;
    cursor: pointer;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

    .form-group.full-width {
        grid-column: span 2;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        color: #2c3e50;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ddd;
        border-radius: 6px;
    }

    .form-group span {
        margin-left: 0.5rem;
    }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #eee;
}*/
/* Tablet breakpoint (≤992px) */
@media (min-width: 993px) {
    .analytics-card.wide {
        grid-column: span 1 !important;
    }

    .form-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group.full-width {
        grid-column: span 1 !important;
        width: 100% !important;
    }
}

/* Tablet breakpoint (≤992px) */
@media (max-width: 992px) {
    .analytics-card.wide {
        grid-column: span 1 !important;
    }

    .form-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-group.full-width {
        grid-column: span 1 !important;
        width: 100% !important;
    }
}

/* Mobile breakpoint (≤768px) */
@media (max-width: 768px) {
    .admin-header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 0.5rem 1rem;
    }

    .admin-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
    }

    .admin-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

        .admin-table table {
            min-width: 600px;
        }
}


/*patients analytics css*/
/*
 Base Styles 
.admin-dashboard {
    padding: 2rem;
    background-color: #f8f9fa;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

    .admin-header h1 {
        font-size: 1.8rem;
        color: #2c3e50;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

.admin-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.date-range-picker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #ddd;
}

    .date-range-picker select {
        border: none;
        outline: none;
        background: transparent;
    }

.admin-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    background-color: white;
    border: 1px solid #ddd;
}

    .admin-btn:hover {
        background-color: #f0f0f0;
    }

 Metrics Grid 
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.metric-label {
    color: #7f8c8d;
    margin: 0.5rem 0;
}

.metric-trend {
    font-size: 0.9rem;
    font-weight: 500;
}

    .metric-trend.up {
        color: #006644;
    }

    .metric-trend.down {
        color: #bf0711;
    }

 Charts 
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

    .chart-card h3 {
        margin-top: 0;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.chart-container {
    height: 250px;
}

.chart-placeholder {
    height: 100%;
    background: #f5f7fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
}

 Demographics 
.demographics-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

    .demographics-section h2 {
        margin-top: 0;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.demographics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.demographics-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

    .demographics-card h3 {
        margin-top: 0;
        margin-bottom: 1rem;
    }

.gender-distribution {
    display: flex;
    justify-content: space-around;
}

.gender-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.gender-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

    .gender-icon.male {
        background: #e3f2fd;
        color: #1976d2;
    }

    .gender-icon.female {
        background: #fce4ec;
        color: #c2185b;
    }

    .gender-icon.other {
        background: #e8f5e9;
        color: #388e3c;
    }

.gender-percent {
    font-weight: 600;
    font-size: 1.2rem;
}

.gender-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.age-groups {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.age-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.age-range {
    width: 80px;
    font-weight: 500;
}

.age-bar-container {
    flex-grow: 1;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.age-bar {
    height: 100%;
    background: var(--secondary-main);
}

.age-percent {
    width: 40px;
    text-align: right;
    font-size: 0.9rem;
}

.insurance-providers {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.provider-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.provider-name {
    width: 120px;
    font-weight: 500;
}

.provider-count {
    width: 80px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.provider-bar-container {
    flex-grow: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.provider-bar {
    height: 100%;
    background: var(--secondary-main);
}

 Patient Activity 
.activity-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

    .activity-section h2 {
        margin-top: 0;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.activity-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1.5rem;
}

    .activity-tabs button {
        padding: 0.75rem 1.5rem;
        background: none;
        border: none;
        border-bottom: 3px solid transparent;
        font-weight: 600;
        color: #7f8c8d;
        cursor: pointer;
    }

        .activity-tabs button.active {
            color: var(--secondary-main);
            border-bottom-color: var(--secondary-main);
        }

        .activity-tabs button:hover:not(.active) {
            color: #2c3e50;
        }

.visit-trends {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.visit-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.visit-metric {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.visit-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-main);
}

.visit-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.conditions-list table {
    width: 100%;
    border-collapse: collapse;
}

.conditions-list th {
    text-align: left;
    padding: 1rem;
    background: #f5f7fa;
    color: #2c3e50;
    font-weight: 600;
}

.conditions-list td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.medications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.medication-card {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 1rem;
}

.medication-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.medication-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.medication-patients {
    color: #2c3e50;
}

.medication-percent {
    color: var(--secondary-main);
    font-weight: 600;
}

.medication-class {
    color: #7f8c8d;
    font-size: 0.8rem;
}

 Locations 
.locations-section {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

    .locations-section h2 {
        margin-top: 0;
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.locations-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.locations-map {
    height: 400px;
    background: #f5f7fa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    text-align: center;
    color: #7f8c8d;
}

    .map-placeholder i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

.locations-list h3 {
    margin-top: 0;
}

.locations-list table {
    width: 100%;
    border-collapse: collapse;
}

.locations-list th {
    text-align: left;
    padding: 1rem;
    background: #f5f7fa;
    color: #2c3e50;
    font-weight: 600;
}

.locations-list td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}
*/
/* Responsive */
@media (max-width: 992px) {
    .charts-row {
        grid-template-columns: 1fr;
    }

    .locations-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .activity-tabs {
        overflow-x: auto;
    }
}