body,
html {
    height: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif;
    /* Using a modern font */
    background-color: #f8f9fa;
    /* Light background for the form side */
}

.login-container {
    height: 100vh;
    overflow: hidden;
}

.left-side {
    background-color: #ffffff;
    /* Match right side */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    /* 10px indentation */
    position: relative;
    overflow: hidden;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    /* Rounded corners for the image */
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Optional: adds a nice depth */
}

.left-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.right-side {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    /* Or a very light grey */
}

.login-form-container {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    transition: max-width 0.3s ease;
    /* Smooth transition for width change */
}

/* Wider container for registration */
#registerContainer {
    max-width: 800px;
}

.login-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    text-align: center;
}

.login-subtitle {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.form-control {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    /* margin-bottom: 1rem; Removed to reduce spacing */
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(2, 34, 34, 0.1);
    border-color: #022222;
}

.btn-primary {
    background-color: #022222;
    border-color: #022222;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
}

.btn-primary:hover {
    background-color: #033333;
    border-color: #033333;
}

.btn-outline-dark {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
}

.logo-overlay {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.logo-overlay img {
    max-width: 200px;
    /* Adjust as needed */
    height: auto;
    object-fit: contain;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .left-side {
        display: none;
        /* Hide image on smaller screens or stack it */
        /* Or make it a header */
    }

    .login-container {
        height: auto;
        min-height: 100vh;
    }

    .right-side {
        padding: 40px 20px;
        height: 100vh;
        overflow-y: auto;
        /* Allow scrolling on mobile if content is long */
    }
}

/* Custom Scrollbar for right side if needed */
.right-side {
    overflow-y: auto;
    max-height: 100vh;
}

.info-text ul {
    list-style-type: disc;
    padding-left: 1.2rem;
}

.info-text li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

textarea.form-control {
    resize: none;
}

.kvkk-link {
    color: #0d6efd;
    /* Bootstrap primary blue or custom blue */
    cursor: pointer;
    text-decoration: underline;
}

.kvkk-link:hover {
    color: #0a58ca;
}

/* =========================================
   Home Page Styles
   ========================================= */

body.home-body {
    background-color: #f6f6f6;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    width: 302px;
    background-color: #022222;
    /* Dark green */
    color: #ffffff;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    padding-top: 20px;
}

.sidebar-logo {
    padding: 0 20px;
    text-align: center;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Malgun Gothic', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Fallback */
    font-size: 16px;
    padding: 15px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(138, 180, 248, 0.1);
    /* Light green/blue tint on hover */
    color: #ffffff;
    border-left: 4px solid #8ab4f8;
    /* Accent line */
}

/* Main Content */
.main-content {
    margin-left: 302px;
    /* Width of sidebar */
    padding: 40px 50px;
    min-height: 100vh;
}

/* Header */
.header-section {
    margin-bottom: 20px;
    padding-left: 0;
    /* Align with progress bar padding */
}

.welcome-title {
    font-family: 'Malgun Gothic', sans-serif;
    font-size: 40px;
    color: #000000;
    font-weight: 400;
}

/* Progress Bar */
.progress-section {
    background-color: rgba(138, 180, 248, 0.3);
    /* Light blue base */
    padding: 13px 18px 11px 18px;
    margin-bottom: 0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    /* Ensure fill doesn't spill out */
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: rgba(138, 180, 248, 0.6);
    /* Darker blue for progress */
    width: 0%;
    transition: width 0.6s ease;
    z-index: 0;
}

.progress-container {
    position: relative;
    z-index: 1;
    /* Text on top */
    margin-bottom: 0 !important;
}

.progress-label,
.progress-percentage {
    font-family: 'Helvetica', sans-serif;
    font-weight: 700;
    /* Bold */
    font-size: 20px;
    color: rgba(0, 0, 0, 0.7);
    /* Black 70% opacity */
}

/* Questions */
.questions-container {
    padding-left: 0;
}

.question-card {
    margin-bottom: 40px;
    border-radius: 4px;
    /* overflow: hidden; Removed to allow tooltips to be visible */
}

.question-title {
    font-family: 'Helvetica', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #022222;
    /* Dark green */
    background-color: rgba(138, 180, 248, 0.3);
    /* Light blue from user request */
    margin-bottom: 0;
    /* Remove margin to connect with options */
    padding: 20px 18px;
    /* Add padding */
}

.options-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #ffffff;
    /* White background for answers */
    padding: 30px 18px;
    /* Add padding */
}

.option-item {
    cursor: pointer;
    padding: 5px 0;
}

.option-text {
    font-family: 'Malgun Gothic', sans-serif;
    font-size: 14px;
    color: #000000;
    line-height: 1.4;
}

/* Custom Radio Button */
.custom-radio {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border: 1px solid #022222;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    /* Prevent shrinking */
    background-color: #ffffff;
}

.custom-radio:checked {
    background-color: #022222;
    /* Fill with dark green when checked */
    box-shadow: inset 0 0 0 2px #ffffff;
    /* Inner white ring */
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .d-flex.h-100 {
        flex-direction: column;
    }

    /* Mobile Header */
    .mobile-header {
        background-color: #022222;
        /* Match sidebar color */
        border-bottom: 1px solid #033333;
        position: sticky;
        top: 0;
        z-index: 1020;
    }

    #sidebarToggle {
        color: #ffffff !important;
        /* White icon */
    }

    .mobile-logo img {
        max-height: 40px;
    }

    /* Off-canvas Sidebar */
    .sidebar {
        width: 280px;
        /* Standard mobile drawer width */
        height: 100vh;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1050;
        /* Above everything */
        transform: translateX(-100%);
        /* Hidden by default */
        transition: transform 0.3s ease-in-out;
        padding-top: 0;
        /* Reset padding */
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .sidebar.show {
        transform: translateX(0);
        /* Slide in */
    }

    .sidebar .nav-pills {
        flex-direction: column !important;
        /* Stack vertically again */
        overflow-x: visible;
        padding-bottom: 0;
        height: auto;
    }

    .sidebar .nav-link {
        white-space: normal;
        font-size: 18px;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Overlay when sidebar is open (optional, can be added via JS if needed, 
       but for now we just slide the menu over content) */

    .main-content {
        margin-left: 0;
        padding: 20px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .welcome-title {
        font-size: 24px;
        /* Smaller title on mobile */
        text-align: center;
        /* Center title */
        margin-top: 10px;
    }

    .header-section {
        padding-left: 0;
        margin-bottom: 15px;
        text-align: center;
    }

    .progress-section {
        padding: 15px;
        margin-bottom: 20px;
    }

    .progress-container {
        flex-direction: row;
        /* Keep horizontal on mobile */
        align-items: center;
        justify-content: space-between;
        /* Spread to edges */
        gap: 5px;
    }

    .progress-label,
    .progress-percentage {
        font-size: 16px;
    }

    .questions-container {
        padding-left: 0;
    }

    .question-card {
        margin-bottom: 20px;
    }

    .question-title {
        font-size: 16px;
        padding: 15px;
        line-height: 1.4;
    }

    .options-list {
        padding: 15px;
        gap: 10px;
    }

    .option-text {
        font-size: 14px;
        /* Smaller text for options */
    }

    .sidebar-logo img {
        max-height: 40px;
        /* Limit logo size on mobile */
        width: auto;
    }
}

/* Sticky Header Styles */
/* Sticky Header Styles */
#sticky-header {
    position: sticky;
    top: 0;
    z-index: 1020;
    background-color: #f6f6f6;
    /* Match body background */
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Smoother easing */
    padding-bottom: 10px;
    margin-bottom: 10px;
}

#sticky-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* Title Transition */
.welcome-title {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Shrink title on scroll */
#sticky-header.scrolled .welcome-title {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Progress Section Transition */
.progress-section {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Shrink progress bar on scroll */
#sticky-header.scrolled .progress-section {
    padding: 8px 15px;
    margin-bottom: 10px;
}

/* Progress Text Transition */
.progress-label,
.progress-percentage {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

#sticky-header.scrolled .progress-label,
#sticky-header.scrolled .progress-percentage {
    font-size: 16px;
}

/* Sticky Section Title */
.sticky-section-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    padding: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.sticky-section-title::before,
.sticky-section-title::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid;
    opacity: 0.5;
}

/* Section Colors for Sticky Header Lines */
.sticky-section-title[data-section="section-governance"]::before,
.sticky-section-title[data-section="section-governance"]::after {
    border-color: #0061FF;
}

.sticky-section-title[data-section="section-strategy"]::before,
.sticky-section-title[data-section="section-strategy"]::after {
    border-color: #00BC9B;
}

.sticky-section-title[data-section="section-risk"]::before,
.sticky-section-title[data-section="section-risk"]::after {
    border-color: #000000;
}

.sticky-section-title[data-section="section-metrics"]::before,
.sticky-section-title[data-section="section-metrics"]::after {
    border-color: #FD5750;
}

#sticky-header.scrolled .sticky-section-title {
    padding: 5px 0;
    height: auto;
    opacity: 1;
    margin-top: 5px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Tooltip Styles */
.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-text {
    visibility: hidden;
    width: 300px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    top: 135%;
    /* Position below */
    right: 0;
    /* Align to right edge */
    left: auto;
    /* Reset left */
    margin-left: 0;
    /* Reset margin */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tooltip-text::after {
    content: "";
    position: absolute;
    bottom: 100%;
    /* Arrow at top */
    right: 10px;
    /* Align arrow to right */
    left: auto;
    /* Reset left */
    margin-left: 0;
    /* Reset margin */
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
    /* Point up */
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.progress-ring {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.progress-ring__circle {
    stroke-dasharray: 126;
    /* 2 * PI * 20 */
    stroke-dashoffset: 126;
    transition: stroke-dashoffset 0.1s;
    stroke: #022222;
    /* Dark Green */
}

.scroll-text {
    position: absolute;
    font-size: 12px;
    font-weight: 700;
    color: #022222;
}

.scroll-arrow {
    position: absolute;
    font-size: 20px;
    color: #022222;
    font-weight: bold;
}

/* Survey History Page Styles */
.history-page-wrapper {
    padding: 43px 40px;
    /* Top padding approx 43px, side padding */
    margin-left: 0;
    width: 100%;
    max-width: 1400px;
    /* Limit width for large screens */
}

.history-title {
    font-family: 'Malgun Gothic', 'Segoe UI', sans-serif;
    font-size: 40px;
    color: #000000;
    margin-bottom: 40px;
    font-weight: 400;
}

.history-table-container {
    background-color: #F0F4FA;
    /* Light blueish background */
    padding: 30px;
    border-radius: 8px;
}

.history-header-row {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    margin-bottom: 15px;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
}

.col-name {
    flex: 2;
    /* Takes more space */
    text-align: left;
}

.col-date {
    flex: 1;
    text-align: center;
}

.col-download {
    flex: 1;
    text-align: right;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    background-color: #FFFFFF;
    /* White background for rows */
    width: 100%;
    height: 60px;
    /* Taller rows */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-family: 'Malgun Gothic', 'Segoe UI', sans-serif;
    font-size: 16px;
    color: #000000;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    border: 1px solid transparent;
    /* Prevent layout shift */
    transition: border-color 0.2s ease;
}

.history-item:hover {
    border-color: #022222;
}

.history-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.swal2-title{
    font-size: 1.5em !important;
}