﻿body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: url('/images/BG.png') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    backdrop-filter: blur(10px);
    width: 80%; /* Increased width */
    max-width: 900px; /* Adjust max width */
    height: auto;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80%;
    max-width: 900px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 20px;
}

h2 {
    text-align: center;
    color: #fff;
}

.right-panel h2 {
    color: #14456c;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.popup-content h2,
.popup-content h3 {
    color: #14456c;
    font-weight: bold;
    text-align: center;
}

.next-button {
    width: 90%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    margin-top: 20px;
    cursor: pointer;
    display: block;
    text-align: center;
}

    .next-button:hover {
        background-color: #0056b3;
    }

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    z-index: 1000;
    opacity: 1;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
}
.popupContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3); /* dim background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.popup-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    position: relative;
}

    .popup-content h3 {
        color: #14456c;
        font-size: 18px;
        margin-bottom: 10px;
        text-align: center;
    }

    .popup-content p {
        font-size: 12px;
        margin-bottom: 10px;
        text-align: center;
    }

    .popup-content ul {
        list-style: none;
        padding: 0;
    }

        .popup-content ul li {
            padding: 5px;
            font-size: 14px;
            text-align: left;
        }

.close-btn {
    position: absolute;
    top: 10px; /* Adjust top position */
    right: 10px; /* Adjust right position */
    cursor: pointer;
    font-size: 16px; /* Reduced font size to accommodate text */
    display: flex; /* Use flexbox for layout */
    align-items: center; /* Align items vertically */
}

    .close-btn::before {
        content: "X Close"; /* Add "Close" text */
        margin-right: 5px; /* Add some space between 'X' and 'Close' */
    }



label {
    color: #fff;
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

select {
    width: auto;
    min-width: 250px;
    max-width: 350px;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.dropdown {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.selection-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    width: 300px;
    text-align: left;
    backdrop-filter: blur(10px);
}

.left-panel {
    flex: 1;
    color: white;
    font-size: 26px;
    font-weight: bold;
    text-align: left;
    padding-left: 40px;
}

.right-panel {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.logo {
    width: 150px;
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    width: 200px;
    max-width: 250px;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    margin-top: 20px;
    cursor: pointer;
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

    button:hover {
        background-color: #002244;
    }

.error-message {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
}

/* ✅ Session Card Styling */
#sessionHistorySection {
    margin-top: 20px;
    padding: 10px;
}

/* ✅ Session Cards Styling */

#sessionHistory {
    margin-top: 30px;
    padding: 10px;
}

.session-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .session-card.active {
        border-left: 5px solid #28a745;
    }

    .session-card h4 {
        margin: 0;
        font-size: 1.1rem;
        color: #333;
    }

    .session-card .details {
        font-size: 0.9rem;
        color: #555;
    }

    .session-card .status {
        font-weight: bold;
        color: #007bff;
        margin-right: 10px;
    }

    .session-card .abort-btn {
        background-color: #dc3545;
        color: #fff;
        border: none;
        padding: 6px 12px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.85rem;
    }

        .session-card .abort-btn:hover {
            background-color: #c82333;
        }

#sessionHistory .empty-state {
    text-align: center;
    font-style: italic;
    color: #888;
    margin-top: 20px;
}

/* ==== Compact upload UI ==== */
.set-card {
    border: 1px solid #e6e8ef;
    border-radius: 10px;
    padding: 18px 20px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(16,24,40,.06);
    margin-bottom: 16px;
}

    .set-card .set-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
    }

.set-title {
    font-weight: 600;
    font-size: 1rem;
    color: #0d6efd; /* Bootstrap primary blue (like prod) */
}

.remove-set-btn {
    border: 1px solid #f1b0b7;
    background: #fff;
    color: #dc3545;
    font-size: .85rem;
    line-height: 1.2;
    padding: 4px 10px;
    border-radius: 6px;
}

    .remove-set-btn:hover {
        background: #fff5f5;
    }

.add-set-btn {
    display: inline-block;
    margin: 2px 0 14px;
    padding: 6px 14px;
    border-radius: 8px;
}

.form-section-label {
    color: #0d6efd; /* section labels in prod color */
    font-weight: 600;
    margin: 14px 0 6px;
}

/* Compact file input look */
.compact-file.form-control {
    height: 36px; /* smaller height */
    padding: 6px 10px;
    font-size: .92rem;
    max-width: 520px; /* reduce width similar to prod */
}

.file-upload-group {
    max-width: 520px;
}

.file-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.add-file-btn {
    margin-top: 6px;
    padding: 6px 12px !important;
}

.delete-file-btn {
    border: none;
    background: transparent;
    color: #dc3545;
    font-size: 18px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
}

.error-message {
    display: block;
    margin-top: 4px;
    color: #dc3545;
    font-size: .85rem;
}

/* Make URL/Username/Password also compact */
.urlInput.form-control,
.usernameInput.form-control,
.passwordInput.form-control,
.startDateInput.form-control,
.endDateInput.form-control {
    height: 36px;
    padding: 6px 10px;
    font-size: .92rem;
    max-width: 520px;
}
.field-label {
    color: #004085; /* Prod blue shade */
    font-weight: 600;
    display: inline-block;
    margin-bottom: 4px;
}
