/* Mohammad MirzakhaniDehkordi */
/* CSS Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #198754;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --gradient-start: #0d6efd;
    --gradient-end: #0a58ca;
}

/* General Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Hidden elements */
.hidden {
  display: none;
}

/* Navbar Styles */
.navbar {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

/* Home Page Specific Styles */
.home-page .hero {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #0a58ca);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.home-page .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 0;
}

.home-page .hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.home-page .hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.home-page .btn-custom {
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.home-page .btn-custom:hover {
    background: #157347;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* Feature Section Styles - Home page specific */
.home-page .features {
    background: var(--bg-white);
    padding: 5rem 0;
    position: relative;
}

.home-page .feature-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.1);
}

.home-page .feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.home-page .feature-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.home-page .feature-card h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.home-page .feature-card p {
    color: var(--secondary-color);
}

.home-page .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: var(--text-dark);
}

.home-page .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto;
    border-radius: 2px;
}

.home-page .how-it-works {
    background: var(--bg-light);
    padding: 5rem 0;
}

.home-page .step {
    text-align: center;
    padding: 2rem;
}

.home-page .step i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.home-page .step h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.home-page .testimonials {
    background: var(--bg-white);
    padding: 5rem 0;
}

.home-page .testimonial {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,0,0,0.1);
}

.home-page .testimonial p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.home-page .testimonial footer {
    font-weight: 600;
    color: var(--primary-color);
}

/* Feature-specific sections - Home page specific */
.home-page .chat-features {
    background: var(--bg-light);
}

.home-page .chat-preview {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 1.5rem;
}

