﻿:root {
    --primary-color: #2c6693;
    --primary-dark: #1e4a6e;
    --primary-light: #3a7bb9;
    --secondary-color: #f57c00;
    --accent-color: #4caf50;
    --primary-gradient: linear-gradient(135deg, #2c6693 0%, #1e4a6e 100%);
    --secondary-gradient: linear-gradient(135deg, #f57c00 0%, #ff9800 100%);
    --success-gradient: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    --dark-bg: #1a1d2e;
    --card-bg: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 4px rgba(44, 102, 147, 0.08);
    --shadow-md: 0 4px 6px rgba(44, 102, 147, 0.12);
    --shadow-lg: 0 10px 25px rgba(44, 102, 147, 0.15);
    --shadow-xl: 0 20px 40px rgba(44, 102, 147, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    min-height: 100vh;
    color: var(--text-primary);
}

/* Modern Navbar */
/* Modern Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    position: relative;
}

    .navbar-brand::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary-gradient);
        transition: width 0.3s ease;
    }

    .navbar-brand:hover::after {
        width: 100%;
    }

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.25rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

    .nav-link:hover {
        color: var(--primary-color) !important;
        background: rgba(44, 102, 147, 0.1);
        transform: translateY(-1px);
    }

    .nav-link.active {
        background: var(--primary-gradient);
        color: white !important;
        box-shadow: var(--shadow-md);
    }

/* User Info Label */
.nav-item label.nav-link {
    background: rgba(44, 102, 147, 0.1);
    border: 1px solid rgba(44, 102, 147, 0.2);
    color: var(--primary-dark) !important;
    font-weight: 600;
}

/* Container */
.container {
    max-width: 1400px;
}

main {
    padding: 2rem 0 4rem 0;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Footer */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.05) !important;
    padding: 0;
    margin-top: 4rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

    .footer a {
        color: #667eea;
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s ease;
        position: relative;
    }

        .footer a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-gradient);
            transition: width 0.3s ease;
        }

        .footer a:hover {
            color: #764ba2;
        }

            .footer a:hover::after {
                width: 100%;
            }

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .nav-link {
        margin: 0.25rem 0;
    }

    main {
        padding: 1rem 0 2rem 0;
    }
}

/* Navbar Toggler */
.navbar-toggler {
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

    .navbar-toggler:hover {
        background: rgba(102, 126, 234, 0.1);
        border-color: #667eea;
        transform: scale(1.05);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
        outline: none;
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23667eea' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}





/* Page Header */
.page-header {
    background: var(--primary-gradient);
    color: white;
    padding: 3rem 0;
    margin: -2rem -1.5rem 3rem -1.5rem;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}

    .page-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    }

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.header-icon {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    opacity: 0.3;
}

/* Cards */
.config-card, .info-card, .stats-card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

    .config-card:hover, .info-card:hover, .stats-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }

.card-header {
    background: var(--primary-gradient);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-body {
    padding: 2rem;
}

/* Form Elements */
.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.modern-select {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

    .modern-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(44, 102, 147, 0.1);
        outline: none;
    }

/* Buttons */
.btn-load {
    background: var(--primary-gradient);
    border: none;
    border-radius: 10px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .btn-load:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }

    .btn-load:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

.btn-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Info Items */
.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

    .info-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.info-icon {
    background: rgba(44, 102, 147, 0.1);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.info-content h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.info-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Stats */
.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Results Container */
.results-container {
    min-height: 400px;
    transition: all 0.3s ease;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0;
        text-align: center;
    }

    .header-icon {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-top: 1rem;
        font-size: 3rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .card-body {
        padding: 1.5rem;
    }
}



/* Console Style for Run Log - No Classes Needed */
#runLog {
    background: #282828;
    color: #fff;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1;
    padding: 5px;
    border-radius: 3px;
    border: 1.5px solid #000;
    max-height: 500px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    position: relative;
}

    #runLog div {
        margin-bottom: 8px;
        padding: 10px;
        border: 2px solid black transparent;
        transition: all 0.3s ease;
    }

    #runLog::-webkit-scrollbar {
        width: 8px;
    }

    #runLog::-webkit-scrollbar-track {
        background: rgba(44, 102, 147, 0.1);
        border-radius: 4px;
    }

    #runLog::-webkit-scrollbar-thumb {
        background: #2c6693;
        border-radius: 4px;
    }

        #runLog::-webkit-scrollbar-thumb:hover {
            background: #3a7bb9;
        }

    /* Blinking cursor effect for the entire console */
    #runLog::after {
        content: '▊';
        animation: blink 1s infinite;
        color: #f57c00;
        margin-left: 2px;
    }

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }

    51%, 100% {
        opacity: 0;
    }
}


/* Mobile responsive */
@media (max-width: 768px) {
    #runLog {
        font-size: 12px;
        padding: 15px;
        max-height: 400px;
    }
}

/* Print styles */
@media print {
    #runLog {
        background: white;
        color: black;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}






/* Main Container */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(44, 102, 147, 0.3);
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
}

/* Form Styles */
.login-form {
    margin-bottom: 2rem;
}



.modern-input {
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 1rem 2rem;
    background: white;
    width: 100%;
}

    .modern-input:focus {
        border-color: var(--bs-primary);
        box-shadow: 0 0 0 3px rgba(44, 102, 147, 0.1);
        outline: none;
        transform: translateY(-2px);
    }

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
}

    .password-toggle:hover {
        color: var(--bs-primary);
    }

/* Validation */
.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.alert-validation {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text-secondary);
}

    .checkbox-container input {
        display: none;
    }

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

    .checkbox-container input:checked + .checkmark::after {
        content: '✓';
        position: absolute;
        color: white;
        font-size: 12px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

.forgot-password {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .forgot-password:hover {
        color: var(--bs-primary-dark);
        text-decoration: underline;
    }

/* Login Button */
.login-btn {
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .login-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(44, 102, 147, 0.4);
    }

    .login-btn:active {
        transform: translateY(0);
    }

.btn-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Message Alert */
.message-alert {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Footer */
.login-footer {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.signup-link {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
}

    .signup-link:hover {
        text-decoration: underline;
    }

/* Background Shapes */
.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.1;
}



/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }

    .login-card {
        padding: 2rem;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }

    .login-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}
