/* ==================== MAIN APPLICATION STYLES ==================== */

.main-interface {
    display: none;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgb(91, 148, 214);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    position: relative; 
    overflow: visible;
    min-height: 80px;
}

.header h1 {
    color: white;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* User Panel */
.user-panel {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    background: rgba(102, 126, 234, 0.1);
    padding: 10px 15px;
    border-radius: 10px;
}

/* Content Grid */
.content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

@media (max-width: 768px) {
    .content {
        grid-template-columns: 1fr;
    }
}

/* Sidebar */
.sidebar {
    background: var(--bg-light);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.sidebar h3 {
    margin-bottom: 15px;
    color: white;
}

/* User Stats */
.user-stats {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.user-stats p {
    margin: 10px 0;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-stats strong {
    color: #2d3748;
}

/* Stats Header */
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f7fafc;
}

.stats-header h4 {
    margin: 0;
    color: #2d3748;
    font-size: 1.2em;
}

.stats-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}

.stat-value {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #718096;
}

/* History List */
.history-list {
    margin-top: 15px;
}

.history-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.history-track-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.history-track-info i {
    color: #667eea;
    font-size: 1.2em;
    margin-top: 3px;
}

.history-details {
    flex: 1;
}

.history-track-title {
    font-weight: 600;
    font-size: 1em;
    color: #2d3748;
    margin-bottom: 5px;
}

.history-track-meta {
    font-size: 0.9em;
    color: #718096;
}

.history-artist {
    font-weight: 500;
    color: #4a5568;
}

.history-album {
    color: #718096;
    font-style: italic;
}

.history-meta {
    text-align: right;
    min-width: 120px;
    margin-left: 10px;
}

.history-time {
    font-size: 0.85em;
    color: #a0aec0;
    margin-bottom: 8px;
}

.history-extra {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.full-badge {
    background-color: #c6f6d5;
    color: #22543d;
}

.partial-badge {
    background-color: #fed7d7;
    color: #742a2a;
}

.skipped-badge {
    background-color: #feebc8;
    color: #744210;
}

.history-duration {
    font-size: 0.85em;
    color: #718096;
    font-weight: 500;
    padding: 2px 6px;
    background: #f7fafc;
    border-radius: 6px;
}

.history-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.history-section-title h4 {
    margin: 0;
    color: #2d3748;
    font-size: 1.1em;
}

.refresh-history-btn {
    background: transparent;
    border: none;
    color: #667eea;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.refresh-history-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: rotate(180deg);
}

.refresh-history-btn i {
    font-size: 0.9em;
}

.empty-history-message {
    text-align: center;
    padding: 40px 20px;
    color: #a0aec0;
}

.empty-history-message i {
    font-size: 3em;
    margin-bottom: 15px;
    color: #cbd5e0;
}

.empty-history-message p {
    margin: 0;
    font-size: 1em;
}

/* Device Icons */
.history-item .fa-mobile-alt {
    color: #4ecdc4;
}

.history-item .fa-desktop {
    color: #667eea;
}

.history-item .fa-laptop {
    color: #764ba2;
}

.history-item .fa-windows {
    color: #00a4ef;
}

/* Album Details */
.album-details {
    margin-top: 10px;
}

.album-details p {
    color: #718096;
    margin: 5px 0;
}

.album-details .year {
    font-size: 0.9em;
    color: #a0aec0;
}

.album-details .description {
    margin-top: 10px;
    font-style: italic;
}

/* Responsive History */
@media (max-width: 768px) {
    .history-item {
        flex-direction: column;
    }
    
    .history-meta {
        text-align: left;
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .history-extra {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .stats-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Loading History */
.history-loading {
    opacity: 0.6;
    pointer-events: none;
}

