
body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: #f9f0f0;
    color: #3b2a3d;
}

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

h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #6a1b9a;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.controls {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

input[type="file"] {
    padding: 10px;
    background: white;
    border-radius: 10px;
    border: 1px solid #d8b4d8;
}

button {
    padding: 12px 18px;
    border: none;
    background: linear-gradient(135deg, #8e24aa, #ba68c8);
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.item {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.6);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

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

.delete {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(106,27,154,0.8);
    color: white;
    border-radius: 50%;
    text-decoration: none;
}

.gallery.sepia img {
    filter: sepia(100%) saturate(120%);
}

@media (max-width: 600px) {
    .controls {
        flex-direction: column;
    }

    button, input[type="file"] {
        width: 100%;
    }
}

.register-form {
    background: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 400px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.register-form input,
.register-form select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.register-form button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: #6a1b9a;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.register-form button:hover {
    background: #8e24aa;
}

.success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    margin-bottom: 15px;
}
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.popup-content h2 {
    color: #6a1b9a;
}

.popup-content button {
    margin-top: 15px;
    padding: 10px 15px;
    border: none;
    background: #6a1b9a;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

