/* SuperHero Auto-Trader Common Styles */

/* Base Styles */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Container Styles */
.app-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    max-width: 1200px;
}

.setup-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    max-width: 800px;
}

/* Header Styles */
.app-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    padding: 2rem;
    text-align: center;
}

.app-content {
    padding: 2rem;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(40, 167, 69, 0.3);
}

.btn-action {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-edit {
    background: #007bff;
    color: white;
    border: none;
}

.btn-edit:hover {
    background: #0056b3;
    transform: translateY(-2px);
    color: white;
}

.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
}

.btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
    color: white;
}

.btn-add {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

/* Form Styles */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

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

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.help-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.card-body {
    padding: 1.5rem;
}

/* Section Styles */
.section-title {
    color: #495057;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

.subsection-title {
    color: #6c757d;
    font-weight: 600;
    font-size: 1rem;
    margin: 1.5rem 0 1rem 0;
    padding-left: 1rem;
    border-left: 4px solid #667eea;
}

/* Info Box Styles */
.info-box {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.info-box h6 {
    color: #1976d2;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-box p {
    color: #424242;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Status Box Styles */
.status-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.status-label {
    font-weight: 600;
    color: #495057;
}

.status-value {
    color: #6c757d;
}

/* Conditional Field Styles */
.conditional-field {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.conditional-field.show {
    display: block;
}

/* Step Indicator Styles */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 0.5rem;
}

.step.active .step-number {
    background: #667eea;
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step.inactive .step-number {
    background: #e9ecef;
    color: #6c757d;
}

.step-text {
    font-size: 0.9rem;
    font-weight: 500;
}

.step.active .step-text {
    color: #667eea;
}

.step.completed .step-text {
    color: #28a745;
}

.step.inactive .step-text {
    color: #6c757d;
}

/* Empty State Styles */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Summary Section Styles */
.summary-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
}

.summary-section h4 {
    color: #495057;
    margin-bottom: 1rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #495057;
}

.info-value {
    color: #6c757d;
}

/* Agreement Box Styles */
.agreement-box {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.agreement-box h5 {
    color: #dc3545;
    margin-bottom: 1rem;
}

.agreement-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #495057;
}

/* Google Login Info Styles */
.google-login-info {
    background: linear-gradient(45deg, #4285f4, #34a853);
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.google-login-info h5 {
    margin-bottom: 1rem;
}

.google-login-info ul {
    margin: 0;
    padding-left: 1.5rem;
}

.google-login-info li {
    margin-bottom: 0.5rem;
}

/* Holdings List Styles */
.holdings-list {
    max-height: 300px;
    overflow-y: auto;
}

.holding-item {
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.holding-item.korean {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.holding-item.us {
    background-color: #f3e5f5;
    border-color: #9c27b0;
    opacity: 0.6;
}

.holding-item.us.active {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-container,
    .setup-container {
        margin: 1rem;
        border-radius: 15px;
    }
    
    .app-header {
        padding: 1.5rem;
        border-radius: 15px 15px 0 0;
    }
    
    .app-content {
        padding: 1.5rem;
    }
    
    .step-indicator {
        flex-direction: column;
        gap: 1rem;
    }
    
    .step {
        margin: 0;
    }
}

/* Admin Navigation Styles */
.admin-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-nav .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-nav .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.admin-nav .btn-outline-light {
    border-color: rgba(255,255,255,0.3);
    color: white;
}

.admin-nav .btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.admin-nav .btn-outline-danger {
    border-color: rgba(220,53,69,0.5);
    color: #dc3545;
}

.admin-nav .btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Responsive Admin Navigation */
@media (max-width: 768px) {
    .app-header .d-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .admin-nav .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Account Management Styles */
.broker-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.account-number {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.token-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.token-valid {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.token-expired {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn-refresh {
    background: #28a745;
    color: white;
    border: none;
}

.btn-refresh:hover {
    background: #1e7e34;
    transform: translateY(-2px);
    color: white;
}

/* Utility Classes */
.font-mono {
    font-family: 'Courier New', monospace;
}

.text-sm {
    font-size: 0.875rem;
}

/* Card Styles */
.card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Rule Card Specific Styles */
.rule-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
}

.rule-status {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.rule-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.info-value {
    font-size: 0.95rem;
    color: #495057;
    font-weight: 600;
}

.profit-rate {
    color: #28a745 !important;
}

.loss-rate {
    color: #dc3545 !important;
}

.rule-meta {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 1rem;
}

.rule-date {
    text-align: center;
}
