body {
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    max-width: 1000px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
}

h1 {
    color: #333;
    font-size: 36px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.control-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

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

.model-select label {
    font-size: 18px;
    color: #333;
}

.custom-select-container {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-select {
    padding: 10px 30px;
    font-size: 16px;
    border: 2px solid #4CAF50;
    border-radius: 30px;
    background-color: white;
    color: #333;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.custom-select:hover {
    border-color: #45a049;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.custom-select-container .fa-chevron-down {
    position: absolute;
    right: 15px;
    pointer-events: none;
    color: #333;
    font-size: 16px;
}

button {
    padding: 15px 30px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.cancel {
    background-color: #ff4136;
}

.cancel:hover {
    background-color: #ff725c;
}

#status {
    margin-top: 20px;
    color: #666;
    font-size: 18px;
    font-weight: 500;
}

.result-section {
    margin-top: 40px;
    text-align: left;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#transcription,
#response {
    margin-top: 20px;
}

#transcription h2,
#response h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

#transcription p,
.ai-response {
    font-size: 18px;
    line-height: 1.6;
    color: #444;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ai-response {
    border-left: 5px solid #4CAF50;
}

.dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999;
}

.dialog-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
    max-width: 80%;
}

.dialog-box p {
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}

.dialog-box button {
    padding: 12px 24px;
    margin: 0 10px;
    font-size: 16px;
}

@media (max-width: 600px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 28px;
    }

    button {
        padding: 12px 24px;
        font-size: 16px;
    }

    #transcription h2,
    #response h2 {
        font-size: 20px;
    }

    #transcription p,
    .ai-response {
        font-size: 16px;
    }
}
