/* CPG Documents Specific Styles */
.header-card {
    background: linear-gradient(135deg, var(--primary-color), #0d62c9);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    position: relative;
}

.header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
}

.header-card .card-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-card .card-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

.documents-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.documents-card .card-body {
    padding: 2rem;
}

.documents-table {
    margin-bottom: 0;
}

.documents-table thead th {
    background: linear-gradient(135deg, var(--primary-color), #0d62c9);
    color: white;
    border: none;
    padding: 1.25rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

.documents-table thead th:first-child {
    border-radius: 10px 0 0 0;
}

.documents-table thead th:last-child {
    border-radius: 0 10px 0 0;
}

.documents-table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid #f0f0f0;
}

.documents-table tbody tr:hover {
    background: linear-gradient(135deg, #f8fdff, #e1f5fe);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
}

.documents-table tbody tr:last-child {
    border-bottom: none;
}

.documents-table tbody td {
    padding: 1.5rem 1rem;
    vertical-align: middle;
    border: none;
}

.document-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), #0d62c9);
    color: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.2);
}

.document-info {
    padding-left: 1rem;
}

.document-title {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.document-description {
    color: var(--light-text);
    font-size: 0.9rem;
    line-height: 1.4;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), #2d9247);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    box-shadow: 0 4px 8px rgba(52, 168, 83, 0.2);
    border: none;
    min-width: 120px;
}

.btn-download:hover {
    background: linear-gradient(135deg, #2d9247, #247a3a);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 168, 83, 0.3);
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 2rem;
}

.action-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid #f0f0f0;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.action-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0d62c9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 6px 12px rgba(26, 115, 232, 0.2);
}

.action-card h4 {
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.action-card p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.search-box {
    position: relative;
    margin-top: 1rem;
}

.search-box input {
    padding-right: 50px;
    border: 2px solid #e8eaed;
    border-radius: 25px;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.btn-search {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-search:hover {
    background: #0d62c9;
    transform: translateY(-50%) scale(1.1);
}

.btn-action {
    background: linear-gradient(135deg, var(--primary-color), #0d62c9);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 8px rgba(26, 115, 232, 0.2);
}

.btn-action:hover {
    background: linear-gradient(135deg, #0d62c9, #0a4fa3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 115, 232, 0.3);
}

/* Statistics */
.statistics-card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background: linear-gradient(135deg, #f8fdff, #e1f5fe);
    margin-bottom: 2rem;
}

.statistics-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.5rem;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--light-text);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-card .card-title {
        font-size: 2rem;
    }
    
    .header-card .card-subtitle {
        font-size: 1rem;
    }
    
    .documents-card .card-body {
        padding: 1rem;
    }
    
    .documents-table thead {
        display: none;
    }
    
    .documents-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #e8eaed;
        border-radius: var(--border-radius);
        padding: 1rem;
        background: white;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .documents-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .documents-table tbody td:last-child {
        border-bottom: none;
    }
    
    .documents-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary-color);
        margin-right: 1rem;
    }
    
    .document-info {
        padding-left: 0;
        text-align: right;
        flex: 1;
    }
    
    .quick-actions {
        margin-bottom: 1rem;
    }
    
    .action-card {
        margin-bottom: 1rem;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-card .card-title {
        font-size: 1.5rem;
    }
    
    .btn-download {
        min-width: 100px;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .action-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}

/* Animation for document items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.documents-table tbody tr {
    animation: fadeInUp 0.5s ease forwards;
}

.documents-table tbody tr:nth-child(1) { animation-delay: 0.1s; }
.documents-table tbody tr:nth-child(2) { animation-delay: 0.2s; }
.documents-table tbody tr:nth-child(3) { animation-delay: 0.3s; }
.documents-table tbody tr:nth-child(4) { animation-delay: 0.4s; }
.documents-table tbody tr:nth-child(5) { animation-delay: 0.5s; }

/* Print Styles */
@media print {
    .quick-actions,
    .statistics-card,
    .scroll-to-top {
        display: none;
    }
    
    .documents-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .btn-download {
        background: none;
        color: var(--dark-text);
        box-shadow: none;
    }
}