/* theme.css - Styling untuk fitur tema */

:root {
    /* Variabel default - akan di-override oleh JavaScript */
    --primary: #4a6bff;
    --primary-light: #6a8aff;
    --primary-dark: #3a5af9;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
    --gray: #6c757d;
    --body-bg: #f5f7ff;
    --card-bg: #ffffff;
    --text-color: #333333;
    --border-color: #dee2e6;
    --modal-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --rounded: 8px;
    --rounded-sm: 4px;
    --rounded-lg: 12px;
}

/* Theme transition untuk perubahan yang smooth */
body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.app-header,
.panel,
.modal-content,
.btn {
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Theme selector styles */
.theme-selector-container {
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--rounded-lg);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.theme-card {
    border: 2px solid var(--border-color);
    border-radius: var(--rounded);
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--card-bg);
    text-align: center;
}

.theme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.theme-card.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.theme-color-display {
    width: 100%;
    height: 60px;
    border-radius: var(--rounded-sm);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.theme-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
}

.theme-description {
    font-size: 12px;
    color: var(--gray);
    opacity: 0.8;
}

/* Theme preview in control panel */
.current-theme-display {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: var(--rounded);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.current-theme-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
}

.current-theme-info h5 {
    margin: 0 0 5px 0;
    color: var(--text-color);
}

.current-theme-info p {
    margin: 0;
    font-size: 14px;
    color: var(--gray);
}

/* Theme reset button */
.theme-reset-btn {
    margin-top: 20px;
    width: 100%;
}

/* Responsive theme grid */
@media (max-width: 768px) {
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .theme-card {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .theme-grid {
        grid-template-columns: 1fr;
    }
}
