/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100vh;
    background-color: #2c3e50;
    color: white;
    transition: left 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #34495e;
    border-bottom: 1px solid #1a252f;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ecf0f1;
}

.close-sidebar {
    background: none;
    border: none;
    color: #ecf0f1;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.close-sidebar:hover {
    background-color: #1a252f;
}

.sidebar-content {
    padding: 20px;
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section h4 {
    color: #bdc3c7;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #34495e;
}

.sidebar-button-row {
    margin-bottom: 10px;
    text-align: left;
}

.sidebar-btn {
    width: auto;
    min-width: 110px;
    max-width: 160px;
    padding: 10px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s, transform 0.1s;
    text-decoration: none;
    display: inline-block;
    text-align: left;
    white-space: nowrap;
}

.sidebar-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.sidebar-btn.button-bot {
    background-color: #27ae60;
}

.sidebar-btn.button-bot:hover {
    background-color: #219a52;
}

.sidebar-btn.button-tour-one {
    background-color: #e67e22;
}

.sidebar-btn.button-tour-one:hover {
    background-color: #d35400;
}

.sidebar-btn.button-survey-one,
.sidebar-btn.button-survey-two {
    background-color: #9b59b6;
}

.sidebar-btn.button-survey-one:hover,
.sidebar-btn.button-survey-two:hover {
    background-color: #8e44ad;
}

.sidebar-btn.button-help-center {
    background-color: #f39c12;
}

.sidebar-btn.button-help-center:hover {
    background-color: #e67e22;
}

.sidebar-btn.button-help-center-icon {
    background-color: white;
    border: 2px solid #ecf0f1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sidebar-btn.button-help-center-icon:hover {
    background-color: #f8f9fa;
    border-color: #bdc3c7;
    transform: translateY(-1px);
}

.help-icon {
    width: 24px;
    height: 24px;
    filter: invert(0);
}

.sidebar-link {
    display: inline-block;
    min-width: 110px;
    max-width: 160px;
    padding: 10px 16px;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
}

.sidebar-link:hover {
    background-color: #34495e;
    color: #3498db;
}

.sidebar-link.tour_link,
.sidebar-link.survey_link {
    color: #3498db;
}

.sidebar-link.tour_link:hover,
.sidebar-link.survey_link:hover {
    background-color: #34495e;
    color: #2980b9;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background-color: #2c3e50;
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.2s, left 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle:hover {
    background-color: #34495e;
}

.sidebar-toggle.shifted {
    left: 270px;
}

/* Main Content Area */
.main-content {
    transition: margin-left 0.3s ease;
    min-height: 100vh;
}

.main-content.shifted {
    margin-left: 250px;
}

/* Sidebar Overlay for mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.forms-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 20px auto;
    max-width: 1200px;
    flex-wrap: wrap;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Center the page header properly */
.about__display--row {
    text-align: center;
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 20px;
    box-sizing: border-box;
}



.form-column {
    flex: 1;
    max-width: 500px;
    min-width: 300px;
}

.form-container {
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.action-buttons {
    text-align: center;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.button-group {
    display: flex;
    gap: 10px;
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.submit-btn:hover {
    background-color: #45a049;
}

.clear-btn {
    background-color: #f44336;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.clear-btn:hover {
    background-color: #da190b;
}

.empty-update-btn, .shutdown-btn {
    background-color: #2196F3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 0 5px;
}

.empty-update-btn:hover {
    background-color: #1976D2;
}

.shutdown-btn {
    background-color: #FF5722;
}

.shutdown-btn:hover {
    background-color: #E64A19;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 250px;
        left: -250px;
    }

    .sidebar-toggle.shifted {
        left: 270px;
    }

    .main-content.shifted {
        margin-left: 0; /* Don't shift main content on mobile */
    }

    .forms-container {
        padding: 0 15px; /* Reduce padding on mobile */
    }

    .about__display--row {
        padding: 0 15px;
    }

    .sidebar-overlay {
        display: block;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        pointer-events: all;
    }
}

@media (max-width: 500px) {
    .forms-container {
        flex-direction: column;
        align-items: center;
        padding: 0 10px; /* Minimal padding on very small screens */
    }

    .form-column {
        width: 100%;
        max-width: 100%;
    }

    .about__display--row {
        padding: 0 10px;
    }

    .sidebar {
        width: 100%;
        left: -100%;
    }

    .sidebar-toggle {
        top: 10px;
        left: 10px;
        padding: 10px 12px;
    }

    .sidebar-toggle.shifted {
        left: 10px; /* Keep toggle in place on small screens */
    }

    .sidebar-btn,
    .sidebar-link {
        min-width: 90px;
        max-width: 85%;
        font-size: 13px;
    }

    .sidebar-btn.button-help-center-icon {
        width: 35px;
        height: 35px;
        min-width: 35px;
        max-width: 35px;
    }

    .help-icon {
        width: 20px;
        height: 20px;
    }
}

/* New tab and page two styles */
.congrats-container, .message-container {
    text-align: center;
    margin: 100px auto;
    max-width: 600px;
    padding: 20px;
}

.congrats-message {
    font-size: 2em;
    color: #4CAF50;
    margin-bottom: 20px;
}

.message {
    font-size: 2em;
    color: #000000;
    margin-bottom: 20px;
}

/* Color selector styles */
.color-selector {
    margin-top: 20px;
}

.color-selector select {
    padding: 8px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}

.color-selector select:hover {
    border-color: #2196F3;
}

/* Background color classes */
.bg-orange {
    background-color: #FFA500;
}

.bg-red {
    background-color: #FF4444;
}

.bg-green {
    background-color: #4CAF50;
}

.bg-blue {
    background-color: #2196F3;
}

/* Main page header styling moved above */

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Tour modal specific styles - stronger backdrop */
#tourModal {
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

/* Tour modal header specific styles */
.tour-modal-header {
    position: relative;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.tour-modal-header .close {
    position: absolute;
    top: 20px;
    right: 20px;
}

.tour-modal-header h3 {
    margin: 0 0 10px 0;
}

.tour-modal-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Track Event modal header specific styles */
.track-event-modal-header {
    position: relative;
    text-align: center;
    flex-direction: column;
    align-items: center;
}

.track-event-modal-header .close {
    position: absolute;
    top: 20px;
    right: 20px;
}

.track-event-modal-header h3 {
    margin: 0 0 10px 0;
}

.track-event-modal-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    background-color: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

.modal-body {
    padding: 20px;
}

.modal-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.modal-section-title {
    text-align: center;
    margin-bottom: 20px;
}

.modal-btn {
    background-color: #2196F3;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.modal-btn:hover {
    background-color: #1976D2;
}

/* Responsive modal styles */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-body {
        padding: 15px;
    }
}
