/* General Admin Styles */

body {
    background-color: #f4f7f6;
}

/* Admin Page Header with Back to Dashboard Link */
.admin-page-header {
    margin-bottom: 1.5rem;
}

.back-to-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.back-to-dashboard:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
    text-decoration: none;
}

.back-to-dashboard svg {
    fill: currentColor;
    flex-shrink: 0;
}

.admin-page-container {
    display: flex;
    max-width: 1400px;
    margin: 2rem auto;
    gap: 2rem;
    align-items: flex-start;
}

.admin-sidebar {
    flex: 0 0 250px;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 110px; /* Adjust based on header height */
}

.admin-sidebar h2 {
    font-size: 1.4rem;
    color: #333;
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li button.sidebar-link {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-size: 1rem;
    color: #555;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.sidebar-nav li button.sidebar-link:hover {
    background-color: #f0f4f8;
    color: #222;
}

.sidebar-nav li button.sidebar-link.active {
    background-color: #0077cc;
    color: #fff;
    font-weight: 500;
}

.admin-content {
    flex-grow: 1;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.admin-content h1 {
    margin-top: 0;
    font-size: 2rem;
}

/* General Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #fff;
}

.form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.form-actions .btn-primary,
.form-actions .btn-secondary {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-actions .btn-primary:hover,
.form-actions .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* General Icon Button Styles */
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    line-height: 1;
}

.btn-icon:hover {
    background-color: #e9ecef;
}

.btn-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* styles for admin.html */

.admin-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.admin-section {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.admin-section h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
    font-size: 1.8rem;
    color: #333;
}

.admin-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: #444;
}

#add-admin-form-container, #user-list-container {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

/* This is a general style, but since it has a high-specificity selector it might be best here */
#add-admin-form button,
#add-event-form button {
    background: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

#add-admin-form button:hover,
#add-event-form button:hover {
    background: #0056b3;
}

#user-list,
#event-list {
    list-style-type: none;
    padding: 0;
}

#user-list li,
#event-list li {
    background: #f9f9f9;
    padding: 0.75rem;
    border: 1px solid #eee;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-primary {
    background-color: #0077cc;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #005fa3;
}

@media(min-width: 992px) {
    .admin-sections {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Dashboard Specific Styles */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 2.8rem;
}

.dashboard-header p {
    font-size: 1.2rem;
    color: #666;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-icon {
    color: #0077cc;
}

.card-content h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.card-content p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* Mobile responsiveness for back to dashboard link */
@media (max-width: 768px) {
    .admin-page-header {
        margin-bottom: 1rem;
    }
    
    .back-to-dashboard {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
} 