
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #f8f9fa;
    --accent-color: #17a2b8;
    --text-primary: #2c3e50;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Modern Header */
#header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.logo a {
    color: var(--primary-color) !important;
    font-weight: 800;
    font-size: 1.8rem;
    text-decoration: none;
}

.navbar ul li a {
    color: var(--text-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.navbar ul li a:hover {
    color: var(--primary-color) !important;
    background: rgba(44, 90, 160, 0.1);
}

/* Technical Section - Fixed container */
#technical {
    width: 100%;
    max-width: 100vw; /* Prevent overflow */
    padding: 80px 0 40px;
    background: transparent;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px; /* Increased padding for mobile */
    width: 100%;
}

/* Fixed row layout */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    width: 100%;
}

.col-lg-6, .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
    margin-bottom: 2rem;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
    padding: 0 15px;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

.offset-md-2 {
    margin-left: 16.666667%;
}

.main-title {
    text-align: center;
    margin-bottom: 4rem;
    color: white;
    padding: 0 20px;
}

.main-title h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.main-title p {
    font-size: 1.3rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Content Cards - Fixed sizing */
.content-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    width: 100%;
    height: fit-content;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.content-card h1 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.content-card h1::before {
    content: '';
    width: 4px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    flex-shrink: 0;
}

/* Phase Sections */
.phase-section {
    background: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    width: 100%;
}

.phase-section:hover {
    background: #e9ecef;
    border-left-color: var(--accent-color);
}

.phase-section h2 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phase-section h2::before {
    content: counter(phase-counter);
    counter-increment: phase-counter;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.content-card {
    counter-reset: phase-counter;
}

/* Image Styling - FIXED */
.img-responsive {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    display: block;
    object-fit: contain; /* Maintain aspect ratio */
}

.img-responsive:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-medium);
}

/* Image container to prevent overflow */
.image-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Status Indicators */
.status-list {
    background: #e8f4f8;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin: 1rem 0;
    width: 100%;
}

.status-list ul {
    margin: 0;
    padding-left: 1.5rem;
}

