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

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #1e1e2f, #2d2d44);
    color: #e0e0e0;
    padding: 20px;
    line-height: 1.6;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5em;
    color: #00c4cc;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    h1 i {
        color: #ffca28;
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

section {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

    section h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
        color: #00c4cc;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        section h2 i {
            color: #ffca28;
        }

/* Dropdown Wrapper */
.dropdown-wrapper {
    position: relative;
    width: 100%;
}

#model-dropdown {
    width: 100%;
    padding: 12px;
    font-size: 1.1em;
    border: none;
    border-radius: 8px;
    background: #2c3e50;
    color: #e0e0e0;
    appearance: none;
    cursor: pointer;
}

.dropdown-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffca28;
    pointer-events: none;
}

/* Parameter Layout */
.parameter {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

    .parameter label {
        width: 180px;
        font-size: 1.1em;
        color: #b3e5fc;
        margin-right: 30px; /* Increased for better spacing */
    }

    .parameter .control {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .parameter input[type="range"] {
        width: 60%;
        accent-color: #00c4cc;
        cursor: pointer;
    }

    .parameter span {
        font-size: 1.1em;
        color: #e0e0e0;
        min-width: 70px;
        text-align: right;
        background: #2c3e50;
        padding: 5px 10px;
        border-radius: 5px;
    }

/* Epoch Control */
.epoch-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

    .epoch-control button {
        padding: 8px;
        background: linear-gradient(45deg, #00c4cc, #007bff);
        color: white;
        border: none;
        font-size: 1.2em;
        cursor: pointer;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        transition: transform 0.3s ease;
    }

        .epoch-control button:hover {
            transform: scale(1.1);
        }

    .epoch-control input[type="number"] {
        width: 80px;
        padding: 10px;
        text-align: center;
        font-size: 1.2em;
        border: 1px solid #444;
        border-radius: 8px;
        background: #2c3e50;
        color: #e0e0e0;
    }

#epoch-progress {
    width: 100%;
    height: 15px;
    margin-top: 10px;
    background: #444;
    border-radius: 10px;
    accent-color: #00c4cc;
}

/* Optimizer Controls */
.optimizer-controls {
    display: flex;
    gap: 25px;
    font-size: 1.1em;
}

    .optimizer-controls label {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #b3e5fc;
    }

    .optimizer-controls input[type="radio"] {
        width: 20px;
        height: 20px;
        accent-color: #00c4cc;
        cursor: pointer;
    }

/* Progress Bar */
#training-progress-bar {
    width: 100%;
    height: 25px;
    border-radius: 10px;
    background: #444;
    accent-color: #4caf50;
    transition: all 0.5s ease;
}

/* Training Metrics */
#training-metrics p {
    margin: 10px 0;
    font-size: 1.1em;
    color: #e0e0e0;
}

/* View Weights Button */
#view-weights {
    background: linear-gradient(45deg, #9e9e9e, #757575);
    color: white;
    border: none;
    padding: 12px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    #view-weights:hover {
        background: linear-gradient(45deg, #757575, #616161);
        transform: translateY(-2px);
    }

    #view-weights i {
        margin-left: 8px;
    }

#weight-display {
    margin-top: 15px;
    font-size: 1.2em;
    color: #ffca28;
}

#quality-metrics {
    font-size: 1.2em;
    color: #4caf50;
}

    #quality-metrics p {
        margin: 10px 0;
    }

#start-training {
    text-align: center;
}

#start-button {
    background: linear-gradient(45deg, #00c4cc, #007bff);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.3em;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    #start-button:hover {
        background: linear-gradient(45deg, #007bff, #0056b3);
        transform: scale(1.05);
    }

    #start-button i {
        margin-left: 10px;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    section h2 {
        font-size: 1.5em;
    }

    .parameter label {
        width: 140px;
        font-size: 1em;
    }

    .parameter .control {
        flex-direction: column;
        align-items: flex-start;
    }

    .parameter input[type="range"] {
        width: 100%;
    }

    #training-progress {
        margin-bottom: 15px;
    }

    progress {
        width: 100%;
    }

    button {
        font-size: 1em;
        width: 90%;
    }

    #model-quality {
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 2em;
    }

    .container {
        padding: 10px;
    }

    .parameter {
        flex-direction: column;
        align-items: flex-start;
    }

        .parameter label,
        .parameter .control {
            width: 100%;
        }

        .parameter input[type="range"],
        .parameter input[type="number"],
        .parameter select {
            width: 100%;
        }

    #start-training button {
        width: 100%;
    }

    #training-progress {
        margin-bottom: 20px;
    }

    progress {
        width: 100%;
    }
}
/* Dropzone Styling */
.dropzone {
    border: 2px dashed #444;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    margin-top: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .dropzone p {
        margin: 0;
        font-size: 1.1em;
        color: #b3e5fc;
    }
/* ... (existing CSS remains unchanged) ... */

/* Info Icon Styling */
.parameter label i.fas.fa-info-circle {
    margin-right: 8px;
    color: #ffca28;
    cursor: help;
    font-size: 1.1em;
    vertical-align: middle;
}

    .parameter label i.fas.fa-info-circle:hover {
        color: #ffd54f;
    }

/* Ensure tooltip is visible */
.parameter label {
    position: relative;
    display: flex;
    align-items: center;
    width: 180px;
    font-size: 1.1em;
    color: #b3e5fc;
    margin-right: 30px;
}

/* ... (rest of the CSS remains unchanged) ... */
