/* ===================================
   TECHNICAL ANALYSIS - CSS STYLESHEET
   =================================== */

/* Global Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgb(31, 150, 199) 0%, rgb(21, 110, 159) 100%);
    color: #1a1a1a;
    line-height: 1.8;
    padding: 20px;
    min-height: 100vh;
}

/* Navigation Panel */
.nav-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.98);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid rgb(150, 31, 224);
    z-index: 1000;
    max-width: 280px;
}

.nav-panel h2 {
    color: rgb(150, 31, 224);
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 3px solid rgb(31, 150, 199);
    padding-bottom: 10px;
}

.nav-panel button {
    display: block;
    width: 100%;
    padding: 14px 18px;
    margin: 10px 0;
    background: linear-gradient(135deg, rgb(31, 150, 199), rgb(21, 110, 159));
    color: white;
    border: 2px solid rgb(150, 31, 224);
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s ease;
    text-align: left;
}

.nav-panel button:hover {
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(120, 21, 194));
    transform: translateX(-5px);
    box-shadow: 5px 5px 15px rgba(150, 31, 224, 0.4);
}

.nav-panel button.print-btn {
    background: linear-gradient(135deg, #28a745, #218838);
    margin-top: 20px;
    border: 2px solid #1e7e34;
}

.nav-panel button.print-btn:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    margin-right: 320px;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.3);
    border: 4px solid rgb(150, 31, 224);
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(120, 21, 194));
    border-radius: 15px;
    border: 3px solid rgb(31, 150, 199);
    box-shadow: 0 8px 25px rgba(150, 31, 224, 0.4);
}

header h1 {
    color: white;
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    color: white;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}

.disclaimer {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    margin-top: 20px;
    border: 2px solid white;
}

/* Content Sections */
.content-section {
    background: rgba(255, 255, 255, 0.98);
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 15px;
    border: 3px solid rgb(150, 31, 224);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Headings */
.main-heading {
    color: rgb(150, 31, 224);
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 4px solid rgb(31, 150, 199);
    text-transform: uppercase;
}

.sub-heading {
    color: rgb(31, 150, 199);
    font-size: 26px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 6px solid rgb(150, 31, 224);
}

.type-heading {
    color: rgb(150, 31, 224);
    font-size: 22px;
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(61, 242, 236, 0.3), rgba(31, 150, 199, 0.2));
    border-radius: 10px;
    border-left: 5px solid rgb(150, 31, 224);
}

.example-heading {
    color: rgb(31, 150, 199);
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 15px;
}

/* Bullet Lists */
.bullet-list {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 25px;
}

.bullet-list li {
    padding: 12px 20px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-left: 5px solid rgb(31, 150, 199);
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    color: #2c3e50;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.bullet-list li:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(31, 150, 199, 0.3);
}

.bullet-list li strong {
    color: rgb(150, 31, 224);
}

.sub-bullet {
    margin-left: 30px;
    border-left-color: rgb(150, 31, 224);
}

/* Type Containers */
.type-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    padding: 30px;
    margin: 25px 0;
    border-radius: 12px;
    border: 3px solid rgb(31, 150, 199);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: rgb(61, 242, 236);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 3px solid rgb(150, 31, 224);
}

.info-table thead {
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(120, 21, 194));
}

.info-table thead th {
    padding: 18px;
    text-align: left;
    font-weight: bold;
    font-size: 18px;
    color: white;
    border-right: 2px solid rgba(255, 255, 255, 0.2);
}

.info-table thead th:last-child {
    border-right: none;
}

.info-table tbody tr {
    border-bottom: 2px solid rgb(150, 31, 224);
    transition: all 0.3s ease;
}

.info-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.4);
}

.info-table tbody tr:hover {
    background: rgba(150, 31, 224, 0.15);
    transform: scale(1.01);
}

.info-table tbody td {
    padding: 16px;
    font-weight: bold;
    font-size: 17px;
    color: #1a1a1a;
    border-right: 2px solid rgba(150, 31, 224, 0.2);
}

.info-table tbody td:last-child {
    border-right: none;
}

.info-table tbody td strong {
    color: rgb(150, 31, 224);
}

/* Calculation Notes */
.calculation-note {
    background: linear-gradient(135deg, rgba(31, 150, 199, 0.15), rgba(61, 242, 236, 0.15));
    padding: 15px 25px;
    margin: 15px 0;
    border-radius: 10px;
    border-left: 5px solid rgb(150, 31, 224);
    font-weight: bold;
    font-size: 18px;
    color: #2c3e50;
}

.calculation-note strong {
    color: rgb(150, 31, 224);
}

/* Flowchart Styles */
.flowchart-container {
    padding: 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    border-radius: 15px;
    margin: 30px 0;
}

.flowchart-box {
    padding: 25px;
    margin: 25px auto;
    max-width: 600px;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 3px solid rgb(150, 31, 224);
    transition: all 0.3s ease;
}

.flowchart-box:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.start-box {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    border-color: #1e7e34;
}

.end-box {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #004085;
}

.decision-box {
    background: linear-gradient(135deg, rgb(31, 150, 199), rgb(21, 110, 159));
    color: white;
}

.bullish-box {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-color: #1e7e34;
}

.bearish-box {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-color: #bd2130;
}

.neutral-box {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #1a1a1a;
    border-color: #d39e00;
}

.warning-box {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    border-color: #dc5050;
}

