/* Ombee AI - Global Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === CSS VARIABLES === */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f9f9f9;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --accent-primary: #ECC719;
    --accent-secondary: #d4af15;
    --border-color: rgba(236, 199, 25, 0.3);
    
    /* Gold & Black theme */
    --gold: #ffd700;
    --gold-hover: #ffed4e;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-light: #e5e5e5;
    --border-dark: #2a2a2a;
}

[data-theme="dark"] {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-card: rgba(30, 30, 30, 0.8);
    --bg-input: rgba(50, 50, 50, 0.8);
    --text-primary: #e0e0e0;
    --text-secondary: #999;
    --border-color: rgba(236, 199, 25, 0.3);
}

/* === GLOBAL STYLES === */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* === BUTTONS === */
.btn-primary {
    padding: 1rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 199, 25, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    padding: 0.75rem;
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(236, 199, 25, 0.1);
}

.btn-danger {
    padding: 0.75rem;
    background: rgba(255, 50, 50, 0.2);
    color: #ff6b6b;
    border: 2px solid rgba(255, 50, 50, 0.5);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: rgba(255, 50, 50, 0.3);
}

/* === FORM INPUTS === */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(236, 199, 25, 0.1);
}

/* === ALERTS === */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(255, 50, 50, 0.2);
    border: 1px solid rgba(255, 50, 50, 0.5);
    color: #ff6b6b;
}

.alert-success {
    background: rgba(50, 255, 50, 0.2);
    border: 1px solid rgba(50, 255, 50, 0.5);
    color: #51cf66;
}

.alert-info {
    background: rgba(236, 199, 25, 0.2);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.toast-message {
    flex: 1;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.toast-success {
    border-color: #51cf66;
}

.toast-success .toast-icon {
    background: rgba(81, 207, 102, 0.2);
    color: #51cf66;
}

.toast-error {
    border-color: #ff6b6b;
}

.toast-error .toast-icon {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

.toast-info {
    border-color: var(--accent-primary);
}

.toast-info .toast-icon {
    background: rgba(236, 199, 25, 0.2);
    color: var(--accent-primary);
}

.toast-warning {
    border-color: #ffa94d;
}

.toast-warning .toast-icon {
    background: rgba(255, 169, 77, 0.2);
    color: #ffa94d;
}

[data-theme="dark"] .toast {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* === MODALS === */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
}

.modal-body {
    padding: 1.5rem;
}

/* === CONFIRMATION MODAL === */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-modal-overlay.show {
    opacity: 1;
}

.confirm-modal {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.confirm-modal-overlay.show .confirm-modal {
    transform: scale(1);
}

.confirm-modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.confirm-modal-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin: 0;
}

.confirm-modal-body {
    padding: 1.5rem;
}

.confirm-modal-body p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.confirm-modal-actions {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.confirm-modal-actions button {
    flex: 1;
    max-width: 150px;
}

/* === UTILITY CLASSES === */
.hidden {
    display: none !important;
}

/* === SCROLLBAR STYLES === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(236, 199, 25, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(236, 199, 25, 0.5);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
    
    .toast {
        min-width: unset;
        max-width: unset;
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
    }
}