* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fb;
    padding: 2rem;
}

/* Login */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-box {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.login-box h2 {
    color: #023882;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Admin Panel */
.admin-panel {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.admin-panel h3 {
    color: #023882;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 1rem;
}

.btn-primary {
    background: #023882;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #0250a8;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-danger:hover {
    background: #c82333;
}

/* Admin Gallery Grid */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.admin-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.admin-item .media-container {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.admin-item .media-container img,
.admin-item .media-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-item .item-info {
    padding: 1rem;
}

.admin-item .item-info h3 {
    font-size: 0.9rem;
    color: #333;
}

.admin-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220,53,69,0.9);
    color: white;
    border: none;
    border-radius: 30px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.admin-remove:hover {
    background: #dc3545;
}

.logout-btn {
    background: #6c757d;
    margin-left: 1rem;
}

.logout-btn:hover {
    background: #5a6268;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }
    
    .admin-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
}