/* ====================================
   VOCALAI v1.0
   Main Stylesheet
==================================== */

:root{
    --primary:#6D5DFC;
    --secondary:#FF5A8A;
    --success:#22c55e;
    --danger:#ef4444;

    --bg:#f8faff;
    --card:#ffffff;
    --text:#111827;
    --muted:#6b7280;
    --border:#e5e7eb;

    --radius:20px;
    --shadow:0 10px 30px rgba(0,0,0,.08);
}

/* Reset */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Inter,sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.6;
}

/* Container */

.vocalai-wrapper{
    max-width:1200px;
    margin:auto;
    padding:30px 20px;
}

/* Header */

.vocalai-header{
    text-align:center;
    margin-bottom:30px;
}

.vocalai-title{
    font-size:42px;
    font-weight:800;
    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
    -webkit-background-clip:text;
    color:transparent;
}

.vocalai-subtitle{
    color:var(--muted);
    margin-top:10px;
}

/* Cards */

.vocalai-card{
    background:var(--card);
    border-radius:var(--radius);
    padding:20px;
    box-shadow:var(--shadow);
    margin-bottom:20px;
}

/* Textarea */

#textInput{
    width:100%;
    min-height:180px;
    border:1px solid var(--border);
    border-radius:16px;
    padding:16px;
    font-size:16px;
    resize:vertical;
    outline:none;
}

#textInput:focus{
    border-color:var(--primary);
}

/* Toolbar */

.vocalai-toolbar{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:15px;
}

/* Buttons */

.va-btn{
    border:none;
    cursor:pointer;
    border-radius:12px;
    padding:12px 18px;
    font-weight:600;
    transition:.3s;
}

.va-btn:hover{
    transform:translateY(-2px);
}

.va-btn-primary{
    background:linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    );
    color:white;
}

.va-btn-secondary{
    background:#f1f5f9;
    color:#111827;
}

.va-btn-danger{
    background:var(--danger);
    color:white;
}

/* Voice Grid */

.voice-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fill,minmax(250px,1fr));
    gap:15px;
}

.voice-card{
    background:white;
    border:1px solid var(--border);
    border-radius:16px;
    padding:15px;
    cursor:pointer;
    transition:.3s;
}

.voice-card:hover{
    border-color:var(--primary);
    transform:translateY(-3px);
}

.voice-card.active{
    border-color:var(--primary);
    background:rgba(109,93,252,.08);
}

.voice-name{
    font-weight:700;
    margin-bottom:4px;
}

.voice-lang{
    color:var(--muted);
    font-size:13px;
}

/* History */

.history-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.history-item{
    background:white;
    border:1px solid var(--border);
    border-radius:14px;
    padding:14px;
}

.history-date{
    font-size:12px;
    color:var(--muted);
}

/* Stats */

.stats-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(180px,1fr));
    gap:15px;
    margin-bottom:20px;
}

.stat-card{
    background:white;
    border-radius:16px;
    padding:20px;
    text-align:center;
    box-shadow:var(--shadow);
}

.stat-number{
    font-size:28px;
    font-weight:800;
    color:var(--primary);
}

.stat-label{
    color:var(--muted);
    font-size:14px;
}

/* Dark Mode */

body.dark{
    --bg:#0f172a;
    --card:#1e293b;
    --text:#f8fafc;
    --muted:#94a3b8;
    --border:#334155;
}

/* Scrollbar */

::-webkit-scrollbar{
    width:8px;
}

::-webkit-scrollbar-thumb{
    background:var(--primary);
    border-radius:20px;
}

/* Mobile */

@media(max-width:768px){

    .vocalai-title{
        font-size:30px;
    }

    .vocalai-toolbar{
        flex-direction:column;
    }

    .va-btn{
        width:100%;
    }

    #textInput{
        min-height:140px;
    }

}