/* Airfoil Visualizer Styles */
.airfoil-visualizer {
    width: 100%;
    max-width: 56rem; /* max-w-4xl */
    background-color: #1f2937; /* bg-gray-800 */
    padding: 1.5rem; /* p-6 */
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* space-y-6 */
}

@media (min-width: 768px) {
    .airfoil-visualizer {
        padding: 2rem; /* md:p-8 */
        margin-left: -2rem;
    }
}

@media (min-width: 768px) {
    .visualizer-title {
        font-size: 2.25rem; /* md:text-4xl */
    }
}

.visualizer-subtitle {
    color: #9ca3af; /* text-gray-400 */
    margin-top: 0.5rem; /* mt-2 */
    margin-bottom: 0;
}

/* Controls Grid */
.controls-grid {
    display: grid;
    grid-template-columns: 1fr; /* grid-cols-1 */
    gap: 1.5rem; /* gap-6 */
}

@media (min-width: 768px) {
    .controls-grid {
        grid-template-columns: repeat(2, 1fr); /* md:grid-cols-2 */
    }
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* space-y-2 */
}

.control-label {
    font-weight: 500; /* font-medium */
    color: #d1d5db; /* text-gray-300 */
}

.control-input {
    width: 100%;
    background-color: #374151; /* bg-gray-700 */
    border: 1px solid #4b5563; /* border-gray-600 */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 0.5rem 1rem; /* px-4 py-2 */
    color: #ffffff; /* text-white */
    transition: all 0.15s ease-in-out;
    border-right: 1rem solid transparent;
}

.control-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #3b82f6; /* focus:ring-2 focus:ring-blue-500 */
}

.file-input {
    width: 100%;
    font-size: 0.875rem; /* text-sm */
    color: #9ca3af; /* text-gray-400 */
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.file-input::file-selector-button {
    margin-right: 1rem; /* file:mr-4 */
    padding: 0.5rem 1rem; /* file:py-2 file:px-4 */
    border-radius: 0.5rem; /* file:rounded-lg */
    border: none; /* file:border-0 */
    font-size: 0.875rem; /* file:text-sm */
    font-weight: 600; /* file:font-semibold */
    background-color: #2563eb; /* file:bg-blue-600 */
    color: #ffffff; /* file:text-white */
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.file-input::file-selector-button:hover {
    background-color: #1d4ed8; /* hover:file:bg-blue-700 */
}

/* Canvas Container */
.canvas-container {
    background-color: #111827; /* bg-gray-900 */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 0.5rem; /* p-2 */
}

.airfoil-canvas {
    width: 100%;
    height: 16rem; /* h-64 */
    border-radius: 0.375rem; /* rounded-md */
    background-color: #ffffff; /* bg-white */
}

.airfoil-canvas.airfoil-canvas-grids {
    width: 500px;
    height: 500px;
    margin: auto;
    border-radius: 0;
}   

@media (min-width: 768px) {
    .airfoil-canvas {
        height: 24rem; /* md:h-96 */
    }
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    border-bottom: 2px solid #374151;
    margin-bottom: 1rem;
}

.tab-button {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    color: #9ca3af;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-button:hover {
    color: #d1d5db;
    background-color: #374151;
}

.tab-button.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background-color: #1f2937;
}

/* Tab Content */
.tab-content {
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Data Tab Styles */
.data-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.data-info {
    color: #d1d5db;
    font-weight: 500;
}

.table-container {
    background-color: #111827;
    border-radius: 0.5rem;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    color: #d1d5db;
    font-size: 0.875rem;
}

.data-table th {
    background-color: #374151;
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid #4b5563;
    position: sticky;
    top: 0;
}

.data-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #374151;
}

.data-table tbody tr:hover {
    background-color: #374151;
}

.data-table .no-data {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 2rem;
}

.polar-cartesian-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}

.polar-cartesian-content {
    flex: 1;
    min-width: 320px;
    background: #fff;
    border: 1px solid #444444; /* border-gray-200 */
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.polar-cartesian-content h2 {
    margin-top: 0;
    color: #1f2937;
}

.polar-cartesian-content svg {
    width: 100%;
    height: auto;
}

/* Shared Styles */
.polar-cartesian-content .grid-line {
    stroke: #d1d5db;
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.polar-cartesian-content .axis-line {
    stroke: #4b5563;
    stroke-width: 1.5;
}

.polar-cartesian-content .point {
    fill: #ef4444;
    stroke: #fff;
    stroke-width: 2;
}

.polar-cartesian-content .label {
    font-family: 'Computer Modern', serif;
    font-size: 18px;
    fill: #111827;
}

.polar-cartesian-content .label-variable {
    font-style: italic;
}

/* Polar Specific */
.polar-cartesian-content .radius-line {
    stroke: #ef4444;
    stroke-width: 2.5;
}

.polar-cartesian-content .angle-arc {
    stroke: #3b82f6;
    stroke-width: 2;
    fill: none;
}

/* Cartesian Specific */
.polar-cartesian-content .projection-line {
    stroke: #10b981;
    stroke-width: 2;
    stroke-dasharray: 5 5;
}