.home-page .chat-preview .message {
    max-width: 80%;
    padding: 1rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.home-page .chat-preview .bot-message {
    background: var(--bg-light);
    margin-right: auto;
    border-bottom-left-radius: 0.25rem;
}

.home-page .chat-preview .user-message {
    background: var(--primary-color);
    color: var(--text-light);
    margin-left: auto;
    border-bottom-right-radius: 0.25rem;
}

.home-page .feature-list p {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.home-page .automotive-features {
    background: var(--bg-white);
}

.home-page .automotive-preview {
    background: var(--bg-light);
    border-radius: 1rem;
    padding: 1.5rem;
}

.home-page .test-case-example {
    color: var(--text-dark);
}

.home-page .test-case-item {
    background: var(--bg-white);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.home-page .trace-preview {
    background: var(--bg-white);
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.home-page .trace-line {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.home-page .trace-line:last-child {
    border-bottom: none;
}

.home-page .timestamp {
    color: var(--secondary-color);
    font-family: monospace;
    margin-right: 1rem;
    min-width: 120px;
}

.home-page .status {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.home-page .status.passed {
    background: #d1e7dd;
    color: #0f5132;
}

.home-page .status.failed {
    background: #f8d7da;
    color: #721c24;
}

.home-page .mcq-features {
    background: var(--bg-white);
}

.home-page .mcq-preview {
    background: var(--bg-light);
    border-radius: 1rem;
    padding: 1.5rem;
}

.home-page .mcq-example {
    color: var(--text-dark);
}

.home-page .mcq-item {
    background: var(--bg-white);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.home-page .question-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.home-page .question-text {
    font-weight: 500;
    color: var(--text-dark);
}

.home-page .options-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-page .option {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: var(--bg-light);
    transition: all 0.2s ease;
}

.home-page .option:hover {
    background: #e9ecef;
}

.home-page .option.correct {
    background: #d1e7dd;
}

.home-page .explanation {
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}

.home-page .keypoints-features {
    background: var(--bg-light);
}

.home-page .keypoints-preview {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 1.5rem;
}

.home-page .keypoints-example {
    color: var(--text-dark);
}

.home-page .keypoints-item {
    background: var(--bg-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.home-page .keypoint-header {
    display: flex;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.home-page .keypoint {
    transition: all 0.2s ease;
}

.home-page .keypoint:hover {
    transform: translateX(5px);
}

.home-page .keypoint-content {
    padding: 0.5rem 0;
}

.home-page .keypoint p {
    margin: 0;
    line-height: 1.5;
}

.home-page .summary-features {
    background: var(--bg-white);
}

.home-page .summary-preview {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 1.5rem;
}

.home-page .summary-example {
    color: var(--text-dark);
}

.home-page .summary-item {
    background: var(--bg-light);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.home-page .summary-header {
    display: flex;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.home-page .summary-content {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

.home-page .summary-content p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-dark);
}

.home-page .summary-content ul li {
    display: flex;
    align-items: center;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Responsive Styles for Home Page */
@media (max-width: 768px) {
    .home-page .hero h1 {
        font-size: 2.5rem;
    }
    
    .home-page .hero p {
        font-size: 1.1rem;
    }
    
    .home-page .feature-card {
        margin-bottom: 2rem;
    }
}

/* Progress Bar Styles */
.progress {
    background-color: var(--bg-light);
    border-radius: 1rem;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* PDF Options Styles */
.pdf-options-container {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-list .d-flex {
    margin-bottom: 1rem;
}

.feature-list i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* Form Styles */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-1px);
}

/* Animation Styles */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Responsive Styles for other pages */
@media (max-width: 768px) {
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .pdf-options-container {
        padding: 1rem;
    }

    .chat-interface-container {
        position: relative;
        height: auto;
        margin-top: 1rem;
    }

    #pdf-viewer {
        height: 300px;
    }

    .card.h-100.d-flex.flex-column {
        height: auto;
        margin-top: 1rem;
    }
}

@media (max-width: 991.98px) {
  .chat-interface-container {
    min-height: 350px;
    height: 350px;
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .chat-history {
    min-height: 200px;
    height: 200px;
    max-height: 40vh;
    padding: 1rem;
  }
  .chat-form {
    position: static;
    height: auto;
    padding: 0.5rem 1rem;
  }
}

/* Ensure the chat and PDF viewer columns are the same height */
@media (min-width: 992px) {
  .row > .col-lg-7, .row > .col-lg-5 {
    display: flex;
    flex-direction: column;
    height: 600px;
    min-height: 600px;
    max-height: 600px;
  }
  #pdf-viewer {
    height: 100%;
    min-height: 0;
    overflow: auto;
  }
  .chat-interface-container {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: auto;
  }
  .chat-history {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
    padding: 2rem;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
  }
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Table headers */
table thead {
    background-color: #f4f4f4;
    color: #333;
}

table thead th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

/* Table cells */
table tbody td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Links and Buttons */
a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.2s;
}

a:hover {
    color: #0056b3;
}

.btn-view {
    background-color: #007bff;
    color: #fff;
}

.btn-view:hover {
    background-color: #0056b3;
}

.btn-delete {
    background-color: #dc3545;
    color: #fff;
}

.btn-delete:hover {
    background-color: #b02a37;
}

.btn-download {
    background-color: #28a745;
    color: #fff;
}

.btn-download:hover {
    background-color: #218838;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header and Navigation */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    font-size: 16px;
}

nav ul li a:hover {
    color: #ccc;
}

/* Footer */
footer {
    background-color: #f4f4f4;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    color: #666;
}

/* Status Indicators */
.status-pass {
    color: #198754;
    font-weight: bold;
}

.status-fail {
    color: #dc3545;
    font-weight: bold;
}

.bi {
    margin-right: 4px;
    font-size: 18px;
}

/* PDF Viewer Styles */
#pdf-viewer {
    width: 100%;
    height: 600px;
    overflow: auto;
    background-color: #f8f9fa;
    padding: 1rem;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.zoom-controls button {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #495057;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.zoom-controls button:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.zoom-controls button:active {
    background-color: #e9ecef;
}

#zoom-display {
    min-width: 4rem;
    text-align: center;
    font-size: 0.875rem;
    color: #495057;
    font-weight: 500;
}

/* Ensure PDF pages are properly contained */
#pdf-viewer canvas {
    margin: 0 auto;
    display: block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

/* Chat Interface Styles */
.chat-interface-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    position: relative;
    box-shadow: var(--shadow-md);
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 80vh;
    max-width: 800px;
    margin: 20px auto;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    overflow: hidden;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    height: calc(100% - 80px); /* Adjust height to accommodate the form */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 80px;
}

.message {
    max-width: 70%;
    padding: 1.5rem 2rem;
    border-radius: 1.25rem;
    position: relative;
    line-height: 1.6;
    font-size: 0.95rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    animation: messageAppear 0.3s ease-out;
    margin: 0.5rem 0;
    word-wrap: break-word;
}

.user-message {
   background: #0084ff;
    color: #ffffff;
    margin-left: auto;
    margin-right: 0;
    text-align: left;
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
    border-top-left-radius: 1.25rem;
    border-top-right-radius: 1.25rem;
    border-bottom-left-radius: 1.25rem;
    padding-right: 2.5rem;
}

.bot-message {
     background: #e9ecef;
    color: #2c3e50;
    margin-right: auto;
    margin-left: 0;
    text-align: left;
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
    border-top-left-radius: 1.25rem;
    border-top-right-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
    padding-left: 2.5rem;
}

/* Message timestamps */
.message::after {
    content: attr(data-time);
    position: absolute;
    bottom: -1.5rem;
    font-size: 0.75rem;
    color: #6c757d;
    white-space: nowrap;
    padding: 0.25rem 0;
}

.user-message::after {
    right: 0;
}

.bot-message::after {
    right: 0;
}

/* Message status */
.message-status {
   position: absolute;
    bottom: -1.5rem;
    font-size: 0.75rem;
    color: #6c757d;
    padding: 0.25rem 0;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: #e9ecef;
    border-radius: 1.25rem;
    margin: 0.5rem 0;
    align-self: flex-start;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 1.25rem;
    border-bottom-left-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #6c757d;
    border-radius: 50%;
    animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

/* Chat form */
.chat-form {
     padding: 1rem;
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    z-index: 1;
}

.chat-form input[type="text"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 1.5rem;
    font-size: 0.95rem;
    background-color: #f8f9fa;
    height: 40px;
}

.chat-form input[type="text"]:focus {
    outline: none;
    border-color: #0084ff;
    box-shadow: 0 0 0 2px rgba(0, 132, 255, 0.1);
}

.chat-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #0084ff;
    color: #ffffff;
    border: none;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 500;
    height: 40px;
    white-space: nowrap;
}


.chat-form button:hover {
    background-color: #0073e6;
}

.chat-form button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
/* Add a subtle animation for new messages */
@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar Styles */
.chat-history::-webkit-scrollbar {
    width: 6px;
}

.chat-history::-webkit-scrollbar-track {
    background: var(--bg-light);
}

.chat-history::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.chat-history::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Progress bar styles */
.progress-bar-initial {
  width: 0%;
}

#summary-section {
  display: none;
}

#summary-section.show {
  display: block;
}

/* V-Model Section Styles */
.v-model-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.v-model-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(13, 110, 253, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(25, 135, 84, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.v-model-container {
    position: relative;
    z-index: 1;
}

/* V-Model Stages Section */
.v-model-stages {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.v-model-stages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(13, 110, 253, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(25, 135, 84, 0.05) 0%, transparent 50%);
    z-index: 0;
}

.v-model-stages-container {
    position: relative;
    z-index: 1;
}

/* V-Model Stage Cards */
.vmodel-stage-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.vmodel-stage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.vmodel-stage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* V-Model Icons */
.vmodel-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Feature Tags/Badges */
.feature-tags {
    margin: 0;
    padding: 0;
}

.feature-tags li {
    margin-bottom: 0.5rem;
}

.feature-tags .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

/* V-Model Stage Layout */
.vmodel-stage {
    margin-bottom: 2rem;
}

/* Responsive adjustments for V-Model */
@media (max-width: 991.98px) {
    .vmodel-stage {
        margin-bottom: 1rem;
    }
}

/* Coverage Legend Styles */
.coverage-legend {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.legend-item:hover {
    background: var(--bg-light);
    transform: translateX(5px);
}

.legend-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-light);
    flex-shrink: 0;
}

.legend-icon.requirements {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
}

.legend-icon.test-design {
    background: linear-gradient(135deg, #198754, #157347);
}

.legend-icon.trace {
    background: linear-gradient(135deg, #fd7e14, #e55a00);
}

.legend-icon.wireshark {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
}

.legend-content h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.legend-content p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.4;
}

/* Responsive Design for Coverage Legend */
@media (max-width: 992px) {
    .coverage-legend .row {
        gap: 1rem;
    }

    .coverage-legend .col-md-3 {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .legend-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .legend-content {
        text-align: center;
    }
}