/* History Page Premium Styles */
.history-container {
    padding: 60px 0 100px;
}

.history-page-header {
    margin-bottom: 40px;
    text-align: center;
}

.history-page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.history-page-header p {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Card Grid Layout */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Premium Card Design */
.history-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px 25px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.history-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary-color, #fb8c00), #ffb74d);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.history-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--secondary-color, #fb8c00);
}

.history-card:hover::before {
    opacity: 1;
}

/* Doc Icon wrapper */
.doc-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #fff7ed;
    color: var(--secondary-color, #fb8c00);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.history-card:hover .doc-icon-wrapper {
    background: var(--secondary-color, #fb8c00);
    color: #fff;
    transform: scale(1.05);
}

/* Title & Year Info */
.history-year {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.history-title {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.5;
    min-height: 42px; /* standard height to align button */
}

/* Action PDF Button */
.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: #fff;
    color: var(--secondary-color, #fb8c00);
    border: 1.5px solid var(--secondary-color, #fb8c00);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-download-pdf:hover {
    background: var(--secondary-color, #fb8c00);
    color: #fff;
    box-shadow: 0 8px 20px rgba(251, 140, 0, 0.2);
}

.btn-download-pdf.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
    border-color: #cbd5e1;
    color: #94a3b8;
    background: #f8fafc;
}

/* Empty State Styles */
.history-empty-state {
    grid-column: 1 / -1;
    padding: 80px 0;
    text-align: center;
}

.history-empty-state i {
    font-size: 50px;
    color: #cbd5e1;
    margin-bottom: 15px;
}

.history-empty-state p {
    font-size: 16px;
    color: #94a3b8;
    font-weight: 700;
}

/* Responsive Customizations */
@media (max-width: 640px) {
    .history-container {
        padding: 30px 15px 60px;
    }
    
    .history-page-header h1 {
        font-size: 1.8rem;
    }
    
    .history-page-header p {
        font-size: 13px;
    }
    
    .history-grid {
        gap: 20px;
    }
    
    .history-card {
        padding: 25px 20px;
    }
}
