/* Core Community Club - Modern UI Styles */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-color: #e5e7eb;
    --text-color: #374151;
    --text-light: #6b7280;
    --sidebar-width: 260px;
    --header-height: 70px;
}

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

/* Force visibility for all content elements */
.content *,
.card *,
.table *,
.btn,
h1, h2, h3, h4, h5, h6,
p, span, div, a, button, input, textarea, select {
    visibility: visible !important;
    opacity: 1 !important;
}

html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.dashboard-wrapper {
    width: 100vw !important;
    max-width: 100vw !important;
    display: flex;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Login Page Styles */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header .logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.login-header .logo i {
    font-size: 40px;
    color: white;
}

.login-header h1 {
    color: var(--dark-color);
    font-size: 28px;
    margin-bottom: 5px;
}

.login-header p {
    color: var(--text-light);
    font-size: 14px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    background: var(--light-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

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

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

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

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

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

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

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger-color);
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid var(--info-color);
}

.login-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
}

.login-footer i {
    margin-right: 5px;
}

/* Quick Login Section */
.quick-login-section {
    margin-top: 25px;
    margin-bottom: 20px;
}

.quick-login-divider {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.quick-login-divider::before,
.quick-login-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: var(--border-color);
}

.quick-login-divider::before {
    left: 0;
}

.quick-login-divider::after {
    right: 0;
}

.quick-login-divider span {
    background: white;
    padding: 0 15px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.quick-login-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.quick-login-btn {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: white;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.quick-login-btn i {
    font-size: 14px;
}

.quick-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-login-btn.admin {
    border-color: #ef4444;
    color: #ef4444;
}

.quick-login-btn.admin:hover {
    background: #ef4444;
    color: white;
}

.quick-login-btn.president {
    border-color: #f59e0b;
    color: #f59e0b;
}

.quick-login-btn.president:hover {
    background: #f59e0b;
    color: white;
}

.quick-login-btn.coordinator {
    border-color: #10b981;
    color: #10b981;
}

.quick-login-btn.coordinator:hover {
    background: #10b981;
    color: white;
}

.quick-login-btn.member {
    border-color: #3b82f6;
    color: #3b82f6;
}

.quick-login-btn.member:hover {
    background: #3b82f6;
    color: white;
}

@media (max-width: 480px) {
    .quick-login-buttons {
        grid-template-columns: 1fr;
    }
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--light-color);
    position: relative;
    overflow-x: hidden;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 20px;
    margin-bottom: 5px;
}

.sidebar-header p {
    font-size: 12px;
    opacity: 0.8;
}

.sidebar-menu {
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.menu-item:hover,
.menu-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
    color: white;
}

.menu-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 18px;
}

.sidebar-images {
    padding: 20px;
    margin-top: auto;
}

.sidebar-images img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
    height: 80px;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    will-change: auto;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    width: calc(100vw - var(--sidebar-width)) !important;
    max-width: calc(100vw - var(--sidebar-width)) !important;
    box-sizing: border-box;
}

/* Header */
.header {
    background: white;
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    will-change: transform;
    backface-visibility: hidden;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

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

.header-left h3 {
    color: var(--dark-color);
    font-size: 18px;
}

.header-center {
    flex: 1;
    text-align: center;
}

.clock {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
    will-change: contents;
    contain: layout style paint;
}

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

.header-social-links {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
    visibility: visible !important;
    opacity: 1 !important;
}

.header-social-links .social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    color: var(--text-color);
    background: white;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    visibility: visible !important;
    opacity: 1 !important;
}

.header-social-links .social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-social-links .social-link.linkedin {
    color: #0077b5;
    border-color: #0077b5;
}

.header-social-links .social-link.linkedin:hover {
    background: #0077b5;
    color: white;
    border-color: #0077b5;
}

.header-social-links .social-link.instagram {
    color: #E4405F;
    border-color: #E4405F;
}

.header-social-links .social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    border-color: #bc1888;
}

