/* Complex Numbers CSS */
/* Complex Plane styles */
#complex-plane-section .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    padding: 20px;
}

.canvas-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
}

.controls-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
}

.info-container {
    grid-column: span 2;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 20px;
}

.control-group {
    margin-bottom: 15px;
}

.complex-input {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.complex-input input {
    width: 80px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.complex-input label {
    min-width: 30px;
}

.warning {
    color: #dc3545;
    margin-top: 10px;
}

body {
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    color: #222;
}
header {
    background: #2d3e50;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}
main {
    max-width: 1400px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 2rem;
}

/* New Z-Time Domain layout */
.ztd-main-grid {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 20px;
    height: 800px;
}

/* Left column styling */
.ztd-left-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#vectors-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.vector-plot {
    flex: 1;
    min-height: 300px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 10px;
}

/* Main content area styling */
.ztd-content-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-plot {
    flex: 2;
    min-height: 500px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

.result-plot {
    flex: 1 1 0;
    min-height: 180px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Right column styling */
.ztd-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.complex-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.complex-input input {
    width: 60px;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.vector-info {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    margin-top: 5px;
    font-size: 0.9em;
    border: 1px solid #ddd;
    min-width: 200px;
}

.result-info {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.operation-btn, .control-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.operation-btn {
    background-color: #4a90e2;
    color: white;
}

.control-btn {
    background-color: #34495e;
    color: white;
}

.operation-btn:hover, .control-btn:hover {
    filter: brightness(110%);
}

.operation-buttons, .animation-controls {
    display: flex;
    gap: 18px;
    margin-bottom: 10px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .complex-plots, .time-plots {
        grid-template-columns: 1fr;
    }
    
    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-group {
        flex-direction: column;
        gap: 10px;
    }
}
form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
input[type="number"] {
    width: 80px;
    padding: 0.3rem;
    border-radius: 4px;
    border: 1px solid #bbb;
}
select, button {
    padding: 0.4rem 1rem;
    border-radius: 4px;
    border: 1px solid #bbb;
}
button {
    background: #2d3e50;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
button:hover {
    background: #1a2533;
}
#complex-result {
    margin-top: 1.5rem;
    font-size: 1.1rem;
}
.error {
    color: #c00;
}
.complex-navbar {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    background: linear-gradient(90deg, #3a506b 0%, #5bc0be 100%);
    padding: 0.85rem 1.5rem 0.85rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(60,80,120,0.10);
    flex-wrap: wrap;
    position: relative;
}
.nav-btn {
    background: #1c2541;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1.3rem;
    font-size: 1.08rem;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
    margin: 0 2px;
    font-family: inherit;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(30,40,60,0.07);
}
.nav-btn:hover, .dropdown-toggle:focus {
    background: #5bc0be;
    color: #222;
    box-shadow: 0 4px 12px rgba(30,40,60,0.13);
}
.nav-dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-toggle::after {
    content: '';
}
.dropdown-content {
    display: none;
    position: absolute;
    background: #fff;
    min-width: 210px;
    box-shadow: 0 4px 16px rgba(60,80,120,0.18);
    border-radius: 8px;
    z-index: 20;
    left: 0;
    top: 110%;
    padding: 0.3rem 0;
    margin-top: 0.2rem;
}
.nav-dropdown:hover .dropdown-content, .nav-dropdown:focus-within .dropdown-content {
    display: block;
}
.dropdown-item {
    background: none;
    border: none;
    color: #222;
    padding: 0.6rem 1.3rem;
    width: 100%;
    text-align: left;
    font-size: 1.05rem;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}
.dropdown-item:hover {
    background: #eaf6f6;
    color: #1c2541;
}

/* Complex Plane specific styles */
.complex-plane-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    grid-template-rows: auto auto;
    gap: 20px;
    height: 800px;
}

.main-plot-area {
    grid-column: 1;
    grid-row: 1;
}

.complex-controls {
    grid-column: 2;
    grid-row: 1;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
}

.geometric-info-panel {
    grid-column: 1 / span 2;
    grid-row: 2;
}

.info-panel {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

#plot-area {
    width: 100%;
    height: 600px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.visibility-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 15px 0;
}

.visibility-controls label {
    display: flex;
    align-items: center;
    gap: 5px;
}

#complex-plane-info {
    font-size: 0.9rem;
    line-height: 1.5;
}

#geometric-info pre {
    font-size: 0.9rem;
    line-height: 1.5;
    white-space: pre-wrap;
    margin-top: 0;
}
