/* Basic admin styles */
.admin-dashboard {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ...existing stats and table styles... */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.users-table th,
.users-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

/* Improved Admin Navigation styling */
.admin-header {
    background-color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-nav {
    background-color: #4F8EE1;
    margin-bottom: 2rem;
}

.admin-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-nav-item {
    position: relative;
}

.admin-nav-link {
    color: white !important;
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: block;
    transition: background-color 0.2s;
}

.admin-nav-link:hover,
.admin-nav-link.active {
    background-color: rgba(0,0,0,0.1);
}

/* Corrected dropdown styles */
.admin-dropdown {
    position: relative;
    display: inline-block;
}

.admin-dropdown-content {
    display: none;
    position: absolute;
    background-color: #4F8EE1;
    min-width: 220px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.admin-dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-dropdown-content a:hover {
    background-color: rgba(0,0,0,0.1);
}

.admin-dropdown:hover .admin-dropdown-content {
    display: block;
}

/* Fix form styles */
.admin-form-group {
    margin-bottom: 1.5rem;
}

.admin-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.admin-form-group .admin-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.admin-button-danger {
    background-color: #f44336;
    color: white;
}

.admin-button-danger:hover {
    background-color: #d32f2f;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .admin-nav-list {
        flex-direction: column;
    }
    
    .admin-dropdown-content {
        position: static;
        box-shadow: none;
        width: 100%;
    }
}

/* Admin Layout */
.admin-form-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.form-title {
    margin-bottom: 2rem;
    color: #2c3e50;
}

/* Practices Layout */
.practices-container {
    display: flex;
    gap: 2rem;
    margin: 1rem;
    min-height: 400px;
}

.practices-sidebar {
    flex: 0 0 40%;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.content-main {
    flex: 1;
    padding: 1rem;
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Admin Layout Styles */
.admin-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-navbar {
    background-color: #2c3e50;
    color: white;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-brand h1 {
    font-size: 1.5rem;
    margin: 0;
    padding: 15px 0;
}

.admin-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-nav li {
    position: relative;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 20px 15px;
    display: block;
    transition: background-color 0.3s;
}

.admin-nav a:hover {
    background-color: #34495e;
}

.admin-nav-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #34495e;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #2c3e50;
}

.admin-main {
    flex: 1;
    padding: 20px;
    background-color: #f5f5f5;
}

.admin-footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 0.9em;
}

/* Admin Pages Styles */
.admin-page {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
}

.admin-header h1 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.admin-form-container {
    max-width: 100%;
    margin: 0 auto;
}

.admin-form-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Flash Messages */
.flash-messages {
    margin-bottom: 20px;
}

.flash-message {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 4px;
    font-weight: 500;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.flash-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Admin Tabs */
.admin-tabs {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.tab-header {
    display: flex;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #fff;
    border-bottom: 3px solid #4CAF50;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

/* Admin Tables */
.admin-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.admin-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.admin-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Buttons */
.btn-primary, .btn-edit, .btn-delete {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9em;
    border: none;
    transition: background-color 0.3s, color 0.3s;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-primary:hover {
    background-color: #45a049;
}

.btn-edit {
    background-color: #3498db;
    color: white;
}

.btn-edit:hover {
    background-color: #2980b9;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background-color: #c0392b;
}

/* Form Elements */
.admin-form {
    width: 100%;
}

.admin-form-row {
    margin-bottom: 20px;
}

.admin-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.admin-form-row input[type="text"],
.admin-form-row input[type="email"],
.admin-form-row input[type="password"],
.admin-form-row input[type="number"],
.admin-form-row select,
.admin-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    font-family: inherit;
}

.admin-form-row textarea {
    min-height: 120px;
    resize: vertical;
}

.admin-form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.admin-form-actions button,
.admin-form-actions a {
    flex-shrink: 0;
}

/* Add these new styles to support the admin layout columns */
.admin-layout-columns {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 1.5rem;
}

.admin-form-column {
    min-width: 0;
}

.admin-list-column {
    min-width: 0;
    max-height: calc(100vh - 200px);
    overflow: auto;
}

/* Edit and delete action buttons */
.practice-actions {
    display: flex;
    gap: 0.5rem;
}

.practice-edit-btn, 
.practice-delete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.practice-edit-btn {
    background-color: #4F8EE1;
}

.practice-delete-btn {
    background-color: #dc3545;
}

.practice-edit-btn:hover,
.practice-delete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
