/* themes/common.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    min-height: 100vh;
    position: relative;
    padding: 20px;
    transition: background 0.5s ease;
}

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

/* Theme Switcher */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.theme-switcher h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.theme-options {
    display: flex;
    gap: 10px;
}

.theme-btn {
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-btn.active {
    border-color: #333;
    transform: scale(1.1);
}

.theme-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.theme-btn.purple {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.theme-btn.pink {
    background: linear-gradient(135deg, #ff6eb4 0%, #ff1744 100%);
}

.theme-btn.blue {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
}

.theme-btn::after {
    content: attr(data-theme-icon);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
}

/* Rest of common styles */
h1 {
    font-family: 'Dancing Script', cursive;
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.upload-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.upload-section h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-section h2::before {
    content: var(--upload-emoji);
    font-size: 1.8rem;
}

.upload-form {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 15px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-input-label {
    display: block;
    padding: 12px 28px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.file-input-label::before {
    content: var(--folder-emoji);
    margin-right: 8px;
}

.file-input-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.password-input {
    padding: 12px 20px;
    border: 2px solid var(--accent-color);
    border-radius: 30px;
    font-size: 14px;
    width: 200px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.password-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.upload-btn {
    padding: 12px 32px;
    background: var(--secondary-gradient);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.upload-btn::before {
    content: var(--rocket-emoji);
    margin-right: 8px;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.upload-btn:disabled {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    cursor: not-allowed;
    box-shadow: none;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.gallery-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lightbox-gradient);
    backdrop-filter: blur(5px);
}

/* Animation classes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.gallery-item {
    animation: fadeIn 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .theme-switcher {
        top: 10px;
        right: 10px;
        padding: 10px;
    }
    
    .theme-switcher h3 {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .theme-btn {
        width: 35px;
        height: 35px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .upload-form {
        grid-template-columns: 1fr;
    }
    
    body {
        padding: 10px;
        padding-top: 80px;
    }
    
    .password-input {
        width: 100%;
    }
}
