﻿body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            margin: 0;
            padding: 0;
            align-items: center;
            min-height: 100vh;
        }
        .main-cont{
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .container {
            background: white;
            padding: 2rem;
            width: 100%;
            max-width: 550px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border-radius: 15px;
            text-align: center;
            margin: 20px;
        }

        .logo {
            width: 180px;
            margin-bottom: 20px;
            transition: transform 0.3s ease;
        }

            .logo:hover {
                transform: scale(1.05);
            }

        h2 {
            color: #2c3e50;
            font-size: 24px;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 10px;
        }

            h2::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 25%;
                width: 50%;
                height: 3px;
                background: linear-gradient(90deg, transparent, #0056b3, transparent);
            }

            h2 strong {
                color: #0056b3;
                font-size: 26px;
                text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
            }

        /* Form Styles */
        .form {
            display: flex;
            flex-direction: column;
        }

        label {
            text-align: left;
            margin: 12px 0 6px;
            font-weight: 600;
            color: #444;
            font-size: 15px;
            display: flex;
            align-items: center;
        }

            label i {
                margin-right: 8px;
                color: #0056b3;
                width: 20px;
                text-align: center;
            }

        input,
        select {
            padding: 12px 14px;
            font-size: 16px;
            border: 1px solid #ddd;
            border-radius: 8px;
            width: 100%;
            transition: all 0.3s ease;
            box-sizing: border-box;
            background: #fff;
        }

            input:focus,
            select:focus {
                outline: none;
                border-color: #0056b3;
                box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
            }

        .file-input {
            border: 2px dashed #ddd;
            background: #f8f9fa;
            padding: 20px 15px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

            .file-input:hover {
                border-color: #0056b3;
                background: #f0f7ff;
            }

        button {
            background: linear-gradient(135deg, #0056b3 0%, #0a4b97 100%);
            color: white;
            font-size: 16px;
            border: none;
            padding: 14px;
            cursor: pointer;
            margin-top: 20px;
            border-radius: 8px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
        }

            button i {
                margin-right: 8px;
            }

            button:hover {
                background: linear-gradient(135deg, #004099 0%, #003578 100%);
                transform: translateY(-2px);
                box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
            }

            button:active {
                transform: translateY(0);
            }

        /* Messages */
        .success-message {
            color: #28a745;
            font-weight: bold;
            background: #e8f5e9;
            padding: 10px;
            border-radius: 8px;
            margin: 10px 0;
            border-left: 4px solid #28a745;
        }

        .error-message {
            color: #dc3545;
            font-weight: bold;
            background: #fff5f5;
            padding: 10px;
            border-radius: 8px;
            margin: 10px 0;
            border-left: 4px solid #dc3545;
        }

        /* Modal Styles */
        .modal-overlay {
            display: none; /* Hidden by default */
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 99;
            backdrop-filter: blur(3px);
        }

        .modal-container {
            display: none; /* Hidden by default */
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 90%;
            max-width: 500px;
            background: white;
            color: black;
            padding: 20px;
            border-radius: 12px;
            z-index: 100;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            animation: fadeIn 0.3s ease-in-out;
            flex-direction: column;
            max-height: 80vh;
            overflow: hidden;
        }

        .modal-header {
            border-bottom: 1px solid #eee;
            padding-bottom: 12px;
            margin-bottom: 15px;
        }

            .modal-header h3 {
                margin: 0;
                color: #0056b3;
                font-size: 20px;
            }

        .modal-body {
            flex: 1;
            overflow-y: auto;
            padding-bottom: 15px;
        }

        .close-button {
            position: absolute;
            top: 15px;
            right: 15px;
            background: none;
            border: none;
            font-size: 20px;
            cursor: pointer;
            color: #0056b3;
            transition: all 0.3s ease;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

            .close-button:hover {
                color: #dc3545;
                background: #f8f9fa;
                transform: scale(1.1);
            }

        /* Test Selection Table */
        #searchTest {
            border: 1px solid #ddd;
            padding: 12px;
            border-radius: 8px;
            font-size: 15px;
            margin-bottom: 15px;
            width: 100%;
            box-sizing: border-box;
        }

            #searchTest:focus {
                outline: none;
                border-color: #0056b3;
                box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.2);
            }

        .test-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            background: white;
            color: black;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }

            .test-table th {
                background: #0056b3;
                color: white;
                padding: 12px;
                text-align: left;
                font-weight: 600;
            }

            .test-table td {
                padding: 12px;
                border-bottom: 1px solid #eee;
                text-align: left;
            }

            .test-table tr:last-child td {
                border-bottom: none;
            }

            .test-table tr:hover {
                background-color: #f8f9fa;
            }

            .test-table tbody tr:nth-child(odd) {
                background-color: #f8f9fa;
            }

            .test-table input[type="checkbox"] {
                width: 18px;
                height: 18px;
                cursor: pointer;
            }

        .confirm-button-container {
            width: 100%;
            padding: 15px;
            border-top: 1px solid #eee;
            text-align: center;
            background: white;
        }

        #openModalBtn {
            background: linear-gradient(135deg, #0056b3 0%, #0a4b97 100%);
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

            #openModalBtn:hover {
                background: linear-gradient(135deg, #004099 0%, #003578 100%);
                transform: translateY(-2px);
            }

        .btn-open-modal {
            background: linear-gradient(135deg, #0056b3 0%, #0a4b97 100%);
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            transition: all 0.3s ease;
            width: 100%;
            margin-top: 15px;
        }

            .btn-open-modal:hover {
                background: linear-gradient(135deg, #004099 0%, #003578 100%);
                transform: translateY(-2px);
            }

        /* Selected Tests Display */
        #selectedTestDisplay {
            margin-top: 15px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            text-align: left;
            border: 1px solid #ddd;
            max-height: 150px;
            overflow-y: auto;
        }

            #selectedTestDisplay h3 {
                margin-top: 0;
                color: #0056b3;
                font-size: 18px;
                border-bottom: 1px solid #ddd;
                padding-bottom: 8px;
                margin-bottom: 10px;
            }

            .text-sm{
                font-size:12px;
            }

        /* Animations */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translate(-50%, -55%);
            }

            to {
                opacity: 1;
                transform: translate(-50%, -50%);
            }
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .container {
                padding: 1.5rem;
                margin: 15px;
            }

            h2 {
                font-size: 20px;
            }

                h2 strong {
                    font-size: 22px;
                }

            input, select, button {
                padding: 10px;
                font-size: 15px;
            }

            .modal-container {
                width: 95%;
                max-height: 85vh;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 1rem;
                margin: 10px;
            }

            label {
                font-size: 14px;
            }

            input, select, button {
                padding: 8px;
                font-size: 14px;
            }

            .test-table th, .test-table td {
                padding: 8px;
                font-size: 14px;
            }
        }