/* ============================================
   NUEVA ECIJA ONLINE SERVICES PORTAL
   Main Stylesheet
   ============================================ */

:root {
    --primary-color: #0055A5;
    --secondary-color: #FFD700;
    --primary-light: #3379c6;
    --primary-dark: #003d82;
    --secondary-light: #ffe44d;
    --secondary-dark: #ccac00;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Login Page Styles */
.login-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/bg-pattern.png');
    opacity: 0.05;
    z-index: 0;
}

.login-card {
    border-radius: 20px;
    overflow: hidden;
    z-index: 1;
    position: relative;
}

.login-card .card-body {
    background-color: white;
}

.logo-container {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.nav-pills .nav-link {
    padding: 12px 20px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.3);
}

.nav-pills .nav-link:not(.active) {
    background-color: var(--gray-200);
    color: var(--gray-700);
}

.nav-pills .nav-link:not(.active):hover {
    background-color: var(--gray-300);
}

.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid var(--gray-300);
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 85, 165, 0.25);
}

.form-control-lg {
    font-size: 1.1rem;
}

.input-group .btn-outline-secondary {
    border: 2px solid var(--gray-300);
    border-left: none;
    background-color: white;
}

.input-group .btn-outline-secondary:hover {
    background-color: var(--gray-100);
    border-color: var(--gray-400);
}

.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 85, 165, 0.3);
}

.btn-warning {
    background-color: var(--secondary-color);
    color: #000;
}

.btn-warning:hover {
    background-color: var(--secondary-dark);
    color: #000;
    transform: translateY(-2px);
}

.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

/* Dashboard Styles */
.dashboard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 50px;
    margin-right: 10px;
}

.user-dropdown .dropdown-toggle::after {
    display: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.sidebar {
    background-color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    height: calc(100vh - 80px);
    position: sticky;
    top: 80px;
    overflow-y: auto;
}

.sidebar .nav-link {
    color: var(--gray-700);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 10px;
}

.main-content {
    padding: 30px;
    background-color: var(--gray-100);
    min-height: calc(100vh - 80px);
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.stat-card .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .stat-title {
    color: var(--gray-600);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.card-primary {
    border-left: 5px solid var(--primary-color);
}

.card-success {
    border-left: 5px solid var(--success-color);
}

.card-warning {
    border-left: 5px solid var(--warning-color);
}

.card-info {
    border-left: 5px solid var(--info-color);
}

.card-danger {
    border-left: 5px solid var(--danger-color);
}

.card-secondary {
    border-left: 5px solid var(--secondary-color);
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-card .service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-card .btn-service {
    background-color: var(--primary-color);
    color: white;
    border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.9rem;
}

.service-card .btn-service:hover {
    background-color: var(--primary-dark);
}

.table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 500;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 85, 165, 0.05);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-submitted { background-color: #cfe2ff; color: #084298; }
.status-received { background-color: #d1ecf1; color: #0c5460; }
.status-processing { background-color: #fff3cd; color: #856404; }
.status-approved { background-color: #d4edda; color: #155724; }
.status-completed { background-color: #d1e7dd; color: #0f5132; }
.status-disapproved { background-color: #f8d7da; color: #721c24; }

/* Footer */
.footer {
    background-color: var(--gray-800);
    color: white;
    padding: 30px 0;
    margin-top: auto;
}

.footer a {
    color: var(--secondary-color);
}

.footer a:hover {
    color: var(--secondary-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        height: auto;
        position: static;
        margin-bottom: 20px;
    }
    
    .main-content {
        padding: 15px;
    }
    
    .login-card .col-md-6:first-child {
        display: none;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}
/* ============================================
   ADDITIONAL STYLES FOR NEW COMPONENTS
   ============================================ */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    text-align: center;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 10000;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Breadcrumb */
.breadcrumb-nav {
    background-color: var(--gray-100);
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--gray-600);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.page-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
}

.page-actions .btn {
    margin-left: 10px;
}

/* Main Footer */
.main-footer {
    background-color: var(--gray-900);
    color: white;
    margin-top: 60px;
}

.footer-top {
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.contact-info p {
    color: var(--gray-300);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    color: var(--secondary-color);
    margin-top: 3px;
    min-width: 20px;
}

.footer-text {
    color: var(--gray-300);
    margin-bottom: 20px;
    line-height: 1.6;
}

.newsletter-form .input-group {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.newsletter-form input {
    border: none;
    padding: 12px 15px;
}

.newsletter-form button {
    padding: 0 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link.facebook { background-color: #3b5998; }
.social-link.twitter { background-color: #1da1f2; }
.social-link.youtube { background-color: #ff0000; }
.social-link.instagram { background-color: #e1306c; }

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    padding: 20px 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.copyright {
    color: var(--gray-400);
}

.footer-bottom-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
}

/* Back to Top Button */
.btn-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 85, 165, 0.3);
    z-index: 1000;
}

.btn-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 85, 165, 0.4);
}

/* Toast Notifications */
.toast-container {
    z-index: 1090;
}

.toast {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.toast.success {
    border-left: 4px solid var(--success-color);
}

.toast.error {
    border-left: 4px solid var(--danger-color);
}

.toast.warning {
    border-left: 4px solid var(--warning-color);
}

.toast.info {
    border-left: 4px solid var(--info-color);
}

.toast-header {
    border: none;
    border-radius: 10px 10px 0 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 0;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-actions {
        margin-top: 20px;
    }
    
    .page-actions .btn {
        margin: 5px;
        width: 100%;
    }
    
    .footer-top {
        padding: 40px 0;
    }
    
    .btn-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Print Styles */
@media print {
    .btn-back-to-top,
    .toast-container,
    .loading-overlay {
        display: none !important;
    }
    
    .main-footer {
        display: none;
    }
    
    .page-content {
        margin-top: 0;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .loading-overlay {
        background-color: rgba(0, 0, 0, 0.95);
    }
    
    .breadcrumb-nav {
        background-color: var(--gray-800);
        border-bottom-color: var(--gray-700);
    }
    
    .toast {
        background-color: var(--gray-800);
        color: var(--gray-100);
    }
    
    .toast-header {
        background-color: var(--gray-900);
        color: var(--gray-100);
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000AA;
        --secondary-color: #FFAA00;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}