:root {
    --primary-color: #6C63FF;
    --secondary-color: #4CAF50;
    --background-color: #F0F2F5;
    --text-color: #333;
    --card-bg: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --gradient: linear-gradient(135deg, #6C63FF, #4CAF50);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background: var(--gradient);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

nav ul li a:hover {
    opacity: 0.8;
}

.hero {
    text-align: center;
    padding: 4rem 0;
    background: var(--gradient);
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.container {
    max-width: 1000px;
    margin: -3rem auto 4rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.control-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.model-select {
    display: flex;
    align-items: center;
}

.model-select label {
    margin-right: 1rem;
    font-weight: 600;
}

select {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

button i {
    margin-right: 0.5rem;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(108, 99, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 99, 255, 0);
    }
}

.status-panel {
    background-color: #E8F5E9;
    border-radius: 5px;
    padding: 1rem;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.status-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 1rem;
}

.result-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.result-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.result-card h2 {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.result-card h2 i {
    margin-right: 0.5rem;
}

footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--text-color);
    color: white;
}

/* Add this to your existing CSS */

.dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.dialog-box {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.dialog-box p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.dialog-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.dialog-buttons button {
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .model-select {
        margin-bottom: 1rem;
    }

    button {
        width: 100%;
    }

    .result-panel {
        grid-template-columns: 1fr;
    }
}