.status-list li {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.status-list code {
    background: var(--primary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Responsive Design - IMPROVED */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    .main-title h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .offset-md-2 {
        margin-left: 0;
    }

    .main-title h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    #technical {
        padding: 60px 0 20px;
    }

    .container {
        padding: 0 10px;
    }

    .row {
        margin: 0 -10px;
    }

    .col-lg-6, .col-md-6, .col-md-8, .col-md-12 {
        padding: 0 10px;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .content-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .content-card h1 {
        font-size: 1.8rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .content-card h1::before {
        width: 100%;
        height: 4px;
    }

    .main-title {
        padding: 0 10px;
    }

    .main-title h2 {
        font-size: 2rem;
    }

    .main-title p {
        font-size: 1.1rem;
    }

    .phase-section {
        padding: 1.5rem;
    }

    .phase-section h2 {
        font-size: 1.2rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 5px;
    }

    .content-card {
        padding: 1rem;
    }

    .main-title h2 {
        font-size: 1.8rem;
    }

    .phase-section {
        padding: 1rem;
    }

    .status-list {
        padding: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}


.select,
#locale {
    width: 100%;
}

.like {
    margin-right: 10px;
}

html {
    background: #373737;
    font-family: 'Playfair Display SC', serif;
}

.wave_background {
    background-color: darkgray;
}

.btn {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 10px;
}

.btns {
    border: none;
    font-family: 'Lato';
    font-size: 15px;
    color: inherit;
    background: none;
    cursor: pointer;
    padding: 15px 20px;
    display: inline-block;
    margin: 15px 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    outline: none;
    position: relative;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

.btn:after {
    content: '';
    position: absolute;
    z-index: -1;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}

/* Pseudo elements for icons */
.icon {
    display: inline-block;
    font-size: inherit;
    height: 1em;
    width: 1em;
    overflow: visible;
    vertical-align: -.125em;
    text-rendering: auto;
}

.btn:before {
    font-family: 'FontAwesome';
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    position: relative;
    -webkit-font-smoothing: antialiased;
}


/* Icon separator */
.btn-sep {
    padding: 25px 60px 25px 120px;
}

.btn-sep:before {
    background: rgba(0, 0, 0, 0.15);
}

/* Button 1 */
.btn-1 {
    background: #3498db;
    color: #fff;
}

.btn-1:hover {
    background: #fff;
    color: #000;
}

.btn-1:active {
    background: #2980b9;
    top: 2px;
}

.btn-1:before {
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    line-height: 3;
    font-size: 140%;
    width: 60px;
}

/* Button 2 */
.btn-2 {
    background: #2ecc71;
    color: #fff;
}

.btn-2:hover {
    background: #27ae60;
    color: #fff;
}

.btn-2:active {
    background: #27ae60;
    top: 2px;
}

.btn-2:before {
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    line-height: 3;
    font-size: 140%;
    width: 60px;
}

/* Button 3 */
.btn-3 {
    background: #e74c3c;
    color: #fff;
}

.btn-3:hover {
    background: #c0392b;
}

.btn-3:active {
    background: #c0392b;
    top: 2px;
}

.btn-3:before {
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    line-height: 3;
    font-size: 140%;
    width: 60px;
}

/* Button 3 */
.btn-4 {
    background: #34495e;
    color: #fff;
}

.btn-4:hover {
    background: #fff;
    color: #000;
}

.btn-4:active {
    background: #2c3e50;
    top: 2px;
}

.btn-4:before {
    position: absolute;
    height: 100%;
    left: 0;
    top: 0;
    line-height: 3;
    font-size: 140%;
    width: 60px;
}

.infoImage {
    height: 16px;
    width: 16px;
    cursor: pointer;
}

/* Icons */

.icon-cart:before {
    content: "\f07a";
}

.icon-heart:before {
    content: "\f55a";
}

.icon-info:before {
    content: "\f05a";
}

.icon-send:before {
    content: "\f1d8";
}

.btn-vs {
    padding: 1px 4px;
    font-size: 10px;
    line-height: 1.25;
    border-radius: 2px
}

.btn-xs {
    padding: 1px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px
}

.btn-s {
    padding: 1px 6px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 6px
}

.rcorner {
    border-radius: 15px;
    border: 2px solid #73AD21;
    padding: 10px;
    width: 80px;
    height: 5px;
}

tfoot input {
    width: 100%;
    padding: 3px;
    box-sizing: border-box;
}

td.details-control {
    background: url('resources/details_open.png') no-repeat center center;
    cursor: pointer;
}

tr.shown td.details-control {
    background: url('resources/details_close.png') no-repeat center center;
}

.ad_background {
    background: #99ccff;
}

.jumbotron {
    background-color: #FFFFFF !important;
}

.wave_background {
    background-color: darkgray;
}

.control_background {
    background-color: darkgray;
}

.doc_background {
    background: #eeeef9;
}

.filter_background {
    background: #eeeef8;
}

.dark_background {
    background: #040404;
}

.inputField {
    font-size: 10px;
    padding-top: 3px;
    padding-bottom: 3px;
}

#loading_flag {
    position: absolute;
    display: block;
    top: 10%;
    left: 5%;
    width: auto;
    padding: 20px;
    background-color: darkgray;
    text-align: left;
    font-family: Verdana, Geneva, sans-serif;
    height: 10px;
}


/* Customize the label (the container) */
.cbcontainer {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Hide the browser's default checkbox */
.cbcontainer input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
}

/* On mouse-over, add a grey background color */
.cbcontainer:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.cbcontainer input:checked ~ .checkmark {
    background-color: #2196F3;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.cbcontainer input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.cbcontainer .checkmark:after {
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.nav-tabs {
    border-bottom: 2px solid #DDD;
}

.nav-tabs > li.active > a, .nav-tabs > li.active > a:focus, .nav-tabs > li.active > a:hover {
    border-width: 0;
}

.nav-tabs > li > a {
    border: none;
    color: #ffffff;
    background: #5a4080;
}

.nav-tabs > li.active > a, .nav-tabs > li > a:hover {
    border: none;
    color: #5a4080 !important;
    background: #fff;
}

.nav-tabs > li > a::after {
    content: "";
    background: #5a4080;
    height: 2px;
    position: absolute;
    width: 100%;
    left: 0px;
    bottom: -1px;
    transition: all 250ms ease 0s;
    transform: scale(0);
}

.nav-tabs > li.active > a::after, .nav-tabs > li:hover > a::after {
    transform: scale(1);
}

.tab-nav > li > a::after {
    background: #5a4080 none repeat scroll 0% 0%;
    color: #fff;
}

.tab-pane {
    padding: 15px 0;
}

.tab-content {
    padding: 20px
}

.nav-tabs > li {
    width: 20%;
    text-align: center;
}

.card {
    background: #FFF none repeat scroll 0% 0%;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

@media all and (max-width: 724px) {
    .nav-tabs > li > a > span {
        display: none;
    }

    .nav-tabs > li > a {
        padding: 5px 5px;
    }

    .graph_container {
        display: block;
        width: 400px;
    }
}
