:root {
    --whatsapp: #25D366;
    --dark: #121b22;
    --card: #1f2c34;
    --text: #e9edef;
}

body {
    background-color: var(--dark);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.recorder-card {
    background: var(--card);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    width: 350px;
    text-align: center;
    color: var(--text);
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    color: var(--whatsapp);
    font-weight: bold;
    font-size: 1.2rem;
}

.phone-input {
    width: 100%;
    padding: 12px;
    background: #2a3942;
    border: 1px solid #3b4a54;
    border-radius: 10px;
    color: white;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

.timer {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

#status {
    font-size: 0.9rem;
    color: #8696a0;
    margin-bottom: 2rem;
}

.btn-main {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: var(--whatsapp);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

.btn-main.recording {
    animation: pulse 1.5s infinite;
    background: #ea0038;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 2rem;
}

.btn-sub, .btn-send {
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-sub { background: #3b4a54; color: white; }
.btn-send { background: white; color: var(--dark); }

.disabled { opacity: 0.3; pointer-events: none; }

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 0, 56, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 20px rgba(234, 0, 56, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 0, 56, 0); }
}
