/* // public_html/assets/css/admin.css */

/* Root Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --danger-color: #e74c3c;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --text-color: #2c3e50;
    --border-color: #ddd;
    --bg-color: #f5f6fa;
    --card-bg: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    flex: 1;
}

/* Header */
header {
    background-color: var(--card-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title h1 {
    margin: 0;
    color: var(--primary-color);
    font-size: 24px;
    display: flex;
    align-items: center;
}

.header-title h1 i {
    margin-right: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 15px;
    border-right: 1px solid var(--border-color);
}

.user-profile i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.user-nav {
    display: flex;
    gap: 10px;
}

/* Main Content */
main {
    flex: 1;
}

/* Action Bar */
.action-bar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

/* Alert Messages */
.alert {
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert i {
    font-size: 1.2rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn i {
    font-size: 1rem;
}

/* Button Variants */
.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #27ae60;
    transform: translateY(-1px);
}

.btn-action {
    background-color: #f8f9fa;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-action:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.btn-icon {
    color: var(--accent-color);
    background: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-icon:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    font-size: 2rem;
    color: var(--accent-color);
    background-color: rgba(52, 152, 219, 0.1);
    padding: 15px;
    border-radius: 8px;
}

.card-content {
    flex: 1;
}

.card h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.card p {
    color: #666;
    margin-bottom: 15px;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Recent Events Section */
.recent-events {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.recent-events h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.event-card {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.event-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.event-role {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.event-role.owner {
    background-color: rgba(241, 196, 15, 0.2);
    color: #d35400;
}

.event-role.editor {
    background-color: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.event-role.viewer {
    background-color: rgba(52, 152, 219, 0.2);
    color: #2980b9;
}

.event-body {
    padding: 15px;
}

.event-title {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.event-organizer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.event-participants {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
    margin-top: 8px;
}

.event-participants .approved-count {
    color: var(--success-color);
    font-weight: 500;
}

/* Live event indicator */
.live-badge {
    background-color: var(--danger-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    animation: pulse 1.5s infinite;
}

.live-badge i {
    font-size: 0.5rem;
    margin-right: 4px;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.event-card.event-live {
    border: 2px solid var(--danger-color);
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

.event-card.event-live .event-header {
    background-color: rgba(231, 76, 60, 0.1);
}

.event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    background-color: #f8f9fa;
    border-top: 1px solid var(--border-color);
}

.view-all {
    text-align: center;
    margin-top: 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

.empty-state a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.empty-state a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="datetime-local"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* Authentication Container */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.auth-container h1 {
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.auth-container .btn {
    width: 100%;
}

.auth-actions {
    margin-top: 20px;
    text-align: center;
}

.auth-actions a {
    color: var(--accent-color);
    text-decoration: none;
}

.auth-actions a:hover {
    text-decoration: underline;
}

/* Utility Classes */
.mt-4 {
    margin-top: 1rem;
}

/* Inline Form */
.inline-form {
    display: inline;
}

/* Error & Success Containers */
.error-container,
.success-container {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.error-container {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.success-container {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* User Profile Page */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-section {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.profile-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* Version Display */
.version-display {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 1000;
}

/* Media Queries */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .user-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .events-container {
        grid-template-columns: 1fr;
    }
    
    .event-actions {
        flex-direction: column;
    }
    
    .event-actions .btn {
        width: 100%;
    }
    .document-form .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .document-form .form-row > * {
        margin-bottom: 10px;
    }
    
    .document-type,
    .document-description {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .user-profile {
        border-right: none;
        padding-right: 0;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .user-nav {
        width: 100%;
        justify-content: space-between;
    }
}


/* Auth pages (login, register, etc.) */
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .auth-logo {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.auth-header h1 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.auth-header p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.auth-form {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links a {
    color: var(--accent-color);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Added for account management pages */
.other-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.button.secondary {
    background-color: #95a5a6;
    color: white;
}

.button.secondary:hover {
    background-color: #7f8c8d;
}

.button.small {
    padding: 5px 10px;
    font-size: 0.85rem;
}


/* Section styling */
.section {
    margin-bottom: 25px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 0;
}

.section-header {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    user-select: none;
    width: 100%;
}

.section-title h2 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.toggle-section-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.3s;
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    pointer-events: none;
}

.toggle-section-btn:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.toggle-section-btn.active {
    transform: rotate(90deg);
}

/* Collapsible content styling */
.collapsible-content {
    padding: 20px;
    display: block;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    max-height: 3000px;
    opacity: 1;
}

.collapsible-content.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    overflow: hidden;
    border-top: none;
}

.collapsible-content .form-row {
    align-items: start;
}


/* Class management and documents section */
.classes-section, 
.documents-section {
    margin: 20px 0;
    padding: 0;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}


/* Style fixes for event creation forms */
.event-form {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 15px;
}



/* Event Info Display */
.event-info {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.event-info-item {
    background: white;
    padding: 12px 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.event-info-label {
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.event-info-value {
    color: var(--text-color);
    font-size: 1rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    margin: 0;
    vertical-align: middle;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--success-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Event edit form */
.event-edit-form {
    display: none; 
    background: white;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

.event-edit-form.active {
    display: block; 
}

/* Event classes section */

/* Tab System Enhancements */
.class-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.tab:hover {
    color: var(--accent-color);
    background-color: rgba(52, 152, 219, 0.05);
}

.tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.tab-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.classes-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.classes-table th,
.classes-table td {
    padding: 0.75rem;
    border: 1px solid #ddd;
}

.sort-handle {
    cursor: move;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 0.5rem;
}

.drag-handle {
    cursor: move;
    color: #999;
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.classes-table tr.sortable-ghost {
    background: #f8f9fa;
    opacity: 0.5;
}

.class-list-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.save-order-button {
    display: none;
}

.save-order-button.visible {
    display: inline-block;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.class-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

/* Documents Section */
.document-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.document-form .form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    width: 100%;
}

.document-type {
    flex: 0 0 180px;
}

.document-description {
    flex: 1;
}

.document-upload {
    background: white;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.documents-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.documents-table th,
.documents-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

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

.documents-table td:first-child {
    text-transform: capitalize;
    width: 120px;
}

.document-link {
    color: #0066cc;
    text-decoration: none;
}

.document-link:hover {
    text-decoration: underline;
}

/* Access Links Section */
.access-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.access-section {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 4px;
}

.access-section h3 {
    font-size: 1rem;
    margin: 0 0 1rem 0;
    color: #495057;
}

/* Participant table styling */
#list table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

#list th, 
#list td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

#list th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

#list tr:hover {
    background-color: #f8f9fa;
}

#list td:last-child {
    text-align: right;
    white-space: nowrap;
}

/* Participant actions styling */
.btn-edit, 
.btn-delete {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.85rem;
    margin-left: 5px;
    cursor: pointer;
    border: none;
}

.btn-edit {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.btn-delete {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.btn-edit:hover {
    background: rgba(52, 152, 219, 0.2);
}

.btn-delete:hover {
    background: rgba(231, 76, 60, 0.2);
}

/* AI reorder section styling */
#ai-response {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

/* Import section styling */
.import-steps {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.step {
    margin-bottom: 20px;
}

.step h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.1rem;
}

/* Fix participant form styling to match the overall design */
.participant-form {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

/* Add consistent tab styling */
#section-participants .tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

#section-participants .tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
}

#section-participants .tab:hover {
    color: var(--accent-color);
    background-color: rgba(52, 152, 219, 0.05);
}

#section-participants .tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Classes Section Styles */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.class-item {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.class-item:hover {
    background-color: #f0f0f0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
}

.class-description {
    color: #666;
    margin-left: 5px;
    cursor: help;
}

.class-description i {
    color: #0077cc;
}

.permanent-classes,
.custom-classes {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.custom-classes h3,
.permanent-classes h3,
.selected-classes-preview h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.custom-classes h3 i,
.permanent-classes h3 i,
.selected-classes-preview h3 i {
    color: #0077cc;
}

.custom-class-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.selected-class-item.drag-over {
    border-top: 2px solid #0077cc;
}
.custom-class-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.custom-class-row label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.custom-class-row input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.remove-custom-class {
    padding: 8px 12px;
    border-radius: 4px;
    background-color: #f44336;
    color: white;
    border: none;
    cursor: pointer;
}

.remove-custom-class:hover {
    background-color: #d32f2f;
}

/* Selected Classes Preview */
.selected-classes-preview {
    margin-top: 20px;
}

.selected-class-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    background-color: #f0f7ff;
    border-left: 4px solid #0077cc;
    margin-bottom: 10px;
    border-radius: 0 4px 4px 0;
    cursor: grab;
    transition: all 0.2s ease;
}

.selected-class-item:hover {
    background-color: #e1f0ff;
    transform: translateX(2px);
}

.selected-class-item.dragging {
    opacity: 0.4;
    cursor: grabbing;
}

.selected-class-item .class-info {
    flex: 1;
}

.selected-class-item .class-name {
    font-weight: 600;
    color: #0077cc;
}

.selected-class-item .class-type {
    color: #666;
    font-size: 14px;
}

.selected-class-item .drag-handle {
    color: #999;
    cursor: grab;
    padding-right: 10px;
    display: flex;
    align-items: center;
}

.selected-class-item .drag-handle i {
    font-size: 16px;
}

.selected-class-item:hover .drag-handle {
    color: #666;
}

.empty-state {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 4px;
    margin-top: 15px;
    color: #666;
}

.empty-state p {
    margin: 0;
}

/* Button Styles */
#add-custom-class {
    background-color: #f9f9f9;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

#add-custom-class:hover {
    background-color: #f0f0f0;
}

#add-custom-class i {
    color: #0077cc;
}
/* Training Events Styles */
.section-divider {
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.section-divider h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.event-card.training-event {
    border-left: 4px solid var(--warning-color);
}

.event-type.training {
    background: #fff3e0;
    color: #e65100;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.event-stats-mini {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

.event-stats-mini i {
    margin-right: 5px;
    color: var(--accent-color);
}

.btn-group {
    display: flex;
    gap: 10px;
}

.btn-secondary {
    background: var(--warning-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #e08e0b;
}

/* Wizard intro & section help */
.wizard-intro {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
    position: relative;
}

.wizard-intro h3 {
    margin: 0 0 12px;
    color: #1565c0;
    font-size: 1.1rem;
}

.wizard-intro ol {
    margin: 0;
    padding-left: 20px;
    color: #333;
    line-height: 1.7;
}

.wizard-intro ol li {
    margin-bottom: 4px;
}

.wizard-intro .dismiss-btn {
    background: none;
    border: none;
    color: #1976d2;
    cursor: pointer;
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 13px;
}

.wizard-intro .dismiss-btn:hover {
    text-decoration: underline;
}

.section-help {
    color: #888;
    font-size: 13px;
    font-style: italic;
    margin: -4px 0 12px;
}
