@charset "utf-8";
/* Global Styles */

body {
    margin-left: auto;
    margin-right: auto;
    width: 92%;
    max-width: 960px;
    padding-left: 2.275%;
    padding-right: 2.275%;
    font-family: Geneva, Verdana, Arial, sans-serif;
    color: #333333;
    background-color: #ffffff;
}

/* Header */
header {
    text-align: center;
    display: block;
    margin-bottom: 14px;
}

header .brandName {
    text-align: center;
    font-family: Arial, Gotham, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 42px;
    line-height: 42px;
    color: #333333;
    margin: 10px 0 4px;
}

header .tagLine {
    text-align: right;
    font-family: Arial, Gotham, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 16px;
    color: #333333;
    margin-top: 0;
}

.mainContent {
    margin-right: 20%;
}

/* Typography */
h1, h2, h3 {
    font-family: Geneva, Verdana, Arial, sans-serif;
    font-weight: bold;
    text-align: left;
    color: #333333;
}

h1 {
    font-size: 24px;
    line-height: 26px;
}

h2 {
    font-size: 17px;
    line-height: 17px;
}

h3 {
    font-size: 16px;
    line-height: 16px;
}

p, td, li, label, input, textarea, select {
    font-family: Geneva, Verdana, Arial, sans-serif;
    font-size: 14px;
    color: #333333;
}

/* Links */
a:link {
    font-family: Geneva, Verdana, Arial, sans-serif;
    text-decoration: underline;
    font-weight: bold;
    font-size: 14px;
    color: #555555;
}

a:active {
    text-decoration: none;
    color: #555555;
}

a:visited {
    text-decoration: underline;
    color: #555555;
}

a:hover {
    text-decoration: none;
    color: #000000;
}

/* Navigation Menu */
.menuSpacer {
    font-size: 2px;
}

.topnav {
    background-color: #888888;
    overflow: hidden;
    margin-bottom: 20px;
    min-height: 32px;
    position: relative;
    z-index: 1;
}

.topnav a {
    float: left;
    display: block;
    color: #FFFFFF;
    text-align: center;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 12px;
}

.topnav a:hover {
    background-color: #dddddd;
    color: #000000;
}

.topnav .active {
    background-color: #444444;
    color: white;
}

.topnav .icon {
    display: none;
}

.topnav a.icon {
    font-size: 20px;
    padding: 6px 10px;
}

.topnav a.mobile-only {
    display: none;
}

.topnav .nav-right {
    float: right;
    overflow: visible;
    position: relative;
}

/* User Menu Styles */
.user-menu {
    position: relative;
    display: inline-block;
    z-index: 1000;
    overflow: visible;
}

/* Ensure dropdown is positioned safely on very narrow screens */
@media screen and (max-width: 540px) {
    .topnav .nav-right .user-menu {
        position: relative;
    }
    .topnav .nav-right .user-menu .user-dropdown {
        position: fixed;
        right: 8px;
        top: 40px;
        max-width: calc(100vw - 16px);
    }
}

.user-initials-btn {
    background: #4a5568;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    min-width: 28px;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.user-initials-btn:hover {
    background: #2d3748;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #888888;
    border: none;
    border-radius: 0;
    box-shadow: none;
    min-width: 160px;
    z-index: 10000;
    margin-top: 4px;
}

.user-dropdown a {
    display: block;
    padding: 8px 12px;
    color: #FFFFFF;
    text-decoration: none;
    border-bottom: 1px solid #777777;
    font-size: 12px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.user-dropdown a:last-child {
    border-bottom: none;
}

.user-dropdown a:hover {
    background-color: #dddddd;
    color: #000000;
}

/* Ensure dropdown is not clipped by parent containers */
.topnav .nav-right .user-menu .user-dropdown {
    position: absolute;
    z-index: 10000 !important;
    overflow: visible !important;
}

/* Form text styling */
.form-text {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
    display: block;
}

.topnav .menuLocation {
    display: none;
    background-color: #444444;
    color: white;
}

/* Disabled navigation items */
.topnav a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.topnav a.disabled:hover {
    background-color: #888888;
    color: #FFFFFF;
}

/* Sub Navigation */
.subNav {
    background-color: #888888;
    overflow: hidden;
    margin-bottom: 16px;
}

.subNav a {
    float: left;
    display: block;
    color: #FFFFFF;
    text-align: center;
    padding: 8px 12px;
    text-decoration: none;
    font-size: 12px;
}

.subNav a:hover {
    background-color: #dddddd;
    color: #000000;
}

.subNav a.active {
    background-color: #444444 !important;
    color: white !important;
}

.subNav a.active:hover {
    background-color: #333333 !important;
    color: white !important;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
}

.form-group {
    margin-bottom: 15px;
}

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

.form-help {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #888888;
    outline: none;
}

/* Hierarchical Category Selects */
.form-group select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-group select:disabled:hover {
    border-color: #ccc;
}

/* Visual indicator for hierarchical relationship */
#eventCategory:disabled,
#editEventCategory:disabled {
    font-style: italic;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-family: Geneva, Verdana, Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    margin: 5px;
}

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

