/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 10;
}

/* Login Card */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-size: 200% 100%;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.logo i {
    font-size: 2.5rem;
    color: #667eea;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin: 0;
}

.subtitle {
    color: #718096;
    font-size: 1rem;
    font-weight: 400;
}

/* Form Styles */
.login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group label i {
    color: #667eea;
    font-size: 0.8rem;
}

.form-group input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
    color: #2d3748;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #a0aec0;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.password-toggle:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a5568;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-bottom: 2rem;
}

.login-footer p {
    color: #718096;
    font-size: 0.9rem;
}

.signup-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.signup-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* Social Login */
.social-login {
    text-align: center;
}

.divider {
    color: #a0aec0;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e2e8f0;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn.google:hover {
    border-color: #ea4335;
    color: #ea4335;
}

.social-btn.github:hover {
    border-color: #333;
    color: #333;
}

/* Background Decoration */
.background-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float-shape 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float-shape {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.3;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.6;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .logo h1 {
        font-size: 1.75rem;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .login-card {
        padding: 1.5rem 1rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Success/Error States */
.form-group.success input {
    border-color: #48bb78;
    background: #f0fff4;
}

.form-group.error input {
    border-color: #f56565;
    background: #fff5f5;
}

.error-message {
    color: #f56565;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.success-message {
    color: #48bb78;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Test Suite Page Styles */
.text-gray-800 {
    color: #2d3748 !important;
}

.text-gray-600 {
    color: #4a5568 !important;
}

.text-gray-500 {
    color: #718096 !important;
}

.text-gray-300 {
    color: #cbd5e0 !important;
}

.border-4 {
    border-width: 4px !important;
}

.border-start {
    border-left-style: solid !important;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.bg-success {
    background-color: #48bb78 !important;
}

.bg-warning {
    background-color: #ed8936 !important;
}

.bg-danger {
    background-color: #f56565 !important;
}

.suite-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: rgba(66, 153, 225, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4299e1;
}

.btn-light {
    background-color: #f7fafc;
    border-color: #edf2f7;
}

.btn-light:hover {
    background-color: #edf2f7;
    border-color: #e2e8f0;
}

.input-group-text {
    background-color: transparent;
}

.form-control:focus {
    box-shadow: none;
    border-color: #4299e1;
}

.table > :not(caption) > * > * {
    padding: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

.breadcrumb-item a {
    color: #4a5568;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #2d3748;
}

.toast {
    background-color: white;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.toast-success {
    background-color: #48bb78 !important;
}

.toast-error {
    background-color: #f56565 !important;
}

/* Toast Container Positioning */
#toast-container {
    position: fixed !important;
    top: 30px !important;
    right: 30px !important;
    z-index: 9999 !important;
    pointer-events: none;
}
#toast-container > div {
    pointer-events: auto;
    margin-bottom: 10px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
    max-width: 350px !important;
}
/* Toast positioning for main content area */
.main-content #toast-container {
    right: 40px !important;
    left: auto !important;
}
@media (max-width: 768px) {
    #toast-container {
        top: 10px !important;
        right: 10px !important;
        left: 10px !important;
        max-width: none !important;
    }
    #toast-container > div {
        max-width: none !important;
    }
}

.modal-sm {
    max-width: 400px;
}

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.btn-close:focus {
    box-shadow: none;
}

.was-validated .form-control:invalid:focus {
    box-shadow: none;
}

@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table > :not(caption) > * > * {
        padding: 0.75rem;
    }
    
    .suite-icon {
        width: 32px;
        height: 32px;
    }
}

/* DataTable Customization */
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
}

.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_info {
    color: #718096;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.375rem 0.75rem;
    margin-left: 0.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #4299e1;
    border-color: #4299e1;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #ebf4ff;
    border-color: #4299e1;
    color: #2b6cb0 !important;
}

/* Table Styles */
.table {
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 2px solid #e2e8f0;
    color: #4a5568;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.table tbody td {
    vertical-align: middle;
    color: #2d3748;
    font-size: 0.875rem;
}

/* Button Groups */
.btn-group {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    overflow: hidden;
}

.btn-group .btn {
    border: none;
    padding: 0.375rem 0.75rem;
    transition: all 0.2s;
}

.btn-group .btn:hover {
    transform: translateY(-1px);
}

/* Modal Customization */
.modal-content {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 1.25rem;
}

/* Form Controls */
.form-control {
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* Loading Spinner */
.spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.2em;
}

/* Toast Notifications */
.toast-success {
    background-color: #48bb78 !important;
}

.toast-error {
    background-color: #f56565 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .card-header .btn {
        margin-top: 1rem;
        width: 100%;
    }
    
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .dataTables_wrapper .dataTables_filter input {
        margin-left: 0;
        width: 100%;
    }
    
    .btn-group {
        display: flex;
        width: 100%;
    }
    
    .btn-group .btn {
        flex: 1;
    }
}

/* Error states */
.form-group input.error {
    border-color: #f56565;
    box-shadow: 0 0 0 1px #f56565;
}

.form-group input.error:focus {
    border-color: #f56565;
    box-shadow: 0 0 0 2px rgba(245, 101, 101, 0.2);
}

