/* ========================================
   Nextrader Deriv Charts - Styles
   ======================================== */

/* CSS Variables for Theming */
:root {
    /* Light Theme (Default - Always Light) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --border-color: #dee2e6;
    --text-primary: #131722;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --accent-primary: #2962ff;
    --accent-secondary: #00bcd4;
    --accent-hover: #1e4bd8;
    --success: #26a69a;
    --danger: #f23645;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    min-height: 100vh;
    overflow: hidden;
}

/* ========================================
   Header Styles
   ======================================== */
.header {
    background-color: white;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f3f3f3;
   position: absolute;
    height: 77px;
    z-index: 9999;
    width: 100%;

    flex-shrink: 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 1.8em;
    width: auto;
    object-fit: contain;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    height: 32px;
    white-space: nowrap;
}

.btn-danger {
    background-color: #f23645;
    color: white;
}

.btn-danger:hover {
    background-color: #d92d3b;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #26a69a 0%, #2962ff 100%);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* ========================================
   Chart Container
   ======================================== */
.chart-container {
    height: calc(100vh);
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--bg-primary);
}

.chart-container iframe {
    width: 100%;
    height: calc(100%);
    border: none;
    position: absolute;
    /* top: -56px; */
    left: 0;
}

#deriv-header-container{
    background-color: var(--bg-primary);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .header {
        padding: 0 12px;
        height: 60px;
    }

    .logo-img {
        height: 24px;
    }

    .header-actions {
        gap: 6px;
    }

    .btn {
        padding: 6px 10px;
        font-size: 11px;
        height: 32px;
    }

    .btn-text {
        display: none;
    }

    .hide-mobile {
        display: none;
    }

    .btn-icon {
        width: 18px;
        height: 18px;
    }

    .chart-container {
        height: calc(100vh);
    }

    .chart-container iframe {
        height: calc(100%);
        /* top: -56px; */
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0 8px;
        height: 60px;
    }

    .logo-img {
        height: 20px;
    }

    .header-actions {
        gap: 4px;
    }

    .btn {
        padding: 6px 8px;
        height: 30px;
        border-radius: 4px;
    }

    .btn-icon {
        width: 16px;
        height: 16px;
    }

    .btn-text-always {
        font-size: 10px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */
.hidden {
    display: none !important;
}

/* Visually Hidden - For Screen Readers & SEO */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}
