
        /* Global Styles */
:root {
    --primary-color: #125875;       /* Teal-blue as primary */
    --secondary-color: #0e4a63;     /* Darker teal-blue */
    --accent-color: #E23602;        /* Orange-red as accent */
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #1abc9c;
    --border-radius: 5px;
    --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h2{
    background-color:#2c3e50;
    padding:1rem;
    color: white;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    position: relative;
    padding-left: 280px; /* Space for sidebar */
}

h1, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
}

header .subtitle {
    color: var(--light-color);
    font-style: italic;
    font-size: 0.9rem;
}

/* Sidebar Styles */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition);
    transform: translateX(0);
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    color: white;
}

.sidebar-header h3 {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    display: none;
}

.sidebar-menu {
    padding: 0.5rem 0;
}

.sidebar-menu li {
    margin-bottom: 3px;
}

.sidebar-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    color: #555;
    transition: var(--transition);
    font-size: 0.95rem;
}

.sidebar-menu a:hover {
    background-color: rgba(226, 54, 2, 0.1);
    color: var(--accent-color);
    padding-left: 1.7rem;
}

.sidebar-menu .submenu {
    padding-left: 1rem;
    display: none;
}

.sidebar-menu .submenu li a {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}

.sidebar-menu li.active > a {
    color: var(--accent-color);
    font-weight: bold;
    background-color: rgba(226, 54, 2, 0.05);
}

.sidebar-menu li.active .submenu {
    display: block;
}

/* Main Content Styles */
main {
    padding: 1.5rem 0;
}

.sidebar-toggle {
    display: none;
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius);
    margin: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: fixed;
    top: 10px;
    right:0.7rem ;
    z-index: 1100;
    font-weight: bold;
}

.sidebar-toggle:hover {
    background-color: #c22e02;
}

section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--accent-color);
    position: relative;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #eee;
    font-size: 1.3rem;
}

.note {
    background-color: #f8f9fa;
    border-left: 4px solid var(--warning-color);
    padding: 0.8rem;
    margin: 1rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 0.9rem;
}

.note p {
    margin: 0;
}

/* Code Block Styles */
.code-block {
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.5;
    padding-right: 30px; /* Space for copy button */
}

.copy-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color:var(--accent-color);
    border: none;
    border-radius: 3px;
    padding: 3px 6px;
    cursor: pointer;
    color:white;
    font-size: 0.7rem;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(0, 0, 0, 0.2);
}

.copy-btn.copied {
    background: var(--success-color);
    color: white;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin: 1rem 0;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background-color: white;
    box-shadow: var(--box-shadow);
    min-width: 600px;
}

table caption {
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-align: left;
    font-size: 1.1rem;
}

th, td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
}

th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #f0f0f0;
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    body {
        padding-left: 280px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 992px) {
    body {
        padding-left: 0;
    }
    
    #sidebar {
        transform: translateX(-100%);
        width: 280px;
    }
    
    #sidebar.active {
        transform: translateX(0);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    .close-btn {
        display: block;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    header {
        padding: 1rem 0;
    }
    
    section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .card h3 {
        font-size: 1.2rem;
    }
    
    .sidebar-toggle {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.6rem 0.8rem;
    }
    
    .code-block {
        font-size: 0.8rem;
        padding: 0.8rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    header .subtitle {
        font-size: 0.8rem;
    }
    
    section {
        padding: 1rem;
    }
    
    .card {
        padding: 0.8rem;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
    
    .sidebar-menu a {
        padding: 0.6rem 1rem;
    }
    
    footer {
        padding: 1rem 0;
        font-size: 0.8rem;
    }
    
    .sidebar-toggle {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Animation for section highlighting when navigating */
:target {
    animation: highlight 1.5s ease;
}

@keyframes highlight {
    from { background-color: rgba(226, 54, 2, 0.15); }
    to { background-color: white; }
}

/* Mobile touch improvements */
@media (hover: none) {
    .sidebar-menu a:hover {
        background-color: transparent;
        color: #555;
        padding-left: 1.5rem;
    }
    
    .sidebar-menu li.active > a {
        background-color: rgba(226, 54, 2, 0.05);
    }
    
    tr:hover {
        background-color: #f8f9fa;
    }
}
