/* ===========================================
   Base & Common Components
   =========================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--mm-font);
    margin: 0;
    padding: 0;
    background: var(--mm-bg);
    color: var(--mm-text);
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn-primary {
    background: var(--mm-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--mm-radius-sm);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--mm-font);
    transition: background 0.2s, transform 0.1s;
    width: 100%;
}

.btn-primary:hover {
    background: #D05A28;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background: var(--mm-border);
    color: var(--mm-text-muted);
    cursor: not-allowed;
}

.btn-large {
    padding: 16px 24px;
    font-size: 16px;
}

button {
    font-family: var(--mm-font);
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

button:disabled {
    cursor: not-allowed;
}

.skip-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: var(--mm-text-muted);
    font-size: 14px;
    text-decoration: none;
}

/* Record Button */
.record-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--mm-primary);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(232, 106, 51, 0.35);
    transition: all 0.3s ease;
    color: white;
    -webkit-tap-highlight-color: transparent;
}

.record-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 35px rgba(232, 106, 51, 0.45);
}

.record-btn:active {
    transform: scale(0.97);
}

.record-btn:disabled {
    background: var(--mm-border);
    box-shadow: none;
    cursor: not-allowed;
}

.record-btn .record-icon {
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.record-btn.recording .record-icon {
    border-radius: 4px;
    width: 24px;
    height: 24px;
}

.record-btn.recording {
    animation: pulse-recording 1.5s infinite;
}

@keyframes pulse-recording {
    0%, 100% { box-shadow: 0 8px 30px rgba(232, 106, 51, 0.35); }
    50% { box-shadow: 0 8px 45px rgba(232, 106, 51, 0.6); }
}

/* Recording Controls */
.recording-controls {
    margin-top: 16px;
    text-align: center;
}

.recording-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 600;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    color: var(--mm-primary);
}

.recording-indicator .pulse {
    width: 14px;
    height: 14px;
    background: #E05252;
    border-radius: 50%;
    animation: pulse-dot 1s infinite;
}

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

.recording-hint {
    margin-top: 8px;
    color: var(--mm-text-muted);
    font-size: 14px;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--mm-border);
    border-radius: var(--mm-radius-sm);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--mm-card);
    color: var(--mm-text-secondary);
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--mm-primary);
    background: var(--mm-high-bg);
}

.drop-zone input {
    display: none;
}

.drop-zone p {
    margin: 0 0 4px;
}

.drop-zone-hint {
    font-size: 12px;
    color: var(--mm-text-muted);
}

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

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--mm-text-secondary);
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--mm-border);
    border-radius: var(--mm-radius-sm);
    font-size: 15px;
    font-family: var(--mm-font);
    background: var(--mm-card);
    color: var(--mm-text);
    transition: border-color 0.2s;
}

input[type="text"]:focus, input[type="number"]:focus {
    outline: none;
    border-color: var(--mm-primary);
    box-shadow: 0 0 0 3px rgba(232, 106, 51, 0.1);
}

/* File Info */
.file-info {
    margin-top: 10px;
    padding: 12px;
    background: var(--mm-high-bg);
    border-radius: var(--mm-radius-sm);
    display: none;
    font-size: 14px;
    color: var(--mm-high-text);
}

/* Status Messages */
.status {
    padding: 12px 16px;
    border-radius: var(--mm-radius-sm);
    margin-top: 12px;
    display: none;
    font-size: 14px;
}

.status.success {
    background: var(--mm-high-bg);
    color: var(--mm-high-text);
    display: block;
}

.status.error {
    background: #FDE8E8;
    color: #9B1C1C;
    display: block;
}

.status.loading {
    background: var(--mm-accent-light);
    color: var(--mm-med-text);
    display: block;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Login Screen */
.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
}

.login-form {
    width: 100%;
    max-width: 320px;
    margin-top: 24px;
}

.login-form input {
    text-align: center;
    margin-bottom: 12px;
}
