/**
 * eRx Test Case Management System - Main Stylesheet
 * 
 * This file contains all CSS styles for the eRx Test Case Management System.
 * It implements the My One Touch (MOT) design theme with green color scheme,
 * modern typography using Inter font, and responsive layout components.
 * 
 * @package eRxTestSystem
 * @version 1.0.0
 * @author My One Touch
 */

/* Base Layout and Typography */
body.mot-layout {
    margin: 0;
    font-family: 'Inter', 'Roboto', 'Open Sans', Arial, sans-serif;
    background: #f7f9fa;
    color: #222;
}

.mot-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 64px;
    background: #4CAF8C;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0 40px;
}
.mot-header-left {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}
.mot-logo {
    width: 165px;
    height: auto;
    margin-right: 18px;
}
.mot-title {
    font-size: 1.35em;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.mot-header-right {
    flex-shrink: 0;
    flex-grow: 0;
    text-align: right;
    font-size: 1.08em;
    color: #fff;
    white-space: nowrap;
    margin-left: auto;
    padding-left: 32px;
}

.sidebar {
    position: fixed;
    top: 64px;
    left: 0;
    width: 220px;
    height: calc(100vh - 64px);
    background: #388e6c;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 2px 0 8px rgba(0,0,0,0.04);
    z-index: 100;
    padding-top: 32px;
}
.sidebar-nav {
    width: 100%;
}
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-nav li {
    margin: 0 0 12px 0;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 14px 32px;
    color: #fff;
    text-decoration: none;
    font-size: 1.12em;
    border-radius: 8px 0 0 8px;
    transition: background 0.18s, color 0.18s;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: #4CAF8C;
    color: #fff;
    box-shadow: 2px 4px 12px rgba(76,175,140,0.08);
}
.sidebar-nav i {
    margin-right: 16px;
    font-size: 1.25em;
}

.main-content {
    margin-left: 220px;
    margin-top: 64px;
    padding: 40px 48px 48px 48px;
    min-height: calc(100vh - 64px);
    background: #f7f9fa;
}

.card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 36px 32px;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    font-family: inherit;
    font-size: 1.08em;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 16px 36px;
    margin-right: 18px;
    background: #4CAF8C;
    color: #fff;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(76,175,140,0.08);
    text-decoration: none;
}
.btn:hover {
    background: #388e6c;
    color: #fff;
}
.btn.yellow {
    background: #e6b800;
    color: #222;
}
.btn.yellow:hover {
    background: #c9a100;
    color: #fff;
}

.footer {
    width: 100%;
    background: #e0e7e3;
    color: #4CAF8C;
    text-align: center;
    padding: 16px 0 8px 0;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 200;
}
.footer-content {
    font-size: 0.98em;
    letter-spacing: 0.02em;
}

/* Test Cases Page Styles */
.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    margin: 0 0 8px 0;
    color: #222;
    font-size: 2.2em;
}

.page-header p {
    margin: 0;
    color: #666;
    font-size: 1.1em;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 24px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #222;
    font-size: 0.95em;
}

.filter-select, .search-input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.18s;
    min-width: 180px;
}

.filter-select:focus, .search-input:focus {
    outline: none;
    border-color: #4CAF8C;
    box-shadow: 0 0 0 3px rgba(76,175,140,0.1);
}

/* View Toggle */
.view-toggle {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.view-toggle label {
    font-weight: 600;
    color: #222;
    font-size: 0.95em;
}

.toggle-buttons {
    display: flex;
    gap: 4px;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 4px;
}

.view-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #666;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-btn:hover {
    background: #e0e0e0;
    color: #222;
}

.view-btn.active {
    background: #4CAF8C;
    color: #fff;
    box-shadow: 0 2px 4px rgba(76,175,140,0.2);
}

.view-btn.active:hover {
    background: #388e6c;
}

/* Test Cases Grid */
.test-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.test-case-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 2px solid transparent;
    transition: all 0.2s ease;
    overflow: hidden;
}

.test-case-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #4CAF8C;
}

