/* ========================================
   Complete Swing Trading Checklist - CSS
   ======================================== */

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --light: #f8f9fa;
    --dark: #343a40;
    --text: #333;
    --border: #ddd;
}

* {
    box-sizing: border-box;
}

.stc-container {
    max-width: 1000px;
    margin: 30px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
}

/* Header */
.stc-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.stc-header .stc-title {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
}

.stc-header .stc-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.95;
}

/* Tabs */
.stc-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid var(--border);
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.stc-tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 15px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.stc-tab-btn:hover {
    background: white;
    color: var(--primary);
}

.stc-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: white;
}

/* Tab Content */
.stc-tab-content {
    display: none;
    padding: 30px;
    animation: fadeIn 0.3s ease;
}

.stc-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.stc-tab-content h3 {
    margin-top: 0;
    color: var(--primary);
    font-size: 22px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Form */
.stc-form {
    display: flex;
    flex-direction: column;
}

.stc-section {
    margin-bottom: 25px;
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.stc-section h4 {
    margin: 0 0 15px 0;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
}

/* Grid Layouts */
.stc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.stc-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.stc-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

/* Form Groups */
.stc-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.stc-form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stc-form-group input,
.stc-form-group select,
.stc-form-group textarea {
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.stc-form-group input:focus,
.stc-form-group select:focus,
.stc-form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: rgba(102, 126, 234, 0.02);
}

.stc-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Checklist */
.stc-checklist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stc-check {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.stc-check:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.02);
}

.stc-check input[type="checkbox"],
.stc-check input[type="radio"] {
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.stc-check span {
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

/* Requirement Text */
.stc-requirement {
    margin-top: 10px;
    padding: 10px;
    background: rgba(40, 167, 69, 0.1);
    border-left: 3px solid var(--success);
    color: var(--success);
    font-size: 13px;
    font-weight: 600;
}

.stc-warning {
    margin-top: 10px;
    padding: 10px;
    background: rgba(220, 53, 69, 0.1);
    border-left: 3px solid var(--danger);
    color: var(--danger);
    font-size: 13px;
}

.stc-note {
    margin: 0 0 15px 0;
    padding: 12px;
    background: rgba(23, 162, 184, 0.1);
    border-left: 3px solid var(--info);
    color: var(--info);
    font-size: 13px;
    font-weight: 500;
}

/* Buttons */
.stc-btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 20px;
}

.stc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.stc-btn-primary:active {
    transform: translateY(0);
}

/* Result Box */
.stc-result {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, var(--success) 0%, #20c997 100%);
    color: white;
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}

.stc-result.hidden {
    display: none;
}

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

.stc-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stc-result-header h3 {
    margin: 0;
    font-size: 18px;
    color: white;
}

.stc-close-result {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.stc-verdict-box {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    text-align: center;
}

.stc-verdict-box h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: white;
}

.stc-verdict-box p {
    margin: 5px 0;
    font-size: 14px;
    color: white;
}

/* Log History */
.stc-log-history {
    margin-top: 20px;
}

.stc-log-entry {
    padding: 15px;
    background: var(--light);
    border-left: 4px solid var(--success);
    margin-bottom: 15px;
    border-radius: 6px;
}

.stc-log-entry h5 {
    margin: 0 0 8px 0;
    color: var(--primary);
}

.stc-log-entry p {
    margin: 5px 0;
    font-size: 13px;
    color: var(--text);
}

/* Responsive */
@media (max-width: 768px) {
    .stc-container {
        margin: 15px;
    }

    .stc-header {
        padding: 30px 20px;
    }

    .stc-header .stc-title {
        font-size: 22px;
    }

    .stc-tabs {
        flex-direction: column;
    }

    .stc-tab-btn {
        min-width: 100%;
        text-align: left;
        padding: 12px 15px;
    }

    .stc-tab-content {
        padding: 20px;
    }

    .stc-section {
        padding: 15px;
    }

    .stc-grid-2,
    .stc-grid-3,
    .stc-grid-4 {
        grid-template-columns: 1fr;
    }

    .stc-form-group input,
    .stc-form-group select,
    .stc-form-group textarea {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .stc-container {
        margin: 0;
        border-radius: 0;
    }

    .stc-header {
        padding: 20px 15px;
    }

    .stc-header .stc-title {
        font-size: 18px;
    }

    .stc-tab-content {
        padding: 15px;
    }

    .stc-section {
        padding: 12px;
        margin-bottom: 15px;
    }

    .stc-btn-primary {
        font-size: 14px;
        padding: 12px 20px;
    }
}

/* Print Styles */
@media print {
    .stc-tabs,
    .stc-btn-primary,
    .stc-close-result {
        display: none;
    }

    .stc-container {
        box-shadow: none;
        margin: 0;
    }

    .stc-tab-content {
        display: block !important;
        page-break-inside: avoid;
    }
}
