/* Main Layout */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex-grow: 1;
}

/* Navigation Bar */
nav {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 0.5rem 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}
.brand-logo {
    height: 50px;
}
.separator {
    width: 2px;
    height: 30px;
    background-color: #e5e7eb;
}
.brand-motto {
    font-style: italic;
    color: #6b7280;
    font-size: 0.9rem;
    white-space: nowrap;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
nav ul li a {
    color: #374151;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-weight: 500;
    transition: color 0.2s;
}
nav ul li a:hover {
    color: #002366;
}

/* Search Bar Styles */
.search-bar {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    margin-bottom: 2rem;
}
.search-group {
    display: flex;
    flex-direction: column;
}
.search-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}
.search-group input,
.search-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-group input:focus,
.search-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px #bfdbfe;
}


/* Event Grid and Cards */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative; /* Added for featured badge */
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.featured-event {
    border: 2px solid #ff9800;
    box-shadow: 0 10px 15px -3px rgb(255 152 0 / 0.2), 0 4px 6px -4px rgb(255 152 0 / 0.2);
}
.featured-badge {
    position: absolute;
    top: 1rem;
    left: -1px; /* Align with new border */
    background-color: #ff9800;
    color: white;
    padding: 4px 12px;
    border-radius: 0 0.25rem 0.25rem 0;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 10;
}
.event-image-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.event-meta {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.meta-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.card-description {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.price {
    font-weight: bold;
    color: #002366;
    font-size: 1.2rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #ff9800; /* Inwit Orange */
    color: white !important;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
    width: 100%;
}
.btn:hover {
    background-color: #e68900;
}
.btn-secondary {
    background-color: #1a73e8;
}
.btn-secondary:hover {
    background-color: #1765c4;
}

/* Uniform Form Styling */
.form-container {
    max-width: 500px;
    margin: 2rem auto;
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.form-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: #1f2937;
    text-align: center;
    margin-bottom: 1.5rem;
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}
.form-group input,
.form-group textarea,
.form-group select,
.form-group input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px #bfdbfe;
}
.form-group textarea {
    min-height: 100px;
    resize: vertical;
}
.form-text {
    text-align: center;
    margin-top: 1.5rem;
    color: #6b7280;
}
.form-text a {
    color: #1a73e8;
    font-weight: 500;
    text-decoration: none;
}
.form-text a:hover {
    text-decoration: underline;
}
.form-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Styles for Password Strength Validation */
.password-reqs {
    margin: 1rem 0;
    padding: 1rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}
.password-reqs p {
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.password-reqs ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.password-reqs li {
    padding-left: 1.5rem;
    position: relative;
    color: #ef4444; /* Red for invalid */
    margin-bottom: 0.25rem;
}
.password-reqs li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ef4444;
}
.password-reqs li.valid {
    color: #10b981; /* Green for valid */
}
.password-reqs li.valid::before {
    content: '✓';
    color: #10b981;
}

/* Event Detail Page Styles */
.event-detail-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    max-width: 900px;
    margin: auto;
}
.detail-image-container {
    width: 100%;
    height: 350px;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.detail-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.ticket-options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.ticket-option-label {
    display: block;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: border-color 0.2s, background-color 0.2s;
}
.ticket-option-radio {
    display: none;
}
.ticket-option-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}
.ticket-option-radio:checked + .ticket-option-content {
    background-color: #eff6ff;
}
.ticket-option-label:has(.ticket-option-radio:checked) {
    border-color: #3b82f6;
}

/* Other Components */
.footer {
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    background-color: #333;
    color: #aaa;
}
.alert {
    padding: 1rem;
    margin: 1rem auto;
    border-radius: 0.5rem;
    max-width: 1200px;
}
.alert-success { color: #155724; background-color: #d4edda; border: 1px solid #c3e6cb; }
.alert-danger { color: #721c24; background-color: #f8d7da; border: 1px solid #f5c6cb; }
.alert-warning { color: #856404; background-color: #fff3cd; border-color: #ffeeba;}
.alert-info { color: #0c5460; background-color: #d1ecf1; border-color: #bee5eb;}

/* Dashboard & Profile Specific Styles */
.table-container {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.custom-table {
    width: 100%;
    border-collapse: collapse;
}
.custom-table th, .custom-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}
.custom-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.custom-table td {
    font-size: 0.875rem;
    color: #374151;
}
.dashboard-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    display: flex;
    align-items: center;
}
.dashboard-card-icon-container {
    padding: 0.75rem;
    border-radius: 9999px;
    margin-right: 1rem;
}
.dashboard-card-icon {
    width: 2rem;
    height: 2rem;
}
.blue-icon { background-color: #dbeafe; color: #1e40af; }
.green-icon { background-color: #d1fae5; color: #065f46; }

/* Share Buttons */
.share-container {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.share-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
    margin-right: 0.5rem;
}
.share-buttons {
    display: flex;
    gap: 0.5rem;
}
.share-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: white !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: bold;
    transition: opacity 0.2s;
}
.share-btn:hover { opacity: 0.8; }
.facebook { background-color: #3b5998; }
.whatsapp { background-color: #25d366; }
.copy-link { background-color: #6b7280; border: none; cursor: pointer; padding: 0;}

/* Styles for the Role Selection page */
.role-card {
    display: block;
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
}
.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    border-color: #3b82f6;
}
.role-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #002366;
    margin-bottom: 0.75rem;
}
.role-description {
    color: #6b7280;
    margin-bottom: 1.5rem;
}
.role-button {
    font-weight: 600;
    color: #3b82f6;
}

/* Organizer Status Banners */
.status-banner {
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
}
.status-pending {
    background-color: #fef3c7;
    border-color: #fde68a;
    color: #92400e;
}
.status-approved {
    background-color: #d1fae5;
    border-color: #a7f3d0;
    color: #065f46;
}
.status-rejected {
    background-color: #fee2e2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Styles for Admin Dashboard */
.admin-main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
}
.admin-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-content: start;
}
.table-title {
    font-size: 1.25rem; 
    font-weight: 700; 
    color: #1f2937; 
    margin-bottom: 1rem;
}
.admin-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.admin-links li a {
    display: block;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
    text-align: left;
}
.admin-links li:last-child a {
    border-bottom: none;
}

/* Status Badges for Tables */
.status-badge {
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}
.status-active { background-color: #d1fae5; color: #065f46; }
.status-pending { background-color: #fef3c7; color: #92400e; }
.status-suspended { background-color: #fee2e2; color: #991b1b; }