.test-case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.scenario-number {
    font-weight: 700;
    font-size: 1.1em;
    color: #4CAF8C;
    background: #e0f5ec;
    padding: 6px 12px;
    border-radius: 20px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-outstanding {
    background: #f8d7da;
    color: #721c24;
}

.test-case-content {
    padding: 20px 24px;
}

.test-case-content h3 {
    margin: 0 0 12px 0;
    color: #222;
    font-size: 1.3em;
    font-weight: 700;
}

.test-case-content p {
    margin: 0 0 16px 0;
    color: #666;
    line-height: 1.5;
}

.test-case-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #555;
}

.detail-item i {
    color: #4CAF8C;
    width: 16px;
}

.test-case-actions {
    display: flex;
    gap: 12px;
    padding: 20px 24px;
    background: #f8f9fa;
    border-top: 1px solid #f0f0f0;
}

.test-case-actions .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.95em;
    text-align: center;
}

/* Button Variations */
.btn-primary {
    background: #4CAF8C;
    color: #fff;
}

.btn-primary:hover {
    background: #388e6c;
}

.btn-success {
    background: #28a745;
    color: #fff;
}

.btn-success:hover {
    background: #218838;
}

.btn-info {
    background: #17a2b8;
    color: #fff;
}

.btn-info:hover {
    background: #138496;
}

.btn-warning {
    background: #ffc107;
    color: #222;
}

.btn-warning:hover {
    background: #e0a800;
    color: #fff;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Load More Container */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

/* Table View Styles */
.test-cases-table-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 40px;
}

.table-responsive {
    overflow-x: auto;
}

.test-cases-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}

.test-cases-table th {
    background: #f8f9fa;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #222;
    border-bottom: 2px solid #e0e0e0;
    white-space: nowrap;
}

.test-cases-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.test-cases-table tbody tr:hover {
    background: #f8f9fa;
}

.scenario-number-table {
    display: inline-block;
    font-weight: 700;
    font-size:1.1m;
    color: #4CAF8C;
    background: #e0f5ec;
    padding: 6px 12px;
    border-radius: 20px;
}

.scenario-title {
    font-weight: 600;
    color: #222;
    margin-bottom: 4px;
    font-size: 1em;
}

.scenario-description {
    color: #666;
    font-size: 0.9em;
    line-height: 1.4;
}

.category-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-badge.basic {
    background: #e3f2fd;
    color: #1976d2;
}

.category-badge.multi-item {
    background: #f3e5f5;
    color: #7b1fa2;
}

.category-badge.editing {
    background: #e8f5e8;
    color: #388e3c;
}

.category-badge.cancellation {
    background: #fff3e0;
    color: #f57c00;
}

.category-badge.special {
    background: #fce4ec;
    color: #c2185b;
}

.status-badge-table {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.status-badge-table.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge-table.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-badge-table.status-outstanding {
    background: #f8d7da;
    color: #721c24;
}

.table-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 0.85em;
    border-radius: 6px;
    min-width: auto;
    margin: 0;
}

.btn-sm i {
    font-size: 0.9em;
}

/* Test Execution Page Styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    gap: 24px;
}

.header-content h1 {
    margin: 0 0 8px 0;
    color: #222;
    font-size: 2.2em;
}

.header-content p {
    margin: 0;
    color: #666;
    font-size: 1.1em;
}

.header-actions {
    flex-shrink: 0;
}

/* Scenario Overview */
.scenario-overview {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    align-items: start;
}

.scenario-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item label {
    font-weight: 600;
    color: #666;
    font-size: 0.9em;
}

