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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* Header */
.header {
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background-color: #1f2937;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.community-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #1f2937;
    cursor: pointer;
}

.dropdown-arrow {
    color: #6b7280;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-item {
    text-decoration: none;
    color: #6b7280;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    pointer-events: cursor;
}

.nav-item:hover {
    color: #1f2937;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 8px 12px 8px 36px;
    font-size: 14px;
    width: 240px;
    background-color: #f9fafb;
    outline: none;
    transition: border-color 0.2s, background-color 0.2s;
}

.search-input:focus {
    border-color: #3b82f6;
    background-color: white;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    z-index: 1;
}

.icon-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

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

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Main Container */
.main-container {
    display: flex;
    margin-top: -680px;
    min-height: calc(100vh - 64px);
    margin-left: 5000px;
}

/* Thin Left Sidebar */
.thin-sidebar {
    width: 64px;
    background-color: white;
    border-right: 1px solid #e5e7eb;
    padding: 16px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 0;
    top: 64px;
    height: calc(100vh - 64px);
    z-index: 999;
}

.thin-sidebar-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.thin-sidebar-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.sparkle-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sparkle-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
    transform: scale(1.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

/* Container and Layout */
.container {
    display: flex;
    min-height: 100vh;
    max-width: 1400px;
    margin: 0 auto;
    gap: 2rem;
    padding: 2rem;
}

.main-content {
    flex: 1;
    max-width: 900px;
    margin-left: 8vw;
}

/* Header Section */
.header-section {
    margin-bottom: 3rem;
}

.header-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.header-section p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;


    border-radius: 8px;


    height: 52px;
}

/* Button Styles */
.btn-primary, .btn-secondary {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 36px;
    white-space: nowrap;
}

.btn-primary {
    background-color: #1e293b;
    color: white;
}

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

.btn-secondary {
    background-color: white;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Quick Actions Grid */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.action-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.action-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.action-icon {
    background-color: #f1f5f9;
    padding: 0.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
}

.action-icon i {
    font-size: 1.25rem;
    color: #475569;
}

.action-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.action-content p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Section Styles */
.section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
}

.see-all-btn {
    background: none;
    border: none;
    color: #64748b;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.see-all-btn:hover {
    color: #1e293b;
}

/* Marketplace Grid */
.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.marketplace-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.marketplace-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-icon {
    background-color: #f1f5f9;
    padding: 0.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    width: 48px;
    height: 48px;
}

.card-icon i {
    font-size: 1.25rem;
    color: #475569;
}

