* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.evaporation-boiling-container {
    max-width: 1600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

header .subtitle {
    font-size: 1.1em;
    opacity: 0.95;
}

main {
    padding: 30px;
}

/* Dual Canvas Layout */
.dual-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.phenomenon-panel {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.phenomenon-panel h3 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5em;
    color: #333;
}

.evaporation h3 {
    color: #2196F3;
}

.boiling h3 {
    color: #FF5722;
}

.canvas-wrapper {
    position: relative;
}

canvas {
    width: 100%;
    height: 500px;
    background: white;
    border-radius: 10px;
    border: 2px solid #ddd;
}

.panel-info {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.info-item {
    text-align: center;
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 8px;
    min-width: 140px;
}

.info-item span:first-child {
    font-weight: 600;
    color: #667eea;
}

/* Controls Panel */
.controls-panel {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.controls-panel h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.4em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.control-group {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.control-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.control-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

.boiling-point-marker {
    margin-top: 10px;
    padding: 8px;
    background: #ffecb3;
    border-radius: 5px;
    text-align: center;
    font-size: 0.9em;
    color: #e65100;
    font-weight: 600;
}

.boiling-point-indicator {
    margin-top: 10px;
    padding: 10px;
    background: #fff3e0;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9em;
    color: #e65100;
    font-weight: 600;
    border: 2px solid #ff9800;
}

.boiling-point-indicator span:last-child {
    color: #FF5722;
    font-size: 1.1em;
    font-weight: 700;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
}

.control-button {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.control-button.start {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.control-button.pause {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.control-button.reset {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.control-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Comparison Table */
.comparison-section {
    margin-bottom: 25px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.comparison-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.comparison-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.comparison-table tbody tr:hover {
    background: #f8f9fa;
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Applications Section */
.applications-section {
    margin-bottom: 25px;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.application-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #667eea;
    transition: transform 0.2s ease;
}

.application-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.application-item h4 {
    color: #667eea;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.application-item p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.4;
}

/* Key Concepts Section */
.concepts-section {
    margin-bottom: 25px;
}

.concept-list {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.concept-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.concept-item:last-child {
    margin-bottom: 0;
}

.concept-label {
    font-weight: 600;
    color: #667eea;
    min-width: 150px;
}

.concept-desc {
    color: #666;
    line-height: 1.5;
    flex: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dual-display {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    .controls-grid {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .comparison-table {
        font-size: 0.9em;
    }

    .applications-grid {
        grid-template-columns: 1fr;
    }
}
