/* ===================================
   SHOPS AND ESTABLISHMENTS ACT 1963
   CSS STYLESHEET
   =================================== */

/* Reset and 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(240, 248, 255), rgb(230, 240, 255));
    color: rgb(20, 20, 20);
    line-height: 1.6;
    font-weight: 600;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, rgb(25, 78, 135), rgb(35, 98, 165));
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 40px 20px;
    border-bottom: 5px solid rgb(200, 150, 50);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 2.8em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

header .subtitle {
    font-size: 1.3em;
    font-weight: 700;
    color: rgb(255, 215, 100);
}

/* Print Button */
.print-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgb(200, 50, 50), rgb(220, 70, 70));
    color: rgb(255, 255, 255);
    border: 3px solid rgb(255, 255, 255);
    padding: 12px 24px;
    font-size: 1.1em;
    font-weight: 900;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.print-btn:hover {
    background: linear-gradient(135deg, rgb(220, 70, 70), rgb(240, 90, 90));
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Navigation Menu */
.navigation {
    background: linear-gradient(135deg, rgb(240, 240, 240), rgb(255, 255, 255));
    padding: 25px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 12px;
    border: 4px solid rgb(25, 78, 135);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.navigation h3 {
    color: rgb(25, 78, 135);
    font-size: 1.6em;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-align: center;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.nav-buttons button {
    background: linear-gradient(135deg, rgb(35, 98, 165), rgb(45, 118, 195));
    color: rgb(255, 255, 255);
    border: 3px solid rgb(255, 255, 255);
    padding: 12px 20px;
    font-size: 1em;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.nav-buttons button:hover {
    background: linear-gradient(135deg, rgb(200, 150, 50), rgb(220, 170, 70));
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: rgb(255, 255, 255);
    border-radius: 12px;
    border: 5px solid rgb(25, 78, 135);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Disclaimer */
.disclaimer {
    background: linear-gradient(135deg, rgb(255, 240, 200), rgb(255, 250, 220));
    border: 4px solid rgb(200, 150, 50);
    border-left: 8px solid rgb(200, 100, 20);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.disclaimer p {
    color: rgb(80, 50, 20);
    font-size: 1.1em;
    font-weight: 800;
    line-height: 1.8;
}

/* Section Styles */
section {
    margin: 40px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgb(250, 250, 255), rgb(255, 255, 255));
    border-radius: 10px;
    border: 4px solid rgb(35, 98, 165);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: rgb(25, 78, 135);
    font-size: 2em;
    font-weight: 900;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 4px solid rgb(200, 150, 50);
    text-transform: uppercase;
    letter-spacing: 1px;
}

section h3 {
    color: rgb(35, 98, 165);
    font-size: 1.5em;
    font-weight: 900;
    margin: 25px 0 15px 0;
    padding-left: 10px;
    border-left: 6px solid rgb(200, 150, 50);
}

section h4 {
    color: rgb(45, 118, 195);
    font-size: 1.2em;
    font-weight: 900;
    margin: 15px 0 10px 0;
}

section p {
    margin: 12px 0;
    font-size: 1.05em;
    font-weight: 700;
    color: rgb(40, 40, 40);
    text-align: justify;
}

section ul, section ol {
    margin: 15px 0 15px 30px;
    font-weight: 700;
}

section li {
    margin: 8px 0;
    font-size: 1.05em;
    color: rgb(40, 40, 40);
    font-weight: 700;
}

/* Special Boxes */
.definition-box, .important-box, .example-box {
    margin: 20px 0;
    padding: 20px;
    border-radius: 8px;
    border: 4px solid;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.definition-box {
    background: linear-gradient(135deg, rgb(230, 245, 255), rgb(240, 250, 255));
    border-color: rgb(35, 98, 165);
    border-left: 8px solid rgb(25, 78, 135);
}

.important-box {
    background: linear-gradient(135deg, rgb(255, 240, 240), rgb(255, 250, 250));
    border-color: rgb(200, 100, 100);
    border-left: 8px solid rgb(180, 50, 50);
}

.example-box {
    background: linear-gradient(135deg, rgb(240, 255, 240), rgb(250, 255, 250));
    border-color: rgb(100, 180, 100);
    border-left: 8px solid rgb(50, 150, 50);
}

.definition-box h4, .important-box h4, .example-box h4 {
    font-weight: 900;
    margin-bottom: 12px;
    font-size: 1.3em;
}

.definition-box p, .important-box p, .example-box p {
    font-weight: 700;
}

/* Tables */
.table-container {
    margin: 25px 0;
    overflow-x: auto;
    border-radius: 10px;
    border: 4px solid rgb(35, 98, 165);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgb(255, 255, 255);
}

table thead {
    background: linear-gradient(135deg, rgb(25, 78, 135), rgb(35, 98, 165));
    color: rgb(255, 255, 255);
}

table th {
    padding: 15px;
    text-align: left;
    font-weight: 900;
    font-size: 1.1em;
    border: 2px solid rgb(255, 255, 255);
    text-transform: uppercase;
}

table td {
    padding: 12px 15px;
    border: 2px solid rgb(220, 220, 220);
    font-weight: 700;
    color: rgb(40, 40, 40);
}

table tbody tr:nth-child(even) {
    background: linear-gradient(135deg, rgb(245, 250, 255), rgb(250, 252, 255));
}

table tbody tr:nth-child(odd) {
    background: rgb(255, 255, 255);
}

table tbody tr:hover {
    background: linear-gradient(135deg, rgb(255, 250, 230), rgb(255, 252, 240));
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Flowcharts */
.flowchart {
    margin: 30px auto;
    padding: 30px;
    background: linear-gradient(135deg, rgb(245, 245, 250), rgb(255, 255, 255));
    border: 4px solid rgb(35, 98, 165);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.flow-item {
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

.flow-box {
    padding: 18px 25px;
    border: 4px solid;
    border-radius: 10px;
    font-weight: 900;
    text-align: center;
    min-width: 280px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.flow-box:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.flow-box.start {
    background: linear-gradient(135deg, rgb(100, 200, 100), rgb(120, 220, 120));
    border-color: rgb(50, 150, 50);
    color: rgb(255, 255, 255);
}

.flow-box.process {
    background: linear-gradient(135deg, rgb(100, 150, 220), rgb(120, 170, 240));
    border-color: rgb(35, 98, 165);
    color: rgb(255, 255, 255);
}

.flow-box.decision {
    background: linear-gradient(135deg, rgb(255, 200, 100), rgb(255, 220, 120));
    border-color: rgb(200, 150, 50);
    color: rgb(40, 40, 40);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    min-width: 250px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flow-box.end {
    background: linear-gradient(135deg, rgb(220, 100, 100), rgb(240, 120, 120));
    border-color: rgb(180, 50, 50);
    color: rgb(255, 255, 255);
}

.flow-arrow {
    font-size: 2em;
    font-weight: 900;
    color: rgb(25, 78, 135);
    margin: 5px 0;
}

.flow-arrow-left {
    font-size: 2em;
    font-weight: 900;
    color: rgb(25, 78, 135);
    margin: 0 10px;
}

.flow-arrow-right {
    font-size: 2em;
    font-weight: 900;
    color: rgb(25, 78, 135);
    margin: 0 10px;
}

.flow-split {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 15px 0;
}

.flow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin: 0 20px;
}

/* Mind Map Styles */
.mindmap-container {
    background: linear-gradient(135deg, rgb(245, 248, 252), rgb(255, 255, 255));
    border: 4px solid rgb(35, 98, 165);
    border-radius: 12px;
    margin: 30px 0;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

#mindmapSVG {
    background: rgb(255, 255, 255);
    border-radius: 8px;
}

.mindmap-legend {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgb(240, 240, 245), rgb(255, 255, 255));
    border: 3px solid rgb(35, 98, 165);
    border-radius: 8px;
}

.mindmap-legend h4 {
    font-weight: 900;
    color: rgb(25, 78, 135);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
    font-weight: 800;
}

.legend-color {
    width: 40px;
    height: 25px;
    margin-right: 12px;
    border: 3px solid rgb(80, 80, 80);
    border-radius: 5px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgb(40, 40, 40), rgb(60, 60, 60));
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 5px solid rgb(200, 150, 50);
}

footer p {
    margin: 10px 0;
    font-size: 1.05em;
    font-weight: 800;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .container {
        border: none;
        box-shadow: none;
    }
    
    section {
        page-break-inside: avoid;
        border: 2px solid rgb(0, 0, 0);
    }
    
    .flow-box {
        border: 2px solid rgb(0, 0, 0);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    header .subtitle {
        font-size: 1.1em;
    }
    
    .container {
        padding: 15px;
        margin: 15px;
    }
    
    section {
        padding: 15px;
    }
    
    section h2 {
        font-size: 1.6em;
    }
    
    section h3 {
        font-size: 1.3em;
    }
    
    .nav-buttons {
        flex-direction: column;
    }
    
    .nav-buttons button {
        width: 100%;
    }
    
    .flow-box {
        min-width: 200px;
        font-size: 0.9em;
    }
    
    .flow-split {
        flex-direction: column;
    }
    
    .flow-branch {
        margin: 10px 0;
    }
    
    .print-btn {
        top: 10px;
        right: 10px;
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

@media screen and (max-width: 480px) {
    header h1 {
        font-size: 1.6em;
    }
    
    .container {
        margin: 10px;
        padding: 10px;
    }
    
    section h2 {
        font-size: 1.4em;
    }
    
    table {
        font-size: 0.85em;
    }
    
    table th, table td {
        padding: 8px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Styling */
::selection {
    background: rgb(200, 150, 50);
    color: rgb(255, 255, 255);
}

/* Strong Tag Styling */
strong {
    font-weight: 900;
    color: rgb(25, 78, 135);
}

/* Link Styling for Mind Map */
.node-label {
    font-weight: 900;
    font-size: 14px;
}

.node-circle {
    stroke-width: 3px;
}

.link-line {
    stroke-width: 3px;
}

/* Accessibility */
button:focus, a:focus {
    outline: 3px solid rgb(200, 150, 50);
    outline-offset: 2px;
}