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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.container {
    max-width: 100%;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 10px;
    flex-shrink: 0;
}

header h1 {
    font-size: 1.8em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 10px;
}

.link-text {
    display: inline-block;
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.link-text:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .container {
        padding: 5px;
        padding-bottom: 90px;
    }
    
    header {
        margin-bottom: 5px;
    }
    
    header h1 {
        font-size: 1.3em;
        margin-bottom: 5px;
    }
    
    header p {
        font-size: 0.75em;
    }
    
    .interview-panel {
        border-radius: 10px;
        padding: 10px;
    }
    
    .status-bar {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .answer pre {
        font-size: 12px;
        padding: 10px;
    }
    
    .btn-pause-large {
        bottom: 10px;
        padding: 20px 50px;
        font-size: 1.4em;
    }
}

.interview-panel {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}


.btn-pause-large {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.3em;
    font-weight: 700;
    cursor: pointer;
    background: #ffc107;
    color: #000;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    touch-action: manipulation;
}

.btn-pause-large:hover {
    background: #ffb300;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.btn-pause-large:active {
    transform: translateX(-50%) translateY(0);
}

.btn-pause-large.paused {
    background: #28a745;
    color: white;
}

.btn-pause-large.recording {
    background: #dc3545;
    color: white;
    animation: pulse-recording 1.5s infinite;
}

@keyframes pulse-recording {
    0%, 100% { 
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: translateX(-50%) scale(1.05);
    }
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.listening-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #28a745;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(1.2);
    }
}

#status {
    font-weight: 600;
    color: #667eea;
}

#question-count {
    background: #667eea;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.recording {
    background: #e74c3c;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

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

.conversation {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

.qa-block {
    margin-bottom: 25px;
    animation: slideIn 0.3s ease;
}

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

.question {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
}

.question-label {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
}

.answer {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #28a745;
    line-height: 1.6;
}

.answer-label {
    font-weight: 600;
    color: #28a745;
    margin-bottom: 5px;
}

.answer pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 10px 0;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 14px;
    line-height: 1.5;
}

.answer code {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 13px;
}

.answer pre code {
    background: transparent;
    padding: 0;
}

.answer p {
    margin: 8px 0;
}

.answer ul, .answer ol {
    margin: 8px 0;
    padding-left: 25px;
}

.answer li {
    margin: 4px 0;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.instructions {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.instructions h3 {
    color: #667eea;
    margin-bottom: 15px;
}

.instructions ul {
    list-style: none;
    padding-left: 0;
}

.instructions li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.instructions li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #dc3545;
}

.conversation::-webkit-scrollbar {
    width: 10px;
}

.conversation::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.conversation::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.conversation::-webkit-scrollbar-thumb:hover {
    background: #5568d3;
}

.conversation {
    scrollbar-width: thin;
    scrollbar-color: #667eea #e0e0e0;
}
