/* Custom CSS for Alexa Trading Application */

:root {
    --primary-color: #2563eb;
    --success-color: #16a34a;
    --danger-color: #dc2626;
    --warning-color: #d97706;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --border-color: #e5e7eb;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--light-color);
}

.landing-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.forex-pair-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.forex-pair-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.price-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
}

.price-change {
    font-size: 0.9rem;
    font-weight: 500;
}

.price-up {
    color: var(--success-color);
}

.price-down {
    color: var(--danger-color);
}

.signal-button {
    width: 100%;
    margin-top: 1rem;
    border-radius: 8px;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auto-signal-active {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.signal-card {
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
}

.signal-card.call {
    border-left-color: var(--success-color);
}

.signal-card.put {
    border-left-color: var(--danger-color);
}

.confidence-high {
    background-color: var(--success-color);
}

.confidence-medium {
    background-color: var(--warning-color);
}

.confidence-low {
    background-color: #6b7280;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.stats-card {
    text-align: center;
    padding: 1.5rem;
}

.stats-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.stats-label {
    font-size: 0.9rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.alert {
    border-radius: 8px;
    border: none;
}

.modal-content {
    border-radius: 12px;
    border: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.badge {
    padding: 0.5em 0.75em;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .forex-pair-card {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .price-display {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Admin Panel Styles */
.admin-sidebar {
    background-color: var(--dark-color);
    min-height: 100vh;
    padding: 2rem 0;
}

.admin-sidebar .nav-link {
    color: #d1d5db;
    padding: 0.75rem 1.5rem;
    margin: 0.25rem 0;
    border-radius: 8px;
    transition: all 0.2s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.admin-content {
    padding: 2rem;
}

.metric-card {
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: bold;
}

.api-key-display {
    font-family: 'Courier New', monospace;
    background-color: #f3f4f6;
    padding: 0.5rem;
    border-radius: 4px;
    word-break: break-all;
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #1f2937;
        --dark-color: #f9fafb;
        --border-color: #374151;
    }
}

/* Technical Indicator Styles */
.indicator-box {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e9ecef;
}

.technical-summary {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.technical-summary .fw-bold {
    font-size: 0.9rem;
}

/* Enhanced Toast Styles */
.toast {
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.toast-header {
    border-radius: 10px 10px 0 0;
    border-bottom: none;
}

.toast-body {
    border-radius: 0 0 10px 10px;
}

/* Enhanced Signal Button Styles */
.signal-button {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.signal-button:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

.signal-button:active {
    transform: translateY(0);
}

/* Analysis Button Styles */
.btn-outline-info {
    border-width: 2px;
    font-weight: 500;
    transition: all 0.2s;
}

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

/* Progress Bar Enhancements */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    border-radius: 4px;
    transition: width 0.6s ease;
    position: relative;
}

/* Modal Enhancements */
.modal-content {
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem 1.5rem 1rem 1.5rem;
}

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

/* Badge Enhancements */
.badge.fs-6 {
    font-size: 0.75rem !important;
    padding: 0.35em 0.65em;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .btn-group .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .technical-summary {
        font-size: 0.8rem;
    }
    
    .toast {
        max-width: 280px !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .modal {
        display: none !important;
    }
}