/* Google Fonts - Inter & Poppins */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Poppins:wght@400;600&display=swap');

:root {
    --primary: #6366f1;       /* Indigo Blue */
    --secondary: #a855f7;     /* Purple */
    --accent: #f43f5e;        /* Rose Red for Mic */
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --glass: rgba(255, 255, 255, 0.8);
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    margin: 0;
    transition: all 0.3s ease;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Header Text */
h1, h2, h3, .fw-bold {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

/* Advanced Voice Button Wrapper */
.mic-box {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#start-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 32px;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

#start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 25px rgba(99, 102, 241, 0.5);
}

#start-btn:active {
    transform: scale(0.95);
}

/* Listening Animation (Pulse) */
.listening .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: ripple 1.5s infinite;
    z-index: 1;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.5); opacity: 0; }
}

.listening #start-btn {
    background: linear-gradient(135deg, #ef4444, #f43f5e); /* Red when listening */
}

/* Table Design */
.table {
    border-radius: 15px;
    overflow: hidden;
    background: white;
}

.table thead {
    background: #f1f5f9;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.table th, .table td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.task-row:hover {
    background-color: #f8fafc;
    transition: 0.2s;
}

/* Status Badges */
.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.bg-pending {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #ffedd5;
}

.bg-completed {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #dcfce7;
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .container { padding: 15px; }
    #start-btn { width: 70px; height: 70px; font-size: 28px; }
    .glass-card { padding: 20px !important; }
}

/* Progress Bar Customization */
.progress {
    background-color: #e2e8f0;
    border-radius: 10px;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}