.header-social-links .social-link.youtube {
    color: #FF0000;
    border-color: #FF0000;
}

.header-social-links .social-link.youtube:hover {
    background: #FF0000;
    color: white;
    border-color: #FF0000;
}

.header-social-links .social-link.whatsapp {
    color: #25D366;
    border-color: #25D366;
}

.header-social-links .social-link.whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.site-logo-container {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.site-logo {
    max-width: 120px;
    max-height: 50px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-logo {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    display: block;
}

/* Developed By Section (Hardcoded) */
.developed-by-section {
    margin-top: auto;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.dev-section-toggle {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    user-select: none;
}

.dev-section-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dev-section-toggle i {
    font-size: 16px;
    color: var(--primary-color);
}

.dev-section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
}

.dev-section-content.active {
    max-height: 500px;
}

.dev-content-wrapper {
    padding: 20px;
    text-align: center;
}

.dev-company-logo {
    margin-bottom: 15px;
}

.dev-company-logo img {
    max-width: 120px;
    max-height: 50px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
}

.dev-person-photo {
    margin: 0 auto 12px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.dev-person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dev-person-info {
    margin-bottom: 12px;
}

.dev-person-name {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.dev-person-designation {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.dev-company-info {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dev-company-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.dev-company-description {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    padding: 0 5px;
}

.dev-email {
    margin-bottom: 15px;
}

.dev-email a {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s;
}

.dev-email a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.dev-social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dev-social-links a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dev-social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.dev-social-links a i {
    font-size: 14px;
}


.profile-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: var(--light-color);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    will-change: auto;
    flex-shrink: 0;
}

.chat-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Content Area */
.content {
    padding: 30px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    background: transparent !important;
}

/* Cards */
.card {
    background: white !important;
    border-radius: 15px;
    padding: 25px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.card-header h3 {
    color: var(--dark-color) !important;
    font-size: 20px !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

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

.stat-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.3);
}

.stat-card.success {
    background: linear-gradient(135deg, var(--success-color), #059669);
}

.stat-card.warning {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
}

.stat-card.info {
    background: linear-gradient(135deg, var(--info-color), #2563eb);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-card-header i {
    font-size: 30px;
    opacity: 0.8;
}

.stat-card-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
    table-layout: auto;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.table th,
.table td {
    padding: 15px !important;
    text-align: left !important;
    display: table-cell !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: var(--text-color) !important;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
}

.table tbody tr:hover {
    background: var(--light-color);
}

.table tbody tr:last-child {
    border-bottom: none;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Search and Filter */
.search-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 20px 30px;
    text-align: center;
    margin-top: auto;
}

/* Responsive Design */
/* Featured Images Row Responsive */
.featured-images-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    padding: 25px !important;
}

.featured-image-container {
    width: 100% !important;
    aspect-ratio: 1 !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    border-radius: 15px !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

.featured-images-row img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.featured-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.featured-image-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.featured-image-card img {
    transition: transform 0.3s ease;
}

.featured-image-card:hover img {
    transform: scale(1.05);
}

.info-box {
    background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

@media (max-width: 992px) {
    .featured-images-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        padding: 20px !important;
    }
    
    .featured-image-container {
        aspect-ratio: 1 !important;
    }
    
    .featured-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet and below (992px) */
@media (max-width: 992px) {
    .header-left h3 {
        font-size: 14px !important;
    }
    
    .header-right {
        gap: 8px !important;
    }
    
    .header-social-links {
        gap: 5px !important;
        margin-right: 8px !important;
    }
    
    .header-social-links .social-link {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }
    
    .site-logo-container {
        display: none;
    }
    
    .content {
        padding: 20px !important;
    }
    
    .card {
        padding: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .card-header h3 {
        font-size: 18px !important;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 600px;
    }
    
    .form-grid {
        grid-template-columns: 1fr !important;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

/* Mobile devices (768px and below) */
@media (max-width: 768px) {
    /* Sidebar */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        will-change: transform;
        width: 280px !important;
        z-index: 9999 !important;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    /* Overlay when sidebar is open */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.6);
        z-index: 9998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Main Content */
    .main-content {
        margin-left: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    /* Header */
    .header {
        padding: 0 10px !important;
        height: 60px !important;
        flex-wrap: wrap;
    }
    
    .header-left {
        flex: 1;
        min-width: 0;
    }
    
    .header-left h3 {
        font-size: 13px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .header-center {
        display: none !important;
    }
    
    .header-right {
        gap: 5px !important;
        flex-shrink: 0;
    }
    
    .header-social-links {
        display: none !important;
    }
    
    .chat-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 14px !important;
    }
    
    .profile-img {
        width: 38px !important;
        height: 38px !important;
    }
    
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        color: var(--dark-color);
        font-size: 22px;
        cursor: pointer;
        padding: 8px;
        margin-right: 10px;
    }
    
    /* Content */
    .content {
        padding: 15px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Cards */
    .card {
        padding: 15px !important;
        margin-bottom: 15px !important;
        border-radius: 12px !important;
    }
    
    .card-header {
        margin-bottom: 15px !important;
        padding-bottom: 12px !important;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .card-header h3 {
        font-size: 16px !important;
        flex: 1;
        min-width: 0;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 18px !important;
        font-size: 14px !important;
        min-height: 44px; /* Touch-friendly */
    }
    
    .btn-sm {
        padding: 6px 12px !important;
        font-size: 12px !important;
        min-height: 36px;
    }
    
    .btn-block {
        width: 100% !important;
        margin-bottom: 10px;
    }
    
    /* Tables */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -10px;
        padding: 0 10px;
    }
    
    .table {
        min-width: 700px;
        font-size: 13px !important;
    }
    
    .table th,
    .table td {
        padding: 10px 8px !important;
        font-size: 12px !important;
    }
    
    .table th {
        font-size: 12px !important;
        white-space: nowrap;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 15px !important;
    }
    
    .form-group label {
        font-size: 14px !important;
        margin-bottom: 8px !important;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 44px; /* Touch-friendly */
        width: 100% !important;
    }
    
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Search and Filter */
    .search-filter {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .search-box {
        min-width: 100% !important;
    }
    
    /* Action Buttons */
    .action-buttons {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100%;
    }
    
    .action-buttons .btn {
        width: 100% !important;
        justify-content: center;
    }
    
    /* Badges */
    .badge {
        font-size: 11px !important;
        padding: 4px 10px !important;
    }
    
    /* Modals */
    .modal {
        padding: 10px !important;
    }
    
    .modal-content {
        max-width: 100% !important;
        margin: 10px !important;
        border-radius: 12px !important;
    }
    
    .modal-header {
        padding: 15px !important;
    }
    
    .modal-header h3 {
        font-size: 18px !important;
    }
    
    /* Featured Images */
    .featured-images-row {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 15px !important;
    }
    
    .featured-image-container {
        aspect-ratio: 1 !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .featured-images-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Empty State */
    .empty-state {
        padding: 40px 15px !important;
    }
    
    .empty-state i {
        font-size: 48px !important;
    }
    
    .empty-state h3 {
        font-size: 16px !important;
    }
    
    /* Footer */
    .footer {
        padding: 15px !important;
        font-size: 12px !important;
    }
    
    /* Coordinator Grid */
    .coordinators-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 15px !important;
    }
    
    /* Event Cards */
    .event-card {
        margin-bottom: 15px !important;
    }
    
}

/* Small Mobile devices (480px and below) */
@media (max-width: 480px) {
    .header {
        height: 55px !important;
        padding: 0 8px !important;
    }
    
    .header-left h3 {
        font-size: 12px !important;
    }
    
    .content {
        padding: 12px 8px !important;
    }
    
    .card {
        padding: 12px !important;
        border-radius: 10px !important;
    }
    
    .card-header h3 {
        font-size: 15px !important;
    }
    
    .btn {
        padding: 10px 15px !important;
        font-size: 13px !important;
    }
    
    .table {
        min-width: 600px;
        font-size: 12px !important;
    }
    
    .table th,
    .table td {
        padding: 8px 6px !important;
        font-size: 11px !important;
    }
    
    .modal-content {
        margin: 5px !important;
        border-radius: 10px !important;
    }
    
    .modal-header {
        padding: 12px !important;
    }
    
    .modal-header h3 {
        font-size: 16px !important;
    }
    
    .stats-grid {
        gap: 10px !important;
    }
    
    .stat-card {
        padding: 15px !important;
    }
    
    .stat-card-value {
        font-size: 24px !important;
    }
    
    .stat-card-label {
        font-size: 12px !important;
    }
}

/* ============================================
   ADDITIONAL MOBILE ENHANCEMENTS
   ============================================ */

/* Touch-friendly elements */
@media (max-width: 768px) {
    /* Ensure all clickable elements are touch-friendly */
    a, button, .btn, .menu-item, .card-header {
        -webkit-tap-highlight-color: rgba(99, 102, 241, 0.2);
        tap-highlight-color: rgba(99, 102, 241, 0.2);
    }
    
    /* Prevent text selection on buttons */
    .btn, button {
        -webkit-user-select: none;
        -moz-user-select: none;
        user-select: none;
    }
    
    /* Improve scrolling */
    .content, .table-container, .modal-content {
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* Better spacing for mobile */
    .card-header {
        gap: 10px;
    }
    
    /* Responsive text */
    h1 { font-size: 24px !important; }
    h2 { font-size: 20px !important; }
    h3 { font-size: 18px !important; }
    h4 { font-size: 16px !important; }
    p, span, div { font-size: 14px !important; }
    
    /* Better form inputs on mobile */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        border-radius: 8px;
    }
    
    /* Better table display on mobile */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Stack action buttons vertically on mobile */
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons > * {
        width: 100%;
        margin-bottom: 8px;
    }
    
    /* Better modal on mobile */
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Hide less important elements on mobile */
    .header-center,
    .site-logo-container,
    .chat-btn {
        display: none !important;
    }
    
    /* Better sidebar menu items on mobile */
    .menu-item {
        padding: 18px 20px !important;
        font-size: 15px !important;
        min-height: 50px;
    }
    
    .menu-item i {
        font-size: 18px !important;
        width: 24px !important;
    }
    
    /* Better card spacing */
    .card + .card {
        margin-top: 15px;
    }
    
    /* Responsive grid adjustments */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    /* Better badge display */
    .badge {
        display: inline-block;
        white-space: nowrap;
    }
    
    /* Event cards mobile */
    .event-card {
        margin-bottom: 15px;
    }
    
    /* Coordinator cards mobile */
    .coordinator-card {
        max-width: 100%;
    }
}

/* Very small screens (360px and below) */
@media (max-width: 360px) {
    .header-left h3 {
        font-size: 11px !important;
    }
    
    .content {
        padding: 10px 5px !important;
    }
    
    .card {
        padding: 10px !important;
    }
    
    .card-header h3 {
        font-size: 14px !important;
    }
    
    .btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    .table {
        font-size: 11px !important;
    }
    
    .table th,
    .table td {
        padding: 6px 4px !important;
        font-size: 10px !important;
    }
}

.mobile-menu-btn {
    display: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 0;
    max-width: 700px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
    border-radius: 15px 15px 0 0;
}

.modal-header h3 {
    color: white;
    font-size: 22px;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
    display: inline-block !important;
    visibility: visible !important;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: var(--text-color) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Action Buttons */
.action-buttons {
    display: flex !important;
    gap: 10px;
    flex-wrap: wrap;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Profile Image Upload */
.profile-upload {
    text-align: center;
    margin-bottom: 20px;
}

.profile-upload img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin-bottom: 15px;
}

/* Club Tags */
.club-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.club-tag {
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Pulse Animation for Live Events */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

