* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 2rem;
}

.login-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 0.9rem;
    color: #666;
}

.login-info p {
    margin-bottom: 0.3rem;
}

/* Admin Dashboard */
.dashboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.admin-main {
    flex: 1;
    padding: 2rem 0;
}

.admin-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-controls h2 {
    color: #667eea;
}

/* Forms */
.form-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #667eea;
    margin: 25px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

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

.form-actions {
    display: flex;
    gap: 1rem;
}

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

.item-form h3 {
    color: #667eea;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

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

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

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

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

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

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

/* Items List */
.items-list {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.item-row {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

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

.item-content {
    flex: 1;
}

.item-content h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.item-content p {
    color: #666;
    margin-bottom: 0.5rem;
}

.item-content .date {
    font-size: 0.9rem;
    color: #999;
}

.item-actions {
    display: flex;
    gap: 0.5rem;
}

.item-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Messages */
.error-message {
    color: #dc3545;
    margin-top: 1rem;
    text-align: center;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #667eea;
    font-size: 1.2rem;
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Image Upload */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

.form-group small {
    display: block;
    color: #999;
    margin-top: 0.3rem;
    font-size: 0.85rem;
}

.image-preview {
    margin-top: 1rem;
    min-height: 150px;
    border: 2px dashed #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.image-preview.has-image {
    border-style: solid;
    border-color: #667eea;
}

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

.image-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.image-card-header h4 {
    color: #667eea;
}

.image-card-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.image-card-status.active {
    background: #d4edda;
    color: #155724;
}

.image-card-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.image-card-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.image-card-preview {
    text-align: center;
}

.image-card-preview h5 {
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.image-card-preview img {
    max-width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.image-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

/* Events Management */
.event-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}

.event-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.event-card-header > div {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.event-card-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.event-card-status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.event-card-status.active {
    background: #d4edda;
    color: #155724;
}

.event-card-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.event-date {
    color: #999;
    font-size: 0.85rem;
}

.event-card-dates {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.event-card-dates strong {
    color: #667eea;
}

.event-card-dates span {
    color: #333;
}

.event-card-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.event-card-image {
    border-radius: 8px;
    overflow: hidden;
}

.event-card-image h5 {
    font-size: 0.85rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}

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

.event-card-description {
    margin-bottom: 1rem;
    color: #666;
    line-height: 1.6;
}

.event-card-description p {
    margin: 0;
}

.event-card-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.event-card-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Reservations Management */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.reservation-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s;
}

.reservation-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.reservation-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-warning {
    background: #fff3cd;
    color: #856404;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-danger {
    background: #f8d7da;
    color: #721c24;
}

.reservation-date {
    color: #999;
    font-size: 0.9rem;
}

.reservation-body {
    margin-bottom: 1rem;
}

.reservation-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.info-row strong {
    color: #667eea;
    font-size: 0.95rem;
}

.info-row span {
    color: #333;
    font-size: 0.95rem;
}

.reservation-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.reservation-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .admin-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .item-row {
        flex-direction: column;
        gap: 1rem;
    }

    .item-actions {
        width: 100%;
    }

    .item-actions .btn {
        flex: 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .image-card-body {
        grid-template-columns: 1fr;
    }

    .admin-tabs {
        overflow-x: auto;
    }

    .tab-btn {
        white-space: nowrap;
    }

    .reservation-card {
        padding: 1rem;
    }

    .reservation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .reservation-actions {
        width: 100%;
    }

    .reservation-actions .btn {
        flex: 1;
    }

    .filter-buttons {
        width: 100%;
    }

    .filter-btn {
        flex: 1;
    }

    .event-card {
        padding: 1rem;
    }

    .event-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .event-card-header > div {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .event-card-images {
        grid-template-columns: 1fr;
    }

    .event-card-actions {
        width: 100%;
    }

    .event-card-actions .btn {
        flex: 1;
    }
}
