/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
}

/* Fondo animado global */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Sistema de páginas */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

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

/* Contenedor con efecto glassmorphism solo para páginas específicas */
#galleriesPage .container,
#galleryPage .container,
#favoritesPage .container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Botones */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

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

.btn-secondary:hover {
    background: #545b62;
}

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

.btn-success:hover {
    background: #1e7e34;
}

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

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

/* PÁGINA PRINCIPAL */
#homePage {
    min-height: 100vh;
    position: relative;
}

.split-screen {
    display: flex;
    height: 100vh;
    position: relative;
}

.center-title {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    width: 100%;
    padding: 0 20px;
}

.center-title h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 0;
    letter-spacing: 2px;
}

.split-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.split-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

.split-panel:hover::before {
    background: rgba(0,0,0,0.2);
}

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

.galleries-panel {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.panel-content {
    position: relative;
    z-index: 5;
    text-align: center;
    color: white;
    padding: 40px;
}

.panel-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.panel-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* PÁGINA DE GALERÍAS */
#galleriesPage::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, rgba(248,249,250,0.8), rgba(233,236,239,0.8), rgba(222,226,230,0.8), rgba(248,249,250,0.8));
    background-size: 400% 400%;
    animation: subtleGradientShift 20s ease infinite;
    z-index: -1;
}

#galleryPage::before, 
#favoritesPage::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, rgba(248,249,250,0.8), rgba(233,236,239,0.8), rgba(222,226,230,0.8), rgba(248,249,250,0.8));
    background-size: 400% 400%;
    animation: subtleGradientShift 20s ease infinite;
    z-index: -1;
}

#galleriesPage,
#galleryPage,
#favoritesPage {
    min-height: 100vh;
    position: relative;
}

@keyframes subtleGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.header-section {
    margin-bottom: 30px;
}

/* Badge de administrador */
.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.5);
}

.admin-icon {
    font-size: 1.1rem;
    animation: crown-glow 2s ease-in-out infinite alternate;
}

@keyframes crown-glow {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.sample-data-btn {
    font-size: 0.8rem !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #333 !important;
    transition: all 0.2s ease !important;
}

.sample-data-btn:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.05) !important;
}

.header-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.gallery-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.98);
}

.gallery-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #333;
}

.gallery-info {
    padding: 20px;
}

.gallery-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.gallery-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.gallery-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.delete-btn {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

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

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h5 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 1rem;
}

/* PÁGINA DE SUBIDA */
#uploadPage::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102,126,234,0.9) 0%, rgba(118,75,162,0.9) 50%, rgba(102,126,234,0.9) 100%);
    background-size: 400% 400%;
    animation: uploadGradientShift 12s ease infinite;
    z-index: -1;
}

.upload-container {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes uploadGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.floating-words {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-words span {
    position: absolute;
    color: rgba(255,255,255,0.1);
    font-size: 1.5rem;
    font-weight: bold;
    animation: float 20s infinite linear;
}

.floating-words span:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-words span:nth-child(2) { top: 20%; right: 15%; animation-delay: 3s; }
.floating-words span:nth-child(3) { top: 60%; left: 5%; animation-delay: 6s; }
.floating-words span:nth-child(4) { top: 70%; right: 10%; animation-delay: 9s; }
.floating-words span:nth-child(5) { top: 40%; left: 20%; animation-delay: 12s; }
.floating-words span:nth-child(6) { top: 80%; right: 25%; animation-delay: 15s; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-20px) rotate(5deg); opacity: 0; }
}

.form-container {
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 10;
}

.upload-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.upload-card:hover {
    background: rgba(255, 255, 255, 0.98);
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.upload-card .text-center {
    text-align: center;
}

.upload-card h1 {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.upload-card p {
    color: #666;
    margin-bottom: 30px;
}

.form-step h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #333;
}

.form-step > p {
    color: #666;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: #666;
    font-size: 0.85rem;
}

/* Dropzone */
.dropzone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: #007bff;
    background: #f0f8ff;
}

.dropzone-content svg {
    margin-bottom: 12px;
    color: #666;
}

.dropzone-content p {
    margin: 0;
    color: #666;
}

/* Opciones de álbum */
.album-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-item:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.option-item input[type="radio"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option-item input[type="radio"]:checked + label {
    color: #007bff;
}

.option-item:has(input[type="radio"]:checked) {
    background: #e7f3ff;
    border-color: #007bff;
}

.option-item label {
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.option-item label strong {
    display: block;
    color: #333;
    margin-bottom: 4px;
}

.option-item label small {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.3;
}

.option-item input[type="radio"]:checked + label strong {
    color: #007bff;
}

/* Selector de álbum */
.album-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.album-select:focus {
    outline: none;
    border-color: #007bff;
}

/* Vista previa de archivos */
.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.preview-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

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

.preview-item .video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Acciones del formulario */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

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

/* Botones de atrás (solo flecha) */
.btn-back {
    flex: 0 0 auto !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0;
    min-width: 50px;
}

/* Enlace a galerías */
.gallery-link-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    display: none; /* Oculto por defecto */
}

.gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
    background: transparent;
}

.gallery-link:hover {
    color: #007bff;
    background: #f8f9fa;
    text-decoration: none;
    transform: translateY(-1px);
}

.gallery-link svg {
    transition: transform 0.2s ease;
}

