.theme-preference-popup {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 1000;
    display: none;
    border: 1px solid var(--border-color);
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.theme-preference-popup.show {
    display: block;
}

.theme-preference-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.theme-preference-header i {
    font-size: 24px;
    margin-right: 10px;
    color: var(--primary-color);
}

.theme-preference-header h4 {
    margin: 0;
    font-weight: 600;
}

.theme-preference-options {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.theme-option {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.theme-option:first-child {
    margin-right: 10px;
    background-color: #f8f9fa;
    color: #212529;
}

.theme-option:last-child {
    margin-left: 10px;
    background-color: #343a40;
    color: #f8f9fa;
}

.theme-option:hover {
    transform: translateY(-5px);
}

.theme-option.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.3);
}

.theme-option i {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
}

.theme-preference-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.theme-preference-actions button {
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.theme-preference-actions button.btn-apply {
    background-color: var(--primary-color);
    color: white;
    border: none;
    margin-left: 10px;
}

.theme-preference-actions button.btn-apply:hover {
    background-color: var(--primary-color-dark);
}

.theme-preference-actions button.btn-dismiss {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.theme-preference-actions button.btn-dismiss:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Dark mode styles */
.dark-mode .theme-preference-popup {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}

.dark-mode .theme-option:first-child {
    background-color: #f8f9fa;
    color: #212529;
}

.dark-mode .theme-option:last-child {
    background-color: #343a40;
    color: #f8f9fa;
}

.dark-mode .theme-preference-actions button.btn-dismiss {
    border-color: var(--border-color);
    color: var(--text-color);
}

.dark-mode .theme-preference-actions button.btn-dismiss:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 576px) {
    .theme-preference-popup {
        width: 95%;
        bottom: 15px;
        padding: 15px;
    }
    
    .theme-preference-options {
        flex-direction: column;
    }
    
    .theme-option {
        margin: 5px 0 !important;
    }
    
    .theme-option:first-child,
    .theme-option:last-child {
        margin-right: 0;
        margin-left: 0;
    }
}