.btn-primary:hover {
    background-color: #666666;
    color: white;
}

.btn-secondary {
    background-color: #dddddd;
    color: #333333;
}

.btn-secondary:hover {
    background-color: #cccccc;
    color: #000000;
}

/* Masonry-style photo grid using CSS columns */
.photo-grid {
  column-count: 3;
  column-gap: 16px;
  padding: 20px;
}

.photo-card {
  display: inline-block;
  width: 100%;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.photo-card:hover {
  transform: scale(1.02);
}

.photo-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #f9f9f9;
}

/* Masonry-style aspect ratio handling */
.photo-card[data-aspect-ratio="portrait"] {
    grid-row: span 2;
}

.photo-card[data-aspect-ratio="landscape"] {
    grid-column: span 2;
}

.photo-card[data-aspect-ratio="square"] {
    /* Default size, no span needed */
}

.photo-card .photo-title {
    font-weight: bold;
    margin: 10px 0 5px 0;
}

.photo-card .photo-caption {
    font-size: 12px;
    color: #666666;
}

/* Albums Grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.album-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
    height: auto;
}

.album-card img {
    width: unset;
    height: unset;
    object-fit: unset;
    border: none;
}

.album-card .album-title {
    font-weight: bold;
    margin: 10px 0;
}


/* Events Grid */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.event-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-cover {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

.event-card-content {
    padding: 15px;
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.event-card h3 {
    margin: 0;
    color: #333;
    flex: 1;
}

.visibility-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 10px;
    white-space: nowrap;
}

.visibility-badge.private {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.visibility-badge.hidden {
    background: #fff3e0;
    color: #ef6c00;
    border: 1px solid #ffcc02;
}

.visibility-badge.public {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.event-card p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.event-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.event-status.upcoming {
    background: #e3f2fd;
    color: #1976d2;
}

.event-status.ongoing {
    background: #e8f5e8;
    color: #2e7d32;
}

.event-status.past {
    background: #f5f5f5;
    color: #666;
}

.event-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.event-detail-header {
    margin-bottom: 20px;
}

.event-detail-info {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-detail-info h1 {
    margin: 0 0 15px 0;
    color: #333;
}

.event-detail-meta {
    margin-bottom: 20px;
    color: #666;
}

.event-detail-meta span {
    margin-right: 20px;
}

.event-detail-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.event-detail-actions button {
    margin-right: 10px;
}

.attendee-management {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.attendee-list {
    margin-bottom: 20px;
}

.attendee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    margin-bottom: 5px;
}

.attendee-info {
    flex: 1;
}

.attendee-name {
    font-weight: bold;
    color: #333;
}

.attendee-email {
    font-size: 12px;
    color: #666;
}

.remove-attendee {
    background: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.remove-attendee:hover {
    background: #cc0000;
}

.invite-form {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
}

.invite-form h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.invite-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.invite-input-group input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.invite-input-group select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 120px;
}

.add-invite {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

.add-invite:hover {
    background: #0056b3;
}

.pending-invites {
    margin-top: 15px;
}

.pending-invite {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    margin-bottom: 5px;
    font-size: 14px;
}

.pending-invite .invite-info {
    flex: 1;
}

.pending-invite .invite-type {
    font-weight: bold;
    color: #856404;
}

.remove-pending {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.remove-pending:hover {
    background: #c82333;
}

/* Message Styles */
.message-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.message-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
    border-left: 4px solid #007bff;
}

.message-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.message-content {
    padding: 15px;
}

.message-subject {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 16px;
}

.message-preview {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.message-from {
    color: #555;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.message-event {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
    display: inline-block;
}

.message-meta {
    color: #999;
    font-size: 12px;
}

.message-date {
    color: #999;
}

/* Message Status Badges */
.message-status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-left: 8px;
}

.message-status-badge.read {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.message-status-badge.sent {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.message-status-badge.failed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-status-badge.scheduled {
    background-color: #e7e7ff;
    color: #4040b0;
    border: 1px solid #c0c0ff;
}

.message-status-badge.unknown {
    background-color: #e9ecef;
    color: #495057;
    border: 1px solid #dee2e6;
}

/* Message Header Styles */
.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    padding-bottom: 5px;
}

.message-header h3 {
    margin: 0;
    flex: 1;
}

.message-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.message-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.message-detail-header {
    margin-bottom: 20px;
}

.message-detail-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.message-detail-info h1 {
    margin: 0 0 15px 0;
    color: #333;
}

.message-detail-meta {
    margin-bottom: 20px;
    color: #666;
}

.message-detail-meta span {
    margin-right: 20px;
}

.message-from {
    font-weight: bold;
    color: #333;
}

.message-event-link {
    background: #e3f2fd;
    color: #1976d2;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.message-event-link a {
    color: #1976d2;
    text-decoration: none;
    font-weight: bold;
}

.message-event-link a:hover {
    text-decoration: underline;
}

.message-detail-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

.message-detail-content p {
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Recipient Selection Styles */
.recipient-controls {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.recipient-controls button {
    padding: 8px 15px;
    font-size: 14px;
}

.attendee-selection {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background: #f9f9f9;
}

.attendee-checkbox-item {
    margin-bottom: 8px;
}

.attendee-checkbox-item:last-child {
    margin-bottom: 0;
}

.attendee-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.attendee-checkbox-label:hover {
    background: #e9ecef;
}

.attendee-checkbox {
    margin-right: 10px;
    transform: scale(1.1);
}

.attendee-info {
    flex: 1;
}

.attendee-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.attendee-contact {
    font-size: 12px;
    color: #666;
}

.attendee-status {
    font-size: 11px;
    color: #007bff;
    font-weight: bold;
    margin-top: 2px;
}

.no-attendees {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Enhanced Message Targeting Styles */
.targetingSection {
    margin-bottom: 20px;
}

.quick-targeting {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-targeting button {
    font-size: 12px;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-targeting button:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

.quick-targeting button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.advanced-targeting {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    background-color: #f9f9f9;
}

.targeting-option {
    margin-bottom: 20px;
}

.targeting-option:last-child {
    margin-bottom: 0;
}

.targeting-option label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.status-checkboxes {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.status-checkboxes label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
    cursor: pointer;
}

.status-checkboxes input[type="checkbox"] {
    margin-right: 6px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

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

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Mobile Responsive */
@media screen and (max-width: 540px) {
    /* Hide only top-level nav links; keep dropdown links visible */
    .topnav > a:not(.icon):not(.menuLocation) {display: none;}
    /* Keep initials visible on mobile */
    .topnav .nav-right .user-menu {display: inline-block;}
    .topnav a.icon {
        float: left;
        display: block;
    }
    /* Never show the legacy label link */
    .topnav a.menuLocation { display: none !important; }
    .topnav a.mobile-only {
        display: none;
    }
    
    .mainContent {
        margin-right: auto;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .album-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 540px) {
    .topnav.responsive {position: relative; min-height: 32px;}
    .topnav.responsive a.icon {
        position: absolute;
        left: 0;
        top: 0;
        z-index: 2;
    }
    /* Style only top-level links in expanded state */
    .topnav.responsive > a {
        float: none;
        display: block;
        text-align: left;
    }
    /* Remove accidental extra spacing between items */
    .topnav.responsive > a + a { margin-top: 0; }
    /* Reveal collapsed menu items in expanded state */
    .topnav.responsive #nav-photos,
    .topnav.responsive #nav-albums,
    .topnav.responsive #nav-events,
    .topnav.responsive #nav-messages,
    .topnav.responsive #nav-admin-venues,
    .topnav.responsive #nav-admin-performers,
    .topnav.responsive #nav-mobile-logout {display: block;}
    .topnav.responsive a.menuLocation {
        display: none;
    }
    .topnav.responsive a.mobile-only {
        display: block;
    }
}

/* Tablets */
@media only screen and (min-width: 481px) and (max-width: 1024px) {
    .mainContent {
        margin-right: 10%;
    }
}

/* Mobile devices */
@media only screen and (min-width: 285px) and (max-width: 480px) {
    .mainContent {
        margin-right: auto;
    }
}

/* Custom styles for Photos App */
.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.photo-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Image error handling - images are hidden when they fail to load */

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-card:hover .photo-overlay {
    transform: translateY(0);
}

.photo-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.photo-caption {
    font-size: 0.9em;
    opacity: 0.9;
}

.upload-zone {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.upload-zone.dragover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

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

.loading.show {
    display: block;
}

.alert {
    border-radius: 8px;
}

.progress {
    height: 20px;
    margin: 10px 0;
    background-color: #f5f5f5;
    border-radius: 4px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}

.progress-bar {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 4px;
    transition: width .6s ease;
    color: white;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
}

.album-img-wrapper {
    width: 300px;
    height: 300px;
    overflow: hidden;
    display: block;
    margin: 0;
    padding: 0;
}

.album-card .album-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
}

.photo-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.photo-detail-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.photo-detail-container .photo-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.photo-detail-container .photo-caption {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.upload-progress {
    margin: 20px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.upload-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
}

.upload-message.info {
    background-color: #cce5ff;
    border: 1px solid #b8daff;
    color: #004085;
}

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

.upload-message.warning {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

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

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.modal-header h2 {
    margin: 0;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal-body {
    padding: 20px;
}

/* Modal form adjustments */
.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.modal-body .form-group input,
.modal-body .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.modal-body .form-group input:focus,
.modal-body .form-group textarea:focus {
    border-color: #888888;
    outline: none;
    box-shadow: 0 0 0 2px rgba(136, 136, 136, 0.2);
}

.modal-body .btn {
    margin-right: 10px;
}

/* Event Detail Page */
.event-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

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

.event-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.event-detail-content.no-cover {
    grid-template-columns: 1fr;
}

.event-detail-cover {
    position: static;
    top: auto;
}

.event-cover-image {
    width: 100%;
    height: 400px;
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 16px;
}

.event-cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-detail-info h1 {
    margin-bottom: 20px;
    color: #333;
    font-size: 2.5rem;
}

.event-detail-meta {
    margin-bottom: 20px;
}

.event-detail-meta .event-category,
.event-detail-meta .event-status {
    display: inline-block;
    margin-right: 10px;
}

.event-detail-datetime {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.event-time {
    margin-bottom: 10px;
    font-size: 16px;
}

.event-time:last-child {
    margin-bottom: 0;
}

.event-detail-description h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3rem;
}

.event-detail-description p {
    line-height: 1.6;
    color: #555;
    font-size: 16px;
}

/* Mobile responsive for event detail */
@media screen and (max-width: 768px) {
    .event-detail-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-detail-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .event-detail-info h1 {
        font-size: 2rem;
    }
    
    .event-cover-image {
        height: 300px;
    }
}

/* Photo Picker Styles */
.photo-picker-container {
    position: relative;
    width: 100%;
}

.photo-picker-selected {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    min-height: 44px;
    gap: 10px;
    flex-wrap: wrap;
}

.selected-photo-display {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.photo-picker-buttons {
    display: flex;
    gap: 6px;
    flex-shrink: 1;
    flex-wrap: nowrap;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.photo-picker-buttons .btn {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

.selected-photo-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.selected-photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photo-text {
    font-size: 12px;
    color: #999;
    text-align: center;
}

/* Responsive adjustments for photo picker */
@media (max-width: 768px) {
    .photo-picker-selected {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .selected-photo-display {
        justify-content: center;
    }
    
    .photo-picker-buttons {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 4px;
    }
    
    .photo-picker-buttons .btn {
        flex: 1;
        min-width: 0;
        text-align: center;
        font-size: 11px;
        padding: 4px 6px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.photo-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.photo-picker-options {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.photo-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    transition: all 0.2s;
    aspect-ratio: 1;
    overflow: hidden;
}

.photo-option:hover {
    background-color: #f5f5f5;
    border-color: #ddd;
}

.photo-option img {
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.photo-option-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.photo-option-text {
    text-align: center;
    font-size: 10px;
    color: #666;
    padding: 2px 4px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.photo-option-title {
    font-weight: bold;
    margin-bottom: 2px;
}

.photo-option-id {
    font-size: 12px;
    color: #666;
}

.upload-option {
    background-color: #f8f9fa;
    border: 2px dashed #ccc;
}

.upload-option:hover {
    background-color: #e9ecef;
    border-color: #999;
}

.upload-icon {
    font-size: 24px;
    color: #666;
    margin-bottom: 4px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

.upload-option {
    border: 2px dashed #ccc;
    background: #fafafa;
}

.upload-option:hover {
    border-color: #999;
    background: #f0f0f0;
}

.upload-icon {
    font-size: 24px;
    font-weight: bold;
    color: #999;
    margin-bottom: 5px;
}

/* Venue Picker Styles */
.venue-picker-container {
    position: relative;
    width: 100%;
}

.venue-picker-selected {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.selected-venue-display {
    flex: 1;
    min-width: 0;
}

.selected-venue-info {
    font-size: 14px;
    color: #333;
}

.no-venue-text {
    color: #666;
    font-style: italic;
}

.venue-picker-buttons {
    display: flex;
    gap: 6px;
    flex-shrink: 1;
}

.venue-picker-buttons .btn {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

.venue-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.venue-search-container {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.venue-search-container input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.venue-picker-options {
    padding: 10px;
}

.venue-option {
    padding: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s;
    margin-bottom: 5px;
}

.venue-option:hover {
    background-color: #f5f5f5;
    border-color: #ddd;
}

.venue-option-text {
    font-size: 14px;
    color: #333;
}

.venue-option-text strong {
    color: #000;
}

.venue-option-text small {
    color: #666;
    display: block;
    margin-top: 2px;
}

/* Event Detail Venue Styles */
.event-detail-venue {
    margin-bottom: 20px;
}

.event-detail-venue h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.venue-info {
    font-size: 14px;
    color: #333;
}

.venue-info .no-venue-text {
    color: #666;
    font-style: italic;
}

.venue-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.venue-name {
    font-weight: bold;
    color: #000;
    font-size: 16px;
}

.venue-address {
    color: #555;
}

.venue-capacity {
    color: #666;
    font-size: 13px;
}

/* Event Detail Performers Styles */
.event-detail-performers {
    margin-bottom: 20px;
}

.event-detail-performers h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.performers-info {
    font-size: 14px;
    color: #333;
}

.performers-info .no-performers-text {
    color: #666;
    font-style: italic;
}

.performers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.performer-item {
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-weight: 500;
    color: #333;
}

.performer-item:hover {
    background: #e9ecef;
}

/* Simplified venue and performers display styles */
.venue-simple {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.performers-simple {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Performer Picker Styles */
.performers-picker-container {
    position: relative;
    width: 100%;
}

.performers-picker-selected {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.selected-performers-list {
    flex: 1;
    min-width: 0;
}

.selected-performers-count {
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.no-performers-text {
    color: #666;
    font-style: italic;
}

.performers-picker-buttons {
    display: flex;
    gap: 6px;
    flex-shrink: 1;
}

.performers-picker-buttons .btn {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
}

.performers-picker-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.performers-search-container {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.performers-search-container input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.performers-picker-options {
    padding: 10px;
}

.performer-option {
    padding: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.performer-option:hover {
    background-color: #f5f5f5;
    border-color: #ddd;
}

.performer-option.selected {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.performer-option-text {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.performer-option-text strong {
    color: #000;
}

.performer-option-text small {
    color: #666;
    display: block;
    margin-top: 2px;
}

/* Responsive adjustments for venue and performer pickers */
@media (max-width: 768px) {
    .venue-picker-selected,
    .performers-picker-selected {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .venue-picker-buttons,
    .performers-picker-buttons {
        justify-content: center;
        flex-wrap: nowrap;
        gap: 4px;
    }
    
    .venue-picker-buttons .btn,
    .performers-picker-buttons .btn {
        flex: 1;
        min-width: 0;
        text-align: center;
    }
}

/* Attendee Management Styles */
.event-detail-attendees {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.event-detail-attendees h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
}

.attendee-invite-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.attendee-invite-form h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

.attendee-invite-form .form-group {
    margin-bottom: 15px;
}

.attendee-invite-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.attendee-invite-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.attendee-invite-form input:focus {
    border-color: #888888;
    outline: none;
    box-shadow: 0 0 0 2px rgba(136, 136, 136, 0.2);
}

.attendee-list h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2rem;
}

.attendee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fff;
    transition: box-shadow 0.2s ease;
}

.attendee-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.attendee-info {
    flex: 1;
}

.attendee-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.attendee-contact {
    font-size: 14px;
    color: #666;
}

.attendee-contact div {
    margin-bottom: 2px;
}

.attendee-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 15px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.unread {
    background: #9e9e9e;
    color: white;
}

.status-badge.read {
    background: #2196f3;
    color: white;
}

.status-badge.going {
    background: #4caf50;
    color: white;
}

.status-badge.not-going {
    background: #f44336;
    color: white;
}

.status-badge.interested {
    background: #ffeb3b;
    color: #333;
}

.guests-count {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.attendee-actions {
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.btn-danger {
    background: #f44336;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #d32f2f;
}

.no-attendees {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

#inviteMessage {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

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

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

/* Event Attendees Section for Create/Edit Forms */
.event-attendees-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.event-attendees-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3rem;
}

.event-attendees-section .attendee-invite-form {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.event-attendees-section .attendee-invite-form h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.1rem;
}

.event-attendees-section .attendee-list h4 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.1rem;
}

#createEventInviteMessage,
#editEventInviteMessage {
    margin-top: 8px;
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
}

#createEventInviteMessage.success,
#editEventInviteMessage.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#createEventInviteMessage.error,
#editEventInviteMessage.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* RSVP Styles */
.rsvp-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.rsvp-section h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3rem;
}

.rsvp-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.rsvp-buttons button {
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
}

.rsvp-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.rsvp-buttons button.active {
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.2);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

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

.btn-danger:hover {
    background: #c82333;
}

.rsvp-form {
    background: white;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin-top: 15px;
}

.rsvp-form .form-group {
    margin-bottom: 15px;
}

.rsvp-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.rsvp-form input,
.rsvp-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
    border-color: #888888;
    outline: none;
    box-shadow: 0 0 0 2px rgba(136, 136, 136, 0.2);
}

.current-rsvp {
    background: white;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin-top: 15px;
}

.rsvp-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rsvp-status.going {
    background: #4caf50;
    color: white;
}

.rsvp-status.interested {
    background: #ffeb3b;
    color: #333;
}

.rsvp-status.not-going {
    background: #f44336;
    color: white;
}

.rsvp-status.unread {
    background: #9e9e9e;
    color: white;
}

.rsvp-status.read {
    background: #2196f3;
    color: white;
}

/* Base RSVP status styling to prevent inheritance issues */
.rsvp-status,
.status-badge {
    display: inline-block !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    background: transparent !important;
}

/* RSVP Status Colors - More Specific Rules */
.rsvp-status.not-going,
.status-badge.not-going {
    background: #f44336 !important;
    color: white !important;
}

.rsvp-status.going,
.status-badge.going {
    background: #4caf50 !important;
    color: white !important;
}

.rsvp-status.interested,
.status-badge.interested {
    background: #ffeb3b !important;
    color: #333 !important;
}

.rsvp-status.unread,
.status-badge.unread {
    background: #9e9e9e !important;
    color: white !important;
}

.rsvp-status.read,
.status-badge.read {
    background: #2196f3 !important;
    color: white !important;
}

/* Even more specific rules to override inherited backgrounds */
.event-card .rsvp-status.not-going,
.event-card .status-badge.not-going,
.current-rsvp .rsvp-status.not-going,
.rsvp-section .rsvp-status.not-going {
    background: #f44336 !important;
    color: white !important;
}

.event-card .rsvp-status.going,
.event-card .status-badge.going,
.current-rsvp .rsvp-status.going,
.rsvp-section .rsvp-status.going {
    background: #4caf50 !important;
    color: white !important;
}

.event-card .rsvp-status.interested,
.event-card .status-badge.interested,
.current-rsvp .rsvp-status.interested,
.rsvp-section .rsvp-status.interested {
    background: #ffeb3b !important;
    color: #333 !important;
}

.event-card .rsvp-status.unread,
.event-card .status-badge.unread,
.current-rsvp .rsvp-status.unread,
.rsvp-section .rsvp-status.unread {
    background: #9e9e9e !important;
    color: white !important;
}

.event-card .rsvp-status.read,
.event-card .status-badge.read,
.current-rsvp .rsvp-status.read,
.rsvp-section .rsvp-status.read {
    background: #2196f3 !important;
    color: white !important;
}

/* Event card RSVP status */
.event-card .rsvp-status {
    margin-left: 5px;
}

/* Compact RSVP dropdown on event card */
.card-rsvp {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    position: relative; /* anchor dropdown */
}

.rsvp-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f2f2f2;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
}

.rsvp-dropdown-toggle .caret {
    font-size: 12px;
    line-height: 1;
}

.rsvp-dropdown-menu {
    position: absolute;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    bottom: 100%; /* open upward to avoid clipping/overlap */
    left: 0;
    margin-bottom: 6px;
    min-width: 160px;
    z-index: 2000; /* ensure above nearby content */
    pointer-events: auto;
}

.rsvp-dropdown-menu.hidden {
    display: none;
}

.rsvp-dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.rsvp-dropdown-item:hover {
    background: #f5f5f5;
}


/* Mobile responsive for RSVP */
@media screen and (max-width: 768px) {
    .rsvp-buttons {
        flex-direction: column;
    }
    
    .rsvp-buttons button {
        min-width: auto;
    }
} 

/* Password Reset Styles */
.forgot-password-link {
    color: #555555;
    text-decoration: underline;
    font-size: 14px;
    margin-top: 10px;
    display: inline-block;
}

.forgot-password-link:hover {
    color: #000000;
    text-decoration: none;
}

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

/* Password reset form specific styles */
#page-forgotPassword .form-container,
#page-resetPassword .form-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

#page-forgotPassword p,
#page-resetPassword p {
    text-align: center;
    margin-bottom: 20px;
    color: #666666;
}

/* Success and error message styling for password reset */
#forgotPasswordMessage,
#resetPasswordMessage {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

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

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

/* Event Messages Section Styles */
.event-messages-section {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.event-messages-section h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 1.3rem;
}

.section-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

.event-messages-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.event-message-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    transition: box-shadow 0.2s ease;
}

.event-message-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.event-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.message-subject {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.message-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

/* Reminder status badge styles */
.message-type-badge.status-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.message-type-badge.status-sent {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-type-badge.status-default {
    background-color: #e2e3e5;
    color: #383d41;
    border: 1px solid #d6d8db;
}

.event-message-content {
    margin-bottom: 10px;
}

.message-preview {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.event-message-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #666;
}

.message-schedule,
.message-created {
    display: inline-block;
}

.message-schedule {
    color: #1976d2;
    font-weight: 500;
}

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

.error-text {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

/* Admin Page Styles */
.admin-controls {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.admin-controls .btn {
    margin-right: 10px;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.admin-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.admin-item-content {
    flex: 1;
    margin-right: 20px;
}

.admin-item-content h3 {
    margin: 0 0 10px 0;
    color: #333333;
    font-size: 18px;
    font-weight: bold;
}

.admin-item-content p {
    margin: 5px 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.4;
}

.admin-item-content strong {
    color: #333333;
    font-weight: 600;
}

.admin-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 120px;
}

.admin-item-actions .btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    text-align: center;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #666666;
    font-style: italic;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

/* Responsive design for admin pages */
@media (max-width: 768px) {
    .admin-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-item-content {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .admin-item-actions {
        flex-direction: row;
        min-width: auto;
    }
    
    .admin-item-actions .btn {
        flex: 1;
        margin-right: 8px;
    }
    
    .admin-item-actions .btn:last-child {
        margin-right: 0;
    }
}