.detail-item span {
    color: #222;
    font-size: 1em;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-info {
    background: #e1f5fe;
    color: #0277bd;
}

.scenario-requirements h3 {
    margin: 0 0 12px 0;
    color: #222;
    font-size: 1.2em;
}

.scenario-requirements ul {
    margin: 0;
    padding-left: 20px;
}

.scenario-requirements li {
    margin-bottom: 6px;
    color: #555;
    line-height: 1.5;
}

/* Test Execution Form */
.test-execution-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #222;
    font-size: 0.95em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.18s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4CAF8C;
    box-shadow: 0 0 0 3px rgba(76,175,140,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.section-description {
    color: #666;
    font-size: 1em;
    margin-bottom: 20px;
}

/* Screenshot Upload */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.screenshot-upload {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.screenshot-upload:hover {
    border-color: #4CAF8C;
}

.screenshot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.screenshot-header h3 {
    margin: 0;
    color: #222;
    font-size: 1.1em;
    font-weight: 600;
}

.screenshot-required {
    background: #dc3545;
    color: #fff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.upload-area {
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.upload-area:hover {
    background: #f8f9fa;
}

.upload-area.dragover {
    background: #e0f5ec;
    border: 2px dashed #4CAF8C;
}

.upload-content i {
    font-size: 3em;
    color: #4CAF8C;
    margin-bottom: 16px;
}

.upload-content p {
    margin: 8px 0;
    color: #666;
}

.upload-hint {
    font-size: 0.9em;
    color: #999;
    font-style: italic;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-preview {
    position: relative;
    padding: 20px;
    text-align: center;
}

.upload-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.remove-upload {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.remove-upload:hover {
    background: #c82333;
}

/* Database Connection */
.db-connection-section {
    margin-bottom: 32px;
}

.db-connection-section h3 {
    margin: 0 0 16px 0;
    color: #222;
    font-size: 1.2em;
}

.connection-options {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.connection-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.connection-option input[type="radio"] {
    margin: 0;
}

.connection-option label {
    font-weight: 500;
    color: #222;
    cursor: pointer;
}

.connection-fields {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.connection-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

/* XML Payloads */
.xml-payloads-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.payload-container h3 {
    margin: 0 0 12px 0;
    color: #222;
    font-size: 1.1em;
}

.xml-editor {
    position: relative;
}

.xml-editor textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    line-height: 1.4;
    background: #f8f9fa;
    resize: vertical;
    min-height: 200px;
}

.xml-editor textarea:focus {
    outline: none;
    border-color: #4CAF8C;
    box-shadow: 0 0 0 3px rgba(76,175,140,0.1);
}

.xml-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

/* Responsive Design for Test Execution */
@media (max-width: 900px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .scenario-overview {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .screenshot-grid {
        grid-template-columns: 1fr;
    }
    
    .xml-payloads-section {
        grid-template-columns: 1fr;
    }
    
    .connection-options {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
    margin: 0;
    color: #222;
    font-size: 1.5em;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #222;
}

.modal-body {
    padding: 32px;
    max-height: 70vh;
    overflow-y: auto;
}

.scenario-details h3 {
    margin: 0 0 24px 0;
    color: #222;
    font-size: 1.4em;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h4 {
    margin: 0 0 12px 0;
    color: #4CAF8C;
    font-size: 1.1em;
    font-weight: 600;
}

.detail-section ul {
    margin: 0;
    padding-left: 20px;
}

.detail-section li {
    margin-bottom: 6px;
    color: #555;
    line-height: 1.5;
}

.detail-section p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 900px) {
    .sidebar {
        width: 60px;
        padding-top: 16px;
    }
    .sidebar-nav a {
        padding: 14px 10px;
        font-size: 1em;
    }
    .sidebar-nav a span {
        display: none;
    }
    .main-content {
        margin-left: 60px;
        padding: 24px 8px 40px 8px;
    }
    .mot-header {
        padding: 0 8px;
    }
    .mot-title {
        font-size: 1em;
    }
    
    /* Mobile Test Cases */
    .test-cases-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 16px;
    }
    
    .filter-select, .search-input {
        min-width: auto;
        width: 100%;
    }
    
    .test-case-actions {
        flex-direction: column;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-header, .modal-body {
        padding: 20px;
    }
}

/* Payload Selector Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #e0e7e3;
}

.modal-header h3 {
    margin: 0;
    color: #222;
    font-size: 1.4em;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2em;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #222;
}

.modal-body {
    padding: 32px;
}

.modal-description {
    margin: 0 0 24px 0;
    color: #666;
    font-size: 1.1em;
}

.payload-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payload-item {
    border: 2px solid #e0e7e3;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.payload-item:hover {
    border-color: #4CAF8C;
    box-shadow: 0 4px 16px rgba(76, 175, 140, 0.1);
    transform: translateY(-2px);
}

.payload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.payload-id {
    font-weight: 600;
    color: #4CAF8C;
    font-size: 1.1em;
}

.payload-file {
    font-size: 0.9em;
    color: #666;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
}

.payload-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-row label {
    font-size: 0.9em;
    color: #666;
    font-weight: 500;
}

.detail-row span {
    font-size: 1em;
    color: #222;
    font-weight: 500;
}

.payload-action {
    text-align: center;
}

/* Payload Extraction Section */
.payload-extraction-section {
    margin-bottom: 24px;
}

.extraction-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.extraction-hint {
    color: #666;
    font-size: 0.95em;
    font-style: italic;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 80px;
    right: 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1001;
    animation: notificationSlideIn 0.3s ease-out;
}

@keyframes notificationSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-success {
    border-left: 4px solid #4CAF8C;
}

.notification-info {
    border-left: 4px solid #2196F3;
}

.notification i {
    font-size: 1.2em;
}

.notification-success i {
    color: #4CAF8C;
}

.notification-info i {
    color: #2196F3;
}

/* Payload Loading Section */
.payload-loading-section {
    margin-top: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #4CAF8C;
}

.payload-loading-section h3 {
    margin: 0 0 12px 0;
    color: #4CAF8C;
    font-size: 1.1em;
}

.payload-loading-section p {
    margin: 0 0 16px 0;
    color: #666;
    font-size: 0.95em;
}

/* Payload Status */
.payload-status-section {
    margin-bottom: 24px;
}

.payload-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #dee2e6;
    font-size: 0.95em;
}

.payload-status.payload-loaded {
    background: #f0f9f6;
    border-left-color: #4CAF8C;
    color: #4CAF8C;
}

.payload-status i {
    font-size: 1.2em;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 32px;
    border-top: 1px solid #e0e7e3;
    background: #f8f9fa;
}

/* Screenshot Save Button */
.save-screenshot {
    margin-top: 12px;
    width: 100%;
}

.save-screenshot.saved {
    background: #28a745;
    color: #fff;
}

.save-screenshot.saved:hover {
    background: #218838;
}

/* Upload Preview Enhancements */
.upload-preview {
    position: relative;
    text-align: center;
}

.upload-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.remove-upload {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 53, 69, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.remove-upload:hover {
    background: rgba(220, 53, 69, 1);
}

/* Additional styles for dynamic test cases */
.status-badge-table.status-in_progress {
    background: #2196F3;
    color: #fff;
}

.status-badge.status-in_progress {
    background: #2196F3;
    color: #fff;
}

/* No results styling */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results i {
    font-size: 3em;
    color: #ccc;
    margin-bottom: 20px;
}

.no-results h3 {
    margin: 0 0 10px 0;
    color: #999;
    font-size: 1.5em;
}

.no-results p {
    margin: 0;
    color: #999;
    font-size: 1.1em;
}

.no-results-table {
    text-align: center;
}

/* Scenario details modal enhancements */
.scenario-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-item strong {
    color: #666;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #d32f2f;
}

.error-message i {
    font-size: 2em;
    margin-bottom: 16px;
}

.error-message p {
    margin: 0;
    font-size: 1.1em;
}

/* Status Badge Styles */
.status-badge, .compliance-badge {
    margin-top: 8px;
}

.status-badge .badge, .compliance-badge .badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Test Status Colors */
.status-not-started {
    background-color: #6c757d !important;
    color: white !important;
}

.status-in-progress {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.status-passed {
    background-color: #28a745 !important;
    color: white !important;
}

.status-failed {
    background-color: #dc3545 !important;
    color: white !important;
}

.status-na {
    background-color: #6f42c1 !important;
    color: white !important;
}

/* Compliance Status Colors */
.compliance-yes {
    background-color: #28a745 !important;
    color: white !important;
}

.compliance-no {
    background-color: #dc3545 !important;
    color: white !important;
}

.compliance-pending {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

/* Enhanced Form Validation Styles */
.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group.error .error-message {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 4px;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
} 