/* General styles for MyInvois Portal */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --border-radius: 12px;
    --box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
}

.navbar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50px;
    padding: 10px 25px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);
}

.header-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.document-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-valid { background-color: #d4edda; color: #155724; }
.status-invalid { background-color: #f8d7da; color: #721c24; }
.status-cancelled { background-color: #fff3cd; color: #856404; }
.status-submitted { background-color: #cce5ff; color: #004085; }

.document-type {
    background-color: #e7f1ff;
    color: var(--secondary-color);
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    line-height: 1.2;
    white-space: nowrap;
}

.filter-section {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.stats-card {
    text-align: center;
    padding: 20px;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.stats-label {
    color: #6c757d;
    font-size: 0.9rem;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 30px;
}

.loading-spinner.show {
    display: block;
}

.pagination {
    justify-content: center;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    margin-top: 30px;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.search-box input {
    padding-left: 40px;
}

.document-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Animation for refresh icon */
.rotating {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}