/* Custom styles for Shopeasy */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --body-bg: #f8f9fa;
    --surface-color: #ffffff;
    --surface-hover: #f1f3f4;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    background-color: var(--body-bg);
    color: var(--text-primary);
}

/* Fix monospace fonts - prevent Roboto Mono 403 errors */
.font-monospace, pre, code, kbd, samp {
    font-family: 'JetBrains Mono', 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace !important;
}

.fw-bold {
    font-weight: 600 !important;
}

/* Header styles */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Step icons for the guide */
.step-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Content blocks */
.content-block {
    margin-bottom: 1rem;
}

.content-box {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    min-height: 120px;
    position: relative;
    color: var(--text-primary);
}

.content-box.small {
    min-height: 80px;
    font-size: 0.9rem;
}

/* Cards */
.card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--surface-color);
    color: var(--text-primary);
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600;
    background-color: var(--surface-hover);
    border-bottom: 1px solid var(--border-color);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.copy-btn {
    transition: all 0.2s ease;
}

.copy-btn:hover {
    transform: translateY(-1px);
}

/* Navigation tabs */
.nav-tabs .nav-link {
    border-radius: 8px 8px 0 0;
    font-weight: 500;
    color: var(--text-secondary);
    border: none;
    border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background-color: transparent;
}

/* Form controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Alert styles */
.alert {
    border-radius: 8px;
    border: none;
}

/* Badge styles */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
}

/* Table styles */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.04);
}

/* Loading states */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .content-box {
        padding: 0.75rem;
        min-height: 100px;
    }
    
    .btn-group .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.3s ease-out;
}

/* Chilean color scheme touches */
.bg-primary {
    background-color: #0d6efd !important;
}

.text-primary {
    color: #0d6efd !important;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Toast styles */
.toast {
    border-radius: 8px;
}

/* Empty state */
.display-1 {
    font-size: 4rem;
}

/* Utility classes */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Character count display */
.content-box small {
    opacity: 0.7;
}

/* Special formatting for video script */
.content-box pre {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    white-space: pre-wrap;
}
