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

body {
    background: linear-gradient(135deg, #0a1a0a 0%, #1a2e1a 50%, #0a1a0a 100%);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 255, 204, 0.01) 2px, rgba(0, 255, 204, 0.01) 4px);
    pointer-events: none;
    z-index: 1;
}

#display-container {
    position: relative;
    width: min(90vw, calc(100vh * 1.75));
    height: min(90vh, calc(100vw * 0.571));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.eyes-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: min(13vw, 180px);
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.eye {
    width: min(8vw, 110px);
    height: min(8vw, 110px);
    background: radial-gradient(circle at 30% 30%, #00ffcc, #00b388, #006655);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 min(3vw, 40px) rgba(0, 255, 204, 0.6), inset 0 0 min(1.5vw, 20px) rgba(0, 255, 204, 0.3);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.eye::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 30%;
    height: 30%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    filter: blur(1px);
}

.eye::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 15%;
    height: 15%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
}

.eye.listening {
    animation: listening 2s ease-in-out infinite;
    box-shadow: 0 0 min(4vw, 60px) rgba(0, 255, 204, 0.8), inset 0 0 min(2vw, 30px) rgba(0, 255, 204, 0.5);
}

.eye.speaking {
    animation: speaking 1.5s ease-in-out infinite;
    box-shadow: 0 0 min(5vw, 80px) rgba(255, 100, 100, 0.8), inset 0 0 min(2.5vw, 35px) rgba(255, 100, 100, 0.5);
}

.eye.processing {
    animation: processing 3s linear infinite;
}

@keyframes listening {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes speaking {
    0%, 100% { transform: scale(1); filter: hue-rotate(0deg); }
    25% { transform: scale(1.05); filter: hue-rotate(45deg); }
    75% { transform: scale(0.95); filter: hue-rotate(-45deg); }
}

@keyframes processing {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.status-indicator {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 20, 15, 0.9);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 25px;
    padding: min(1.5vw, 20px) min(3vw, 40px);
    color: #00ffcc;
    font-size: min(2.5vw, 32px);
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(10px);
    z-index: 20;
    box-shadow: 0 min(0.75vw, 10px) min(3vw, 40px) rgba(0, 0, 0, 0.3);
    transition: all 0.5s ease;
}

.status-indicator.active {
    background: rgba(0, 255, 204, 0.1);
    border-color: #00ffcc;
    box-shadow: 0 0 min(3vw, 40px) rgba(0, 255, 204, 0.3);
}

.controls-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 30;
}

.control-btn {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 20, 15, 0.8);
    color: #00ffcc;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.control-btn:hover {
    background: rgba(0, 255, 204, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.4);
}

.control-btn.active {
    background: rgba(0, 255, 204, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal {
    background: linear-gradient(135deg, rgba(0, 20, 15, 0.95), rgba(10, 30, 20, 0.95));
    border: 2px solid rgba(0, 255, 204, 0.3);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 255, 204, 0.1);
}

.modal h2 {
    color: #00ffcc;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}

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

.form-group label {
    display: block;
    color: #00ffcc;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 8px;
    background: rgba(0, 20, 15, 0.7);
    color: #ffffff;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Client Suggestions */
#clientSuggestions {
    position: relative;
    background: rgba(0, 20, 15, 0.9);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 8px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 255, 204, 0.1);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(0, 255, 204, 0.1);
}

.suggestion-name {
    color: #00ffcc;
    font-weight: 500;
    margin-bottom: 4px;
}

.suggestion-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.loading, .error, .no-results {
    padding: 12px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.error {
    color: #ff6b6b;
}

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

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #00ffcc, #00b388);
    color: #000;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00b388, #006655);
    box-shadow: 0 5px 15px rgba(0, 255, 204, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.5);
}

.btn-secondary:hover {
    background: rgba(0, 255, 204, 0.1);
    border-color: #00ffcc;
}

.availability-indicator {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.availability-indicator.available {
    background: rgba(0, 255, 100, 0.2);
    color: #00ff64;
    border: 1px solid rgba(0, 255, 100, 0.3);
}

.availability-indicator.unavailable {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6464;
    border: 1px solid rgba(255, 100, 100, 0.3);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 255, 204, 0.3);
    border-radius: 50%;
    border-top-color: #00ffcc;
    animation: spin 1s ease-in-out infinite;
}

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

@media (max-width: 768px) {
    .modal {
        padding: 20px;
        width: 95%;
    }

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

    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .controls-panel {
        top: 10px;
        right: 10px;
    }
}