.opportunity-box {
    background: linear-gradient(135deg, #4ecdc4, #44a49d);
    color: white;
    border-color: #3a8c86;
}

.action-buy {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border-color: #1e7e34;
    font-size: 20px;
}

.action-hold {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    color: #1a1a1a;
    border-color: #d39e00;
    font-size: 20px;
}

.action-sell {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-color: #bd2130;
    font-size: 20px;
}

.flowchart-arrow {
    text-align: center;
    font-size: 40px;
    color: rgb(150, 31, 224);
    font-weight: bold;
    margin: 10px 0;
}

.flowchart-split {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
       margin: 30px 0;
}

.flowchart-option {
    flex: 1;
    min-width: 280px;
}

/* Mind Map Styles */
.mindmap-container {
    position: relative;
    padding: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    border-radius: 15px;
    min-height: 800px;
    margin: 30px 0;
}

.mindmap-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(120, 21, 194));
    color: white;
    padding: 35px;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    font-size: 24px;
    box-shadow: 0 10px 40px rgba(150, 31, 224, 0.5);
    border: 4px solid rgb(31, 150, 199);
    z-index: 10;
}

.mindmap-branch {
    position: absolute;
}

.branch-1 {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.branch-2 {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.branch-3 {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.branch-4 {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.mindmap-node {
    background: linear-gradient(135deg, rgb(31, 150, 199), rgb(21, 110, 159));
    color: white;
    padding: 20px 30px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 3px solid rgb(150, 31, 224);
    margin-bottom: 15px;
}

.mindmap-subnodes {
    display: flex;
     flex-wrap: wrap;
    margin-top: 15px;
}

.mindmap-subnode {
    background: rgba(61, 242, 236, 0.8);
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    min-width: 120px;
    border: 2px solid rgb(150, 31, 224);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.mindmap-subnode:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(150, 31, 224, 0.3);
}

.mindmap-concepts {
    position: absolute;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
      flex-wrap: wrap;
    justify-content: center;
}

.mindmap-concept-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    padding: 20px;
    border-radius: 12px;
    border: 3px solid rgb(31, 150, 199);
    font-weight: bold;
    font-size: 15px;
    max-width: 250px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.mindmap-concept-box strong {
    color: rgb(150, 31, 224);
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

/* Q&A Section */
.qa-container {
    margin: 30px 0;
}

.qa-item {
    margin-bottom: 20px;
    border: 3px solid rgb(150, 31, 224);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.qa-item:hover {
    box-shadow: 0 8px 30px rgba(150, 31, 224, 0.3);
}

.qa-question {
    width: 100%;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgb(31, 150, 199), rgb(21, 110, 159));
    color: white;
    border: none;
    text-align: left;
    cursor: pointer;
    font-weight: bold;
    font-size: 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.qa-question:hover {
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(120, 21, 194));
}

.qa-icon {
    margin-right: 15px;
    font-size: 24px;
}

.qa-toggle {
    font-size: 28px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.qa-answer {
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    transition: max-height 0.5s ease, padding 0.5s ease;
}

.qa-answer.active {
    max-height: 2000px;
    padding: 25px;
    border-top: 3px solid rgb(150, 31, 224);
}

.qa-answer p {
    font-weight: bold;
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.qa-answer ul {
    list-style-type: none;
    padding-left: 0;
}

.qa-answer ul li {
    padding: 10px 15px;
    margin-bottom: 10px;
    background: rgba(61, 242, 236, 0.2);
    border-left: 4px solid rgb(31, 150, 199);
    border-radius: 8px;
    font-weight: bold;
    font-size: 17px;
    color: #2c3e50;
}

.qa-answer ol {
    padding-left: 25px;
}

.qa-answer ol li {
    margin-bottom: 15px;
    font-size: 17px;
    color: #2c3e50;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgb(150, 31, 224), rgb(120, 21, 194));
    color: white;
    border-radius: 15px;
    margin-top: 50px;
    border: 3px solid rgb(31, 150, 199);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

footer p {
    margin: 8px 0;
    font-weight: bold;
    font-size: 17px;
}

footer em {
    font-size: 15px;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .nav-panel {
        display: none;
    }
    
    .container {
        margin-right: 0;
        border: none;
        box-shadow: none;
    }
    
    .content-section {
        page-break-inside: avoid;
        border: 2px solid #333;
    }
    
    .flowchart-box,
    .qa-item {
        page-break-inside: avoid;
    }
    
    .qa-answer {
        max-height: none !important;
        padding: 15px !important;
    }
}

/* Responsive Design */
@media screen and (max-width: 1400px) {
    .container {
        margin-right: 0;
        margin-top: 80px;
    }
    
    .nav-panel {
        position: relative;
        top: 0;
        right: 0;
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    .nav-panel button {
        display: inline-block;
        width: auto;
        margin: 5px;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    header h1 {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .main-heading {
        font-size: 26px;
    }
    
    .sub-heading {
        font-size: 20px;
    }
    
    .flowchart-split {
        flex-direction: column;
    }
    
    .mindmap-container {
        min-height: 1200px;
        padding: 30px;
    }
    
    .mindmap-branch {
        position: relative;
        transform: none !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        margin: 20px 0;
    }
    
    .mindmap-center {
        position: relative;
        transform: none;
        margin: 30px auto;
    }
    
    .mindmap-concepts {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 30px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: rgb(150, 31, 224);
    color: white;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgb(150, 31, 224);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(31, 150, 199);
}