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

body {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Dynamic RGB Gradient Background */
    background: linear-gradient(270deg, #ff6ec4, #7873f5, #42e695, #ff6ec4);
    background-size: 800% 800%;
    animation: gradientMove 15s ease infinite;

    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Background Animation */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 100%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 0%; }
    100% { background-position: 0% 50%; }
}

/* Glass Container */
.container {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 520px;
    width: 100%;
    padding: 40px;
    transition: transform 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: #222;
    font-size: 28px;
    margin-bottom: 10px;
}

.header p {
    color: #555;
    font-size: 14px;
}

.iris-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.input-info {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

button {
    flex: 1;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Animated Predict Button */
.predict-btn {
    background: linear-gradient(135deg, #667eea, #764ba2, #42e695);
    background-size: 200% 200%;
    color: white;
    animation: buttonGlow 5s ease infinite;
}

@keyframes buttonGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.predict-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.predict-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.reset-btn {
    background: #f0f0f0;
    color: #333;
}

.reset-btn:hover {
    background: #e0e0e0;
}

/* Result */
.result {
    margin-top: 30px;
    padding: 20px;
    border-radius: 12px;
    display: none;
}

.result.show {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result.success {
    background: #e8f5e9;
    border: 2px solid #4caf50;
}

.result.error {
    background: #ffebee;
    border: 2px solid #f44336;
}

.result h3 {
    margin-bottom: 10px;
}

.prediction-box {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #667eea;
}

.prediction-label {
    font-size: 12px;
    color: #666;
}

.prediction-value {
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

/* Loading Spinner */
.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.loading.show {
    display: block;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Retrieve Section */
.retrieve-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #ddd;
}

.retrieve-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.retrieve-btn {
    width: 100%;
    padding: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 8px;
}

.retrieve-btn:hover {
    transform: translateY(-2px);
}

/* Dropdown */
.class-filter {
    margin-top: 15px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
}

.class-filter select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Table */
.predictions-table {
    margin-top: 20px;
    display: none;
    overflow-x: auto;
}

.predictions-table.show {
    display: block;
}

.predictions-table table {
    width: 100%;
    border-collapse: collapse;
}

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

.predictions-table th,
.predictions-table td {
    padding: 10px;
    font-size: 13px;
}

.predictions-table tbody tr:hover {
    background: #f5f5f5;
}

/* Error Message */
.error-message {
    padding: 15px;
    background: #ffebee;
    border: 2px solid #f44336;
    border-radius: 8px;
}
