/*Original Colorscheme*/
:root {
    --primary-dark: #4a4e69;
    --primary-medium: #6b728e;
    --background: #f9f9f9;
    --text-color: #333;
}

/*Standard Ligh*/
/*:root {
    --primary-dark: #1976d2;
    --primary-medium: #2196f3;
    --background: #ffffff;
    --text-color: #212121;
}*/
/*Standard Dark*/
/*:root {
    --primary-dark: #0d47a1;
    --primary-medium: #1976d2;
    --background: #121212;
    --text-color: #e0e0e0;
}*/


/*Forest CS*/
/*:root {
    --primary-dark: #2e7d32;
    --primary-medium: #4caf50;
    --background: #f1f8e9;
    --text-color: #1b5e20;
}*/

/*WineCountry*/
/*:root {
    --primary-dark: #6a1b9a;
    --primary-medium: #8e24aa;
    --background: #fdf7f7;
    --text-color: #4a148c;
}*/

/*Ocean*/
/*:root {
    --primary-dark: #00695c;
    --primary-medium: #00acc1;
    --background: #f0fdff;
    --text-color: #004d5c;
}*/

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

header {
    background: linear-gradient(to right, var(--primary-dark), var(--primary-medium));
    color: white;
    text-align: center;
    padding: 1rem;
}

header .banner {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-bottom: 2px solid var(--primary-dark);
}

header h1 {
    font-family: 'Playfair Display', serif;
    margin: 1rem 0;
    font-size: 2.5rem;
}

nav {
    margin: 1rem 0;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.1rem;
}

nav a:hover {
    border-bottom: 2px solid white;
}

nav .admin-link {
    font-size: 0.9rem;
    opacity: 0.8;
}

main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 2rem;
}

h2, h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
}

.event-card {
    display: flex;
    gap: 1rem;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    animation: fadeIn 0.5s ease-in;
}

.event-img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.event-content {
    flex: 1;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 0.5rem 0;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
}

input, select, textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

textarea {
    resize: vertical;
}

button {
    background-color: var(--primary-medium);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background-color: var(--primary-dark);
}

#form-message, #upload-message, #request-message {
    color: green;
    font-weight: bold;
}

#password-prompt, #admin-password-prompt {
    max-width: 400px;
    margin: 2rem auto;
    text-align: center;
}

#password-prompt input, #admin-password-prompt input {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 300px;
}

#password-prompt button, #admin-password-prompt button {
    background-color: var(--primary-medium);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
}

#password-prompt button:hover, #admin-password-prompt button:hover {
    background-color: var(--primary-dark);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

th, td {
    border: 1px solid #ccc;
    padding: 0.5rem;
    text-align: left;
}

th {
    background-color: var(--primary-medium);
    color: white;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--primary-dark);
    color: white;
}

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

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }
    .event-card {
        flex-direction: column;
    }
    .event-img {
        width: 100%;
        height: auto;
    }
    main {
        padding: 0 0.5rem;
    }
}

/* Gallery styles */
#gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

#gallery-grid a {
    display: block;
}

#gallery-grid img {
    width: 100%;
    max-width: 200px; /* Enforce thumbnail size */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    object-fit: cover;
}

#gallery-grid img:hover {
    transform: scale(1.05);
}

/* Admin-specific styles */

/* Main admin layout */
.admin-flex-container {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.admin-flex-item {
    flex: 1;
}

.admin-flex-item.contact-selection {
    flex: 1.5;
}

.admin-flex-item.contact-form {
    flex: 0.5;
}

/* Sections */
.main-actions,
.rsvp-section,
.requests-section,
.contacts-section,
.event-manager-section {
    margin-bottom: 40px;
}

/* Dynamic contact list styles */
.contact-entry {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.contact-entry:hover {
    background-color: #f0f0f0;
}

.contact-entry input[type="checkbox"] {
    margin-right: 8px;
}

.contact-entry label {
    flex: 1;
    cursor: pointer;
    margin: 0;
}

.contact-entry button {
    background: none;
    border: none;
    font-size: 18px;
    color: #4CAF50;
    cursor: pointer;
    padding: 4px;
    border-radius: 2px;
    min-width: 24px;
    text-align: center;
}

.contact-entry button:hover {
    background-color: #4CAF50;
    color: white;
}

.contact-list-header button {
    margin-bottom: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.contact-list-header button:hover {
    background-color: #45a049;
}

#dynamic-contact-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    background-color: white;
}

/* Event manager styles */
.event-manager-container {
    display: flex;
    gap: 20px;
}

.event-form-container {
    flex: 2;
}

.events-list-container {
    flex: 1;
}

#events-list {
    max-height: 500px;
    overflow-y: auto;
}

.event-item {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.event-item button {
    margin-right: 5px;
    padding: 4px 8px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.event-item .edit-btn {
    background-color: #2196F3;
    color: white;
}

.event-item .edit-btn:hover {
    background-color: #1976D2;
}

.event-item .delete-btn {
    background-color: #f44336;
    color: white;
}

.event-item .delete-btn:hover {
    background-color: #d32f2f;
}

.event-active-checkbox {
    margin: 10px 0;
}

/* Responsive admin layout */
@media (max-width: 1200px) {
    .admin-flex-container {
        flex-direction: column;
    }
    
    .admin-flex-item,
    .admin-flex-item.contact-selection,
    .admin-flex-item.contact-form {
        flex: 1;
    }
    
    .event-manager-container {
        flex-direction: column;
    }
    
    .event-form-container,
    .events-list-container {
        flex: 1;
    }
}

/* RSVP Statistics Styles */
.rsvp-stats-section {
    margin-bottom: 40px;
}

.stats-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-header h4 {
    margin: 0 0 4px 0;
    color: var(--primary-dark);
}

.stats-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
}

.stats-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    border-radius: 6px;
    min-width: 80px;
}

.stat-item.yes {
    background-color: #e8f5e8;
    border: 1px solid #4CAF50;
}

.stat-item.maybe {
    background-color: #fff3e0;
    border: 1px solid #FF9800;
}

.stat-item.no {
    background-color: #ffebee;
    border: 1px solid #f44336;
}

.stat-item.total {
    background-color: #f3e5f5;
    border: 1px solid var(--primary-medium);
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    margin-top: 4px;
}

/* Weather Widget Styles - Minimal Version */
#weather-widget {
    /* Remove all background and styling */
    background: none;
    color: inherit;
    border: none;
    padding: 8px 0;
    margin: 8px 0;
    text-align: left;
    box-shadow: none;
}

.weather-widget-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weather-icon {
    font-size: 24px;
}

.weather-temps {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.temp-high {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-color);
}

.temp-low {
    font-size: 14px;
    color: #666;
}

.weather-desc {
    font-size: 14px;
    color: #666;
    margin-left: 4px;
}

.weather-note {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
}

.weather-loading, .weather-error {
    font-size: 14px;
    color: #666;
}

.dietary-section {
    margin-bottom: 40px;
}

.dietary-event {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.dietary-note {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.dietary-note:last-child {
    border-bottom: none;
}

/* Remove mobile styles since we're keeping it simple */