/* Basic styling for the application */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

header {
    background-color: #343a40;
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: #495057;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

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

.alert {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.gallery-container h1,
.events-container h1,
.admin-container h1 {
    color: #343a40;
    margin-bottom: 2rem;
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.art-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.art-item:hover {
    transform: translateY(-5px);
}

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

.art-info {
    padding: 1rem;
}

.art-info h3 {
    margin: 0 0 0.5rem 0;
    color: #343a40;
}

.art-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.event-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 4px solid #667eea;
}

.event-date {
    font-weight: bold;
    color: #007bff;
    font-size: 1.1rem;
}

.event-location {
    color: #6c757d;
    margin: 0.5rem 0;
}

.event-image {
    width: 100%;
    height: 200px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 4px;
    overflow: hidden;
}

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

.event-link {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.event-link:hover {
    background-color: #0056b3;
}

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

.admin-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.admin-button {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.admin-button:hover {
    background-color: #218838;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}

.archive-button {
    display: inline-block;
    background-color: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    transition: background-color 0.3s;
}

.archive-button:hover {
    background-color: #c82333;
}

.event-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.event-checkboxes {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 1rem;
    background-color: #f8f9fa;
}

.event-checkbox-item {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.event-checkbox-item:hover {
    background-color: #e9ecef;
}

.event-checkbox-item input[type="checkbox"] {
    margin-right: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

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

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
}

.submit-button {
    background-color: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-button:hover {
    background-color: #0056b3;
}

.current-subscribers {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 1rem;
    background-color: #f8f9fa;
}
.events-list {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.event-item {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

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

footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Responsive design */
@media (max-width: 768px) {
    header {
        padding: 0.75rem 1rem;
    }

    nav {
        position: relative;
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: #343a40;
        padding: 0.5rem 0;
        box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        border-radius: 0;
    }

    main {
        padding: 1rem;
    }
    
    .art-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .admin-links {
        flex-direction: column;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}