/* Reset and base styles */
* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}

body {
 font-family: 'Arial', sans-serif;
 background-color: #f5f5f5;
 color: #333;
}
button{
    margin: 4px;
}
/* Dashboard Layout */
.dashboard-container {
 display: flex;
 min-height: 100vh;
}

.sidebar {
 width: 250px;
 background-color: #0c5dad;
 color: white;
 padding: 20px;
}

.sidebar h2 {
 margin-bottom: 30px;
 text-align: center;
}

.sidebar ul {
 list-style: none;
}

.sidebar li {
 margin-bottom: 10px;
}

.sidebar a {
 color: white;
 text-decoration: none;
 padding: 10px 15px;
 display: block;
 border-radius: 5px;
 transition: background-color 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
 background-color: #0e8ab7;
}

.main-content {
 flex: 1;
 padding: 20px;
}

header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 30px;
 padding-bottom: 20px;
 border-bottom: 1px solid #ddd;
}

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

.stat-card {
 background: white;
 padding: 20px;
 border-radius: 8px;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
 text-align: center;
}

.stat-number {
 font-size: 2em;
 font-weight: bold;
 color: #ff8000;
}

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

.form-group label {
 display: block;
 margin-bottom: 5px;
 font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
 width: 100%;
 padding: 10px;
 border: 1px solid #ddd;
 border-radius: 4px;
 font-size: 16px;
}

.btn {
 padding: 10px 20px;
 border: none;
 border-radius: 4px;
 cursor: pointer;
 font-size: 16px;
 text-decoration: none;
 display: inline-block;
 text-align: center;
}

.btn-primary {
 background-color: #3498db;
 color: white;
}

.btn-success {
 background-color: #27ae60;
 color: white;
}

.btn-danger {
 background-color: #e74c3c;
 color: white;
}

/* Tables */
.table {
 width: 100%;
 background: white;
 border-radius: 8px;
 overflow: hidden;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.table th {
 background-color: #f8f9fa;
 font-weight: bold;
}

/* Login Page */
.login-container {
 display: flex;
 justify-content: center;
 align-items: center;
 min-height: 100vh;
 background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-form {
 background: white;
 padding: 40px;
 border-radius: 10px;
 box-shadow: 0 15px 35px rgba(0,0,0,0.1);
 width: 100%;
 max-width: 400px;
}

.login-form h1 {
 text-align: center;
 margin-bottom: 30px;
 color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
 .dashboard-container {
     flex-direction: column;
 }
 
 .sidebar {
     width: 100%;
 }
 
 .stats-container {
     grid-template-columns: 1fr;
 }
}


/* Additional styles for new pages */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid #3498db;
    background-color: #f8f9fa;
}

.alert-error {
    border-left-color: #e74c3c;
    background-color: #fdeded;
}

.alert-success {
    border-left-color: #27ae60;
    background-color: #edf7ed;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-block {
    display: block;
    width: 100%;
}

.table-container {
    overflow-x: auto;
}

.status-pending {
    color: #f39c12;
    font-weight: bold;
}

.status-attended {
    color: #27ae60;
    font-weight: bold;
}

.status-not-attended {
    color: #e74c3c;
    font-weight: bold;
}

.status-available {
    color: #27ae60;
}

.badge {
    background: #025971;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 5px;
}

.user-type-super-admin {
    color: #e74c3c;
    font-weight: bold;
}

.user-type-admin {
    color: #e16a08;
    font-weight: bold;
}

.method-qr-code {
    color: #27ae60;
}

.method-invitation-code {
    color: #3498db;
}

.method-manual {
    color: #f39c12;
}

.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.export-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.scanner-controls {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.verification-method {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.verification-method:last-child {
    border-bottom: none;
}

.inline-form .form-group {
    display: flex;
    gap: 10px;
    align-items: end;
}

.member-checkbox {
    margin-bottom: 5px;
}

.filter-form {
    margin-bottom: 20px;
}

.text-muted {
    color: #6c757d;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .quick-actions,
    .export-options {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: static;
    }
    
    .dashboard-container {
        flex-direction: column;
    }
}

/* Edit Page Specific Styles */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.readonly-field {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    font-family: monospace;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.tool-form {
    text-align: center;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.tool-form button, .tool-form a {
    margin-bottom: 8px;
    width: 100%;
}

.user-info-grid, .member-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.info-item, .preview-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.status-active {
    color: #27ae60;
    font-weight: bold;
}

.status-inactive {
    color: #e74c3c;
    font-weight: bold;
}

.text-muted {
    color: #6c757d;
    font-size: 0.875em;
}

/* Responsive design for edit pages */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .user-info-grid, .member-preview {
        grid-template-columns: 1fr;
    }
}


/* Filter Styles */
.filter-card, .dashboard-filter {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

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

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.active-filters, .active-filters-dash {
    background: #e8f4fd;
    padding: 10px 15px;
    border-radius: 5px;
    margin-top: 15px;
    border-left: 4px solid #3498db;
}

.filter-tag {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-right: 5px;
    margin-bottom: 5px;
}

.quick-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.quick-filter-btn {
    padding: 5px 12px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.quick-filter-btn:hover,
.quick-filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* Trend Cards */
.trend-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.trend-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.trend-item:last-child {
    border-bottom: none;
}

/* Event Cards */
.event-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid #3498db;
}

.event-card.upcoming {
    border-left-color: #27ae60;
}

.event-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.text-center {
    text-align: center;
}

/* Export Options */
.export-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-form {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .filter-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .export-options {
        flex-direction: column;
    }
    
    .quick-filters {
        justify-content: center;
    }
    
    .event-actions {
        flex-direction: column;
    }
}