/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: Arial, sans-serif;
    background: #1a1a1a;
    color: white;
}

body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* === PAGE SYSTEM === */
.page {
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 20px;
    overflow: auto;
}

.page.active {
    display: flex;
}

/* === NOTIFICATIONS === */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    background: #4CAF50;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    z-index: 2000;
    animation: slideIn 0.3s ease-out;
}

.notification.error {
    background: #f44336;
}

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

/* === BUTTONS === */
.control-btn {
    background: linear-gradient(135deg, #2a2a3a, #1a1a2a);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    min-height: 90px;
}

.control-btn:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.control-btn:active {
    transform: translateY(-2px);
}

.control-btn .icon {
    font-size: 1.8rem;
    display: block;
}

.control-btn.hidden {
    display: none;
}

@media (max-width: 480px) {
    .slideshow-page {
        padding: 10px;
    }
    
    .slideshow-header h1 {
        font-size: 1.5rem;
    }
    
    .slideshow-header p {
        font-size: 0.85rem;
    }
    
    .slideshow-controls {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .control-btn, .brightness-card {
        padding: 12px 8px;
        font-size: 0.7rem;
    }
    
    .control-btn .icon, .brightness-card .icon {
        font-size: 1.3rem;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 10px;
    }
    .gallery-item {
        padding: 2px;
    }
}