.card-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.tag.partnership { background-color: #e0f2fe; color: #0277bd; }
.tag.events { background-color: #f3e5f5; color: #7b1fa2; }
.tag.resources { background-color: #e8f5e8; color: #2e7d32; }
.tag.sharing { background-color: #fff3e0; color: #f57c00; }
.tag.skills { background-color: #e1f5fe; color: #0288d1; }
.tag.mentoring { background-color: #fce4ec; color: #c2185b; }
.tag.planning { background-color: #f1f8e9; color: #558b2f; }
.tag.budget { background-color: #fff8e1; color: #ff8f00; }
.tag.success { background-color: #e8f5e8; color: #388e3c; }
.tag.metrics { background-color: #e3f2fd; color: #1976d2; }
.tag.campus { background-color: #f3e5f5; color: #512da8; }
.tag.hub { background-color: #e0f2fe; color: #0277bd; }

/* AI Features Grid */
.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.ai-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    color: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.ai-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.ai-icon {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    width: 48px;
    height: 48px;
}

.ai-icon i {
    font-size: 1.25rem;
    color: white;
}

.ai-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.ai-content p {
    font-size: 0.875rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.ai-example {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.example-text {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.9;
}

/* Resource Categories */
.resource-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.resource-category {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.resource-category:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.resource-category h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-category h3 i {
    color: #64748b;
}

.resource-category p {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.resource-btn {
    background-color: #f1f5f9;
    color: #475569;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.resource-btn:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

/* Sidebar */
.sidebar {
    width: 320px;
    flex-shrink: 0;
    position: fixed;
    top: 12vh;
    left: 75vw;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.progress-text {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Checklist */
.checklist {
    space-y: 1rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.checkbox.checked {
    background-color: #22c55e;
    border-color: #22c55e;
}

.checkbox.checked i {
    color: white;
    font-size: 0.75rem;
}

.checklist-item span {
    font-size: 0.875rem;
    color: #334155;
}

.checklist-item.completed span {
    text-decoration: line-through;
    color: #94a3b8;
}

/* Featured Collaboration */
.featured-collab {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.collab-preview h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem 0;
}

.collab-preview p {
    font-size: 0.875rem;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.collab-clubs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.club-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.more-clubs {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.collab-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat {
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 50px;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.close-btn:hover {
    background-color: #f1f5f9;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .sidebar {
        width: 100%;
        order: -1;
    }
    
    .sidebar-widget {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .header-section h1 {
        font-size: 2rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        justify-content: center;
    }
    
    .quick-actions,
    .marketplace-grid,
    .ai-features-grid,
    .resource-categories {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 95%;
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .collab-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}


.btn-toggle {
    padding: 8px 16px;
    border: 2px solid #10b981;
    background: transparent;
    color: #10b981;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 0;
    height: 36px;
    white-space: nowrap;
}

.btn-toggle:hover {
    background: #10b981;
    color: white;
    transform: translateY(-2px);
}

.btn-toggle.active {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-toggle.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Status indicator */
.collab-status {
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    font-size: 12px;
    color: #6b7280;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
    background: #ef4444;
}

.status-dot.open {
    background: #10b981;
    animation: pulse 2s infinite;
}

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

.collab-badge {
    background: #4CAF50;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 12px;
}

.no-results, .error {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.loading {
    text-align: center;
    padding: 40px 20px;
}

.search-container {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.club-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.club-switcher label {
    font-weight: bold;
    color: #333;
}

.club-dropdown {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    min-width: 120px;
    cursor: pointer;
    height: 36px;
}

.club-dropdown:focus {
    outline: none;
    border-color: #4CAF50;
}

.club-dropdown option {
    padding: 5px;
}

.equipment-modal .modal-content {
    max-width: 900px;
    max-height: 80vh;
}

.equipment-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-weight: bold;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
}

.equipment-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    background: white;
    transition: all 0.3s;
}

.equipment-card.available {
    border-color: #4CAF50;
    background: #f9fff9;
}

.equipment-card.in-use {
    border-color: #f44336;
    background: #fff9f9;
}

.equipment-info h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.equipment-info p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 0.9em;
}

.equipment-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.status-indicator {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    width: fit-content;
}

.status-indicator.free {
    background: #4CAF50;
    color: white;
}

.status-indicator.busy {
    background: #f44336;
    color: white;
}

.reserved-by {
    font-size: 0.8em;
    color: #666;
    font-style: italic;
}

.equipment-controls {
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
}

.checkbox-container input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.checkbox-label {
    font-weight: bold;
}

.loading, .no-equipment, .error {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
    color: #666;
}

.error {
    color: #f44336;
}

.resource-category {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 2rem;
            border-radius: 20px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
            max-width: 400px;
            margin: 0 auto;
            text-align: center;
            transition: transform 0.3s ease;
        }

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

        .resource-category h3 {
            color: #2c3e50;
            font-size: 1.5rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .resource-category p {
            color: #7f8c8d;
            margin-bottom: 1.5rem;
            line-height: 1.6;
        }

       

       

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
        }

        .modal-content {
            background: white;
            margin: 2% auto;
            padding: 0;
            border-radius: 20px;
            width: 90%;
            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 1.5rem 2rem;
            border-radius: 20px 20px 0 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h2 {
            margin: 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .close {
            color: white;
            font-size: 2rem;
            cursor: pointer;
            transition: transform 0.2s ease;
        }

        .close:hover {
            transform: scale(1.1);
        }

        .modal-body {
            padding: 2rem;
        }

        .add-vendor-form {
            background: #f8f9fa;
            padding: 1.5rem;
            border-radius: 15px;
            margin-bottom: 2rem;
            border: 2px dashed #667eea;
        }

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

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

        .form-group input, .form-group select, .form-group textarea {
            width: 100%;
            padding: 0.8rem;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }

        .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        .add-btn {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 10px;
            cursor: pointer;
            font-size: 1rem;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .add-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
        }

        .vendors-list {
            display: grid;
            gap: 1rem;
        }

        .vendor-card {
            background: white;
            border: 2px solid #e9ecef;
            border-radius: 15px;
            padding: 1.5rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .vendor-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .vendor-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            border-color: #667eea;
        }

        .vendor-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 1rem;
        }

        .vendor-name {
            font-size: 1.3rem;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 0.5rem;
        }

        .vendor-type {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .vendor-details {
            color: #6c757d;
            margin-bottom: 1rem;
        }

        .vendor-email {
            color: #667eea;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .vendor-usage {
            background: #f8f9fa;
            padding: 1rem;
            border-radius: 10px;
            margin-top: 1rem;
            border-left: 4px solid #667eea;
        }

        .vendor-usage strong {
            color: #2c3e50;
        }

        .loading {
            text-align: center;
            padding: 2rem;
            color: #6c757d;
        }

        .empty-state {
            text-align: center;
            padding: 3rem;
            color: #6c757d;
        }

        .empty-state i {
            font-size: 3rem;
            margin-bottom: 1rem;
            opacity: 0.5;
        }

        @media (max-width: 768px) {
            .form-row {
                grid-template-columns: 1fr;
            }
            
            .modal-content {
                margin: 5% auto;
                width: 95%;
            }
            
            .modal-body {
                padding: 1rem;
            }
        }
.modal-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.tab-btn.active {
    border-bottom: 3px solid #4285f4;
    color: #4285f4;
    font-weight: bold;
}

.tab-content {
    display: none;
}

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

.template-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.template-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.template-type {
    background: #e0e0e0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.template-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.download-btn, .link-btn {
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    color: white;
    margin-right: 10px;
}

.download-btn {
    background-color: #4285f4;
}

.link-btn {
    background-color: #34a853;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.no-results, .error {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error {
    color: #d32f2f;
}

.club-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    margin-bottom: 16px;
    transition: all 0.2s ease;
    display: block;
}

.club-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.club-info {
    flex: 1;
}

.club-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.club-info p {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.club-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.stat i {
    color: #94a3b8;
    font-size: 0.875rem;
}

.collab-badge {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.request-collab-btn {
    background-color: #1e293b;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.request-collab-btn:hover {
    background-color: #334155;
    transform: translateY(-1px);
}

.request-collab-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.no-results, .error {
    text-align: center;
    padding: 48px 20px;
    color: #64748b;
    font-size: 0.875rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.error {
    color: #ef4444;
    border-color: #fecaca;
    background-color: #fef2f2;
}

.loading {
    text-align: center;
    padding: 48px 20px;
    color: #64748b;
    font-size: 0.875rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.stats-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
 
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 20px 20px 0 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.close-modal:hover {
    transform: scale(1.1);
}

.modal-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: white;
}

.tab-btn:hover:not(.active) {
    color: #495057;
    background: rgba(102, 126, 234, 0.05);
}

.tab-content {
    display: none;
    padding: 2rem;
}

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

.search-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.search-bar input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
}

.search-bar input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-bar button {
    padding: 0.8rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-bar button:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

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

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

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-group input[type="file"] {
    padding: 0.5rem;
    background: white;
}

.btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.templates-container {
    min-height: 200px;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-content h2 {
        padding: 1rem 1.5rem;
    }
    
    .close-modal {
        top: 1rem;
        right: 1.5rem;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .tab-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* Success state */
.success-content {
    text-align: center;
    color: #28a745;
}

.success-content i {
    font-size: 4em;
    margin-bottom: 1rem;
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Error state */
.error-content {
    text-align: center;
    color: #dc3545;
}

.error-content i {
    font-size: 4em;
    margin-bottom: 1rem;
}

.error-details {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.success-modal, .error-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.success-modal .modal-content, .error-modal .modal-content {
    background: white;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.success-modal .modal-content {
    border-left: 5px solid #28a745;
}

.error-modal .modal-content {
    border-left: 5px solid #dc3545;
}

.modal-close-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
}