/* ====================================
   VOCALAI - HISTORY
==================================== */

/* Wrapper */

.history-wrapper{
    display:flex;
    flex-direction:column;
    gap:16px;
}

/* History List */

.history-list{
    display:flex;
    flex-direction:column;
    gap:12px;
}

/* History Card */

.history-item{
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    padding:16px;
    transition:.3s;
}

.history-item:hover{
    border-color:var(--primary);
    box-shadow:
    0 10px 25px rgba(0,0,0,.06);
}

/* Top Row */

.history-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
}

/* Text Preview */

.history-text{
    font-size:15px;
    font-weight:600;
    color:var(--text);
    line-height:1.5;
}

/* Date */

.history-date{
    font-size:12px;
    color:var(--muted);
    margin-top:4px;
}

/* Voice Badge */

.history-voice{
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:4px 10px;
    border-radius:999px;
    background:#eef2ff;
    color:var(--primary);
    font-size:12px;
    margin-top:8px;
}

/* Audio Controls */

.history-controls{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:14px;
}

/* Buttons */

.history-btn{
    border:none;
    cursor:pointer;
    border-radius:10px;
    padding:8px 12px;
    font-size:13px;
    transition:.3s;
}

/* Play */

.history-play{
    background:var(--primary);
    color:white;
}

/* Download */

.history-download{
    background:#f1f5f9;
    color:#111827;
}

/* Delete */

.history-delete{
    background:#fee2e2;
    color:#dc2626;
}

/* Hover */

.history-play:hover,
.history-download:hover,
.history-delete:hover{
    transform:translateY(-2px);
}

/* Empty State */

.history-empty{
    text-align:center;
    padding:50px 20px;
    color:var(--muted);
}

.history-empty i{
    font-size:50px;
    opacity:.3;
    margin-bottom:12px;
}

/* Stats */

.history-stats{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(160px,1fr));
    gap:15px;
    margin-bottom:20px;
}

.history-stat{
    background:#fff;
    border-radius:16px;
    padding:18px;
    text-align:center;
    border:1px solid var(--border);
}

.history-stat-number{
    font-size:28px;
    font-weight:800;
    color:var(--primary);
}

.history-stat-label{
    font-size:13px;
    color:var(--muted);
}

/* Search */

.history-search{
    width:100%;
    padding:12px 15px;
    border:1px solid var(--border);
    border-radius:14px;
    margin-bottom:16px;
}

/* Filters */

.history-filters{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:20px;
}

.history-filter{
    border:none;
    padding:8px 14px;
    border-radius:999px;
    cursor:pointer;
    background:#f3f4f6;
}

.history-filter.active{
    background:var(--primary);
    color:white;
}

/* Mobile */

@media(max-width:768px){

    .history-header{
        flex-direction:column;
    }

    .history-controls{
        width:100%;
    }

    .history-btn{
        flex:1;
        text-align:center;
    }

}