/* Alert styling */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert-danger {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #feb2b2;
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Loading button states */
.login-btn {
    position: relative;
    min-height: 42px;
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Notification animations */
.notification {
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Sidebar Styles */
.sidebar {
    background: #2c3e50;
    height: 100vh;
    padding-top: 20px;
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    scroll-behavior: smooth;
    transition: opacity 0.2s ease;
}

/* Visual indicator when sidebar is restoring position */
.sidebar.restoring-position {
    opacity: 0.8;
}

.sidebar .nav-link {
    color: rgba(255,255,255,.8);
    padding: 12px 20px;
    margin: 4px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.sidebar a.nav-link:hover,
.sidebar a.nav-link.active {
    color: white;
    background: rgba(255,255,255,.1);
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* Custom scrollbar for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Main content adjustments */
.main-content {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px;
}

/* Skeleton Loading Styles */
.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Skeleton Card */
.skeleton-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 0 20px rgba(0,0,0,.05);
    margin-bottom: 1rem;
}

.skeleton-card-header {
    height: 20px;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-card-content {
    height: 60px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-card-footer {
    height: 16px;
    width: 40%;
}

/* Skeleton Table */
.skeleton-table {
    width: 100%;
    border-collapse: collapse;
}

.skeleton-table th,
.skeleton-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.skeleton-table-header {
    height: 16px;
    width: 100%;
}

.skeleton-table-cell {
    height: 16px;
    width: 100%;
    margin-bottom: 0.25rem;
}

.skeleton-table-cell:last-child {
    margin-bottom: 0;
}

/* Skeleton Variations */
.skeleton-text {
    height: 16px;
    margin-bottom: 0.5rem;
}

.skeleton-text.large {
    height: 24px;
}

.skeleton-text.small {
    height: 12px;
}

.skeleton-text.short {
    width: 30%;
}

.skeleton-text.medium {
    width: 60%;
}

.skeleton-text.long {
    width: 90%;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-button {
    height: 38px;
    width: 100px;
    border-radius: 6px;
}

/* Progress Bar Styles */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar.indeterminate {
    background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
    background-size: 200% 100%;
    animation: progress-indeterminate 1.5s ease-in-out infinite;
}

@keyframes progress-indeterminate {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.progress-text {
    font-size: 0.875rem;
    color: #4a5568;
    text-align: center;
    margin-top: 0.25rem;
}

/* Optimistic UI States */
.optimistic-update {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.optimistic-update.success {
    opacity: 1;
    background-color: rgba(72, 187, 120, 0.1);
    border-left: 4px solid #48bb78;
}

.optimistic-update.error {
    opacity: 1;
    background-color: rgba(245, 101, 101, 0.1);
    border-left: 4px solid #f56565;
}

.optimistic-update.pending {
    position: relative;
}

.optimistic-update.pending::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: optimistic-shimmer 2s infinite;
}

@keyframes optimistic-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Fade transitions */
.fade-enter {
    opacity: 0;
    transform: translateY(10px);
}

.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-exit {
    opacity: 1;
    transform: translateY(0);
}

.fade-exit-active {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Line Numbered Code Editor Styles */
.line-numbered-editor {
    position: relative;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background: #fff;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    overflow: hidden;
}

.line-numbered-editor.focused {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.editor-container {
    display: flex;
    min-height: 300px;
    max-height: 600px;
    background: #fff;
    position: relative;
}

.line-numbers {
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
    padding: 10px 8px;
    text-align: right;
    user-select: none;
    min-width: 50px;
    white-space: pre;
    overflow: hidden;
    font-weight: 500;
}

.code-textarea-container {
    position: relative;
    flex: 1;
    display: flex;
}

.code-textarea {
    position: relative;
    z-index: 2;
    flex: 1;
    border: none;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 12px;
    background: transparent;
    overflow-y: auto;
    overflow-x: auto;
    white-space: pre;
    tab-size: 4;
    word-wrap: break-word;
    color: transparent;
    caret-color: #333;
}

.code-textarea::selection {
    background: rgba(13, 110, 253, 0.25);
}

.syntax-highlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 12px;
    white-space: pre;
    tab-size: 4;
    word-wrap: break-word;
    overflow-y: auto;
    overflow-x: auto;
    pointer-events: none;
    color: #333;
}

.syntax-highlight-overlay .robot-variable {
    color: #007bff;
    font-weight: 500;
}

.code-textarea:focus {
    outline: none;
}

/* Scrollbar styling for code editor */
.code-textarea::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.code-textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.code-textarea::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.code-textarea::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Wider edit modal specific styles */
#editTestCaseModal .editor-container {
    min-height: 400px;
}

/* Validation errors styling */
.validation-errors {
    border-left: 4px solid #ffc107;
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
    margin-top: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.validation-errors ul {
    margin-bottom: 0;
    padding-left: 1.25rem;
}

.validation-errors li {
    margin-bottom: 0.25rem;
}

.validation-errors li:last-child {
    margin-bottom: 0;
}

/* Ensure validation errors stay within the left column */
#editTestCaseModal .col-md-9 .validation-errors {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Responsive adjustments for validation errors */
@media (max-width: 768px) {
    .validation-errors {
        margin-top: 0.5rem;
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .validation-errors ul {
        padding-left: 1rem;
    }
} 