.gallery-link:hover svg {
    transform: scale(1.1);
}

/* Estilo especial para el primer paso (identificación) */
#aliasStep .form-actions .btn-primary {
    flex: 1;
}

#uploadStep .form-actions .btn-success {
    flex: 1;
}

/* Progreso de subida mejorado */
.upload-progress {
    text-align: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.processing-animation {
    margin-bottom: 25px;
    position: relative;
}

.processing-icon {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.upload-progress h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.processing-step {
    color: #007bff;
    font-weight: 500;
    margin-bottom: 25px;
    font-size: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.progress-container {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997, #28a745);
    background-size: 200% 100%;
    width: 0%;
    transition: width 0.5s ease;
    animation: shimmer 2s linear infinite;
    position: relative;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(40, 167, 69, 0.4), transparent);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.processing-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    text-align: left;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid #007bff;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.detail-icon {
    font-size: 1.2rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

.detail-item span:last-child {
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Efectos de partículas */
.processing-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.effect-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #007bff;
    border-radius: 50%;
    animation: particle 4s linear infinite;
}

.effect-particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    background: #28a745;
}

.effect-particle:nth-child(2) {
    left: 30%;
    animation-delay: 0.8s;
    background: #ffc107;
}

.effect-particle:nth-child(3) {
    left: 50%;
    animation-delay: 1.6s;
    background: #dc3545;
}

.effect-particle:nth-child(4) {
    left: 70%;
    animation-delay: 2.4s;
    background: #6f42c1;
}

.effect-particle:nth-child(5) {
    left: 90%;
    animation-delay: 3.2s;
    background: #20c997;
}

@keyframes particle {
    0% {
        top: 100%;
        opacity: 0;
        transform: scale(0);
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        top: -10%;
        opacity: 0;
        transform: scale(0);
    }
}

/* Efecto de completado exitoso */
.upload-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-radius: 15px;
    border: 2px solid #28a745;
}

.upload-success h3 {
    color: #155724;
    animation: successPulse 1s ease-in-out;
}

.upload-success .processing-step {
    color: #155724;
}

.upload-success .detail-item {
    background: rgba(40, 167, 69, 0.1);
    border-left-color: #28a745;
    animation: successSlide 0.5s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes successSlide {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Efecto de confeti */
.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: confettiFall linear;
    pointer-events: none;
    z-index: 1000;
}

@keyframes confettiFall {
    0% {
        top: -10px;
        transform: rotateZ(0deg);
        opacity: 1;
    }
    100% {
        top: 100%;
        transform: rotateZ(720deg);
        opacity: 0;
    }
}

/* Efectos adicionales para el progreso */
.progress-fill.complete {
    background: linear-gradient(90deg, #28a745, #20c997, #28a745);
    animation: completePulse 1s ease-in-out;
}

@keyframes completePulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.2); }
}

/* Feedback */
.feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.feedback.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* PÁGINA DE GALERÍA INDIVIDUAL */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.photo-item:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

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

.photo-item .favorite-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 16px;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,0,0,0.9), rgba(20,20,40,0.9), rgba(0,0,0,0.9));
    background-size: 400% 400%;
    animation: modalGradientShift 10s ease infinite;
    backdrop-filter: blur(10px);
}

@keyframes modalGradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.modal-content img,
.modal-content video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    opacity: 0.7;
}

.modal-controls {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 1024px) and (min-width: 769px) {
    .center-title {
        top: 22%;
    }
    
    .center-title h1 {
        font-size: 3rem;
        letter-spacing: 1.5px;
    }
    
    .panel-content {
        padding: 35px;
    }
    
    .panel-content h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .split-screen {
        flex-direction: column;
    }
    
    .center-title {
        top: 15%;
        padding: 0 15px;
    }
    
    .center-title h1 {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .panel-content {
        padding: 30px 20px;
    }
    
    .panel-content h2 {
        font-size: 1.5rem;
    }
    
    .panel-content p {
        font-size: 1rem;
    }
    
    .header-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-controls h1 {
        order: -1;
        margin-bottom: 15px;
    }
    
    .galleries-grid {
        grid-template-columns: 1fr;
    }
    
    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .upload-card {
        padding: 30px 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-back {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        align-self: flex-start;
        margin-bottom: 10px;
    }
    
    .gallery-link-section {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .gallery-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    
    .album-options {
        gap: 10px;
    }
    
    .option-item {
        padding: 12px;
    }
    
    .option-item label strong {
        font-size: 0.9rem;
    }
    
    .option-item label small {
        font-size: 0.8rem;
    }
    
    .upload-progress {
        padding: 30px 20px;
    }
    
    .processing-details {
        max-width: 100%;
    }
    
    .detail-item {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .detail-icon {
        font-size: 1rem;
    }
    
    .upload-progress h3 {
        font-size: 1.3rem;
    }
    
    .processing-step {
        font-size: 0.9rem;
    }
    
    .modal-controls {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .upload-container {
        padding: 15px;
    }
    
    .center-title {
        top: 12%;
        padding: 0 10px;
    }
    
    .center-title h1 {
        font-size: 1.8rem;
        letter-spacing: 0.5px;
        line-height: 1.2;
    }
    
    .panel-content {
        padding: 25px 15px;
    }
    
    .panel-content h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .panel-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}