/* Modern Styles for NBG-DCR Application */

/* ===== HERO SECTIONS ===== */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 2rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 2rem;
    text-align: center;
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
}

.hero-buttons .btn {
    border-radius: 50px;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ===== MODERN CARDS ===== */
.modern-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 1.5rem;
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.modern-card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    padding: 1.5rem 2rem;
    margin: -2rem -2rem 1.5rem -2rem;
}

.modern-card-header h3 {
    margin: 0;
    font-weight: 600;
}

/* ===== QUICK ACTION ITEMS ===== */
.quick-action-item {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.quick-action-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.action-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.action-link {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-link:hover {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

/* ===== MODERN BUTTONS ===== */
.btn-modern {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-modern-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-modern-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-modern-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    color: white;
}

.btn-modern-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

.btn-modern-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white;
}

.btn-modern-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

/* ===== MODERN TABLES ===== */
.modern-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.modern-table thead th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.modern-table tbody tr {
    transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: scale(1.01);
}

.modern-table tbody td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid #f8f9fa;
}

/* ===== ENHANCED MODERN FORMS ===== */
.modern-form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.modern-form-control {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 0.875rem 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8f9fa;
    font-size: 0.95rem;
    width: 100%;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.modern-form-control:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25),
                inset 0 1px 2px rgba(0,0,0,0.05);
    outline: none;
    transform: translateY(-1px);
}

.modern-form-control:invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

.modern-form-control:invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.modern-form-control:valid {
    border-color: #28a745;
    background: #f8fff8;
}

.modern-form-control:valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.modern-form-control::placeholder {
    color: #adb5bd;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modern-form-control:focus::placeholder {
    opacity: 0.7;
}

.modern-form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
    letter-spacing: 0.025em;
}

.modern-form-label.required::after {
    content: ' *';
    color: #dc3545;
    font-weight: bold;
}

/* Enhanced form validation feedback */
.invalid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #dc3545;
    font-weight: 500;
    padding-left: 0.5rem;
    position: relative;
}

.invalid-feedback::before {
    content: '⚠ ';
    font-weight: bold;
}

.valid-feedback {
    display: none;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #28a745;
    font-weight: 500;
    padding-left: 0.5rem;
}

.valid-feedback::before {
    content: '✓ ';
    font-weight: bold;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.was-validated .form-control:valid ~ .valid-feedback,
.form-control.is-valid ~ .valid-feedback {
    display: block;
}

/* Custom select styling */
.modern-form-control.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

.modern-form-control.form-select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

/* Textarea specific styling */
.modern-form-control.form-control {
    resize: vertical;
    min-height: 2.5rem;
}

.modern-form-control.form-control[rows] {
    min-height: auto;
}

/* Input group styling */
.modern-input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.modern-input-group .modern-form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    margin-bottom: 0;
}

.modern-input-group-text {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.125rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    color: #6c757d;
    text-align: center;
    white-space: nowrap;
    background-color: #e9ecef;
    border: 2px solid #e9ecef;
    border-radius: 12px;
}

.modern-input-group .modern-form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}

.modern-input-group .modern-form-control:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
}

.modern-input-group .modern-input-group-text:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: 0;
}

.modern-input-group .modern-input-group-text:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 0;
}

/* File input styling */
input[type="file"].modern-form-control {
    padding: 0.5rem;
    background: white;
    cursor: pointer;
}

input[type="file"].modern-form-control::-webkit-file-upload-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-right: 1rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

input[type="file"].modern-form-control::-webkit-file-upload-button:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4c93 100%);
    transform: translateY(-1px);
}

/* Checkbox and radio styling */
.modern-form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.75rem;
    margin-bottom: 0.5rem;
}

.modern-form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    margin-left: -1.75rem;
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modern-form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    background-size: 0.75rem;
    background-repeat: no-repeat;
    background-position: center;
}

.modern-form-check-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    outline: none;
}

.modern-form-check-label {
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0;
}

/* Form help text */
.modern-form-text {
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #6c757d;
    padding-left: 0.5rem;
}

.modern-form-text .fas,
.modern-form-text .far {
    margin-right: 0.25rem;
    color: #adb5bd;
}

/* ===== MODERN BADGES ===== */
.badge-modern {
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.875rem;
}

.badge-modern-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-modern-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.badge-modern-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
}

.badge-modern-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white;
}

.badge-modern-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
    color: white;
}

/* ===== MODERN ALERTS ===== */
.alert-modern {
    border-radius: 15px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.alert-modern-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-modern-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-modern-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-modern-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* ===== MODERN PAGINATION ===== */
.pagination-modern .page-link {
    border-radius: 50px;
    border: none;
    margin: 0 0.25rem;
    padding: 0.75rem 1rem;
    color: #667eea;
    transition: all 0.3s ease;
}

.pagination-modern .page-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
}

.pagination-modern .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* ===== MODERN MODALS ===== */
.modal-modern .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-modern .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
    border: none;
}

.modal-modern .modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
}

/* ===== MODERN NAVIGATION ===== */
.navbar-modern {
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 0 0 20px 20px;
}

.navbar-modern .navbar-brand {
    font-weight: 700;
    color: #667eea;
}

.navbar-modern .nav-link {
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    color: #495057;
}

.navbar-modern .nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.navbar-modern .navbar-toggler {
    border: none;
    padding: 0.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.navbar-modern .navbar-toggler:hover {
    background: rgba(102, 126, 234, 0.1);
}

.navbar-modern .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.navbar-modern .dropdown-menu {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 0.5rem;
}

.navbar-modern .dropdown-item {
    border-radius: 10px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-modern .dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateX(5px);
}

/* ===== MODERN SIDEBAR ===== */
.sidebar-modern {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 2rem;
}

.sidebar-modern .nav-link {
    border-radius: 15px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    color: #495057;
}

.sidebar-modern .nav-link:hover,
.sidebar-modern .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

/* ===== MODERN STATS CARDS ===== */
.stat-card-modern {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.stat-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.stat-icon-modern {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== ENHANCED RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Hero Section Mobile Optimization */
    .hero-section {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-content {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin-bottom: 0;
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* Card Layout Improvements */
    .modern-card {
        margin-bottom: 1rem;
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .modern-card-header {
        margin: -1.25rem -1.25rem 1rem -1.25rem;
        padding: 1rem 1.25rem;
        border-radius: 12px 12px 0 0;
    }
    
    /* Quick Actions Mobile */
    .quick-action-item {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .action-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .action-link {
        position: static;
        width: auto;
        height: auto;
        background: none;
        margin-top: 1rem;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        background: rgba(102, 126, 234, 0.1);
    }
    
    /* Modern Button Mobile Adaptations */
    .btn-modern {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-modern:last-child {
        margin-bottom: 0;
    }
    
    /* Navigation Mobile */
    .navbar-modern .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 0;
        box-shadow: none;
        border: 1px solid #e9ecef;
        background-color: rgba(248, 249, 250, 0.95);
    }
    
    .navbar-modern .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .navbar-modern .dropdown-item:hover {
        transform: none;
        background: rgba(102, 126, 234, 0.1);
    }
    
    /* Sidebar Mobile */
    .sidebar-modern {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .sidebar-modern .nav-link {
        padding: 0.75rem 1rem;
        margin-bottom: 0.25rem;
    }
    
    /* Stats Cards Mobile */
    .stat-card-modern {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stat-icon-modern {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Modal Mobile */
    .modal-modern .modal-content {
        margin: 0.5rem;
        border-radius: 15px;
    }
    
    .modal-modern .modal-header {
        padding: 1rem;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-modern .modal-body {
        padding: 1rem;
    }
    
    .modal-modern .modal-footer {
        padding: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-modern .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Form Controls Mobile */
    .modern-form-control {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.75rem 1rem;
    }
    
    .modern-form-label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    /* Table Mobile */
    .modern-table {
        font-size: 0.85rem;
    }
    
    .modern-table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .modern-table tbody td {
        padding: 0.75rem 0.5rem;
    }
    
    /* Pagination Mobile */
    .pagination-modern .page-link {
        padding: 0.5rem 0.75rem;
        margin: 0 0.1rem;
        font-size: 0.85rem;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 1.7rem;
    }
    
    .hero-content .lead {
        font-size: 0.95rem;
    }
    
    .modern-card {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .action-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .quick-action-item {
        padding: 1.25rem 0.75rem;
    }
    
    .btn-modern {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .stat-icon-modern {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .stat-card-modern {
        padding: 1.25rem;
    }
}

/* Landscape orientation optimizations */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content .lead {
        margin-bottom: 1rem;
    }
    
    .modal-modern .modal-dialog {
        margin: 0.25rem;
        max-height: calc(100vh - 0.5rem);
    }
    
    .modal-modern .modal-content {
        max-height: 100%;
        overflow-y: auto;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
}

/* ===== MODERN FOOTER ===== */
.footer {
    background: white;
    border-top: 1px solid #e9ecef;
    padding: 0.75rem 0;
    margin-top: 2rem;
    min-height: auto;
}

.footer .row {
    min-height: auto;
}

.footer a {
    color: #667eea;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: #764ba2;
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer {
        padding: 0.5rem 0;
        margin-top: 1rem;
    }
    
    .footer .row > div {
        text-align: center !important;
        margin-bottom: 0.5rem;
    }
    
    .footer .row > div:last-child {
        margin-bottom: 0;
    }
}

/* ===== PWA INSTALL BUTTON ===== */
#install-pwa {
    border-radius: 50px;
    transition: all 0.3s ease;
}

#install-pwa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== MODERN BODY BACKGROUND ===== */
body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

/* ===== MODERN CONTAINER ===== */
.container-fluid {
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .container-fluid {
        padding: 2rem;
    }
}

/* ===== ENHANCED PWA MOBILE STYLES ===== */

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    z-index: 1030;
    padding: 0.5rem 0;
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
    }
    
    body.has-mobile-nav {
        padding-bottom: 80px;
    }
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 8px;
    min-width: 60px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    text-decoration: none;
}

.mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.mobile-nav-item span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* PWA Safe Area Support */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .navbar {
        padding-top: calc(env(safe-area-inset-top) + 0.5rem);
    }
    
    .container-fluid {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .mobile-bottom-nav {
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    }
}

/* Touch-Optimized Elements */
@media (pointer: coarse) {
    .btn, .btn-modern {
        min-height: 44px;
        min-width: 44px;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .modern-card {
        padding: 1.5rem;
    }
}

/* Enhanced Mobile Modals */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }
    
    .modal-content {
        border-radius: 15px;
        border: none;
        max-height: calc(100vh - 1rem);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    
    .modal-body {
        overflow-y: auto;
        flex: 1;
        max-height: calc(100vh - 200px);
    }
}

/* PWA Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Offline Indicator */
.offline-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #dc3545;
    color: white;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.875rem;
    z-index: 9999;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.offline-indicator.show {
    transform: translateY(0);
}

/* Pull-to-Refresh */
.pull-to-refresh {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0 0 15px 15px;
    transition: top 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pull-to-refresh.active {
    top: 0;
}

/* Enhanced Mobile Tables */
@media (max-width: 768px) {
    .table-responsive {
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        margin-bottom: 1rem;
    }
    
    .modern-table {
        font-size: 0.875rem;
        margin-bottom: 0;
    }
    
    .modern-table th,
    .modern-table td {
        padding: 0.5rem 0.75rem;
        white-space: nowrap;
    }
    
    .modern-table th {
        font-size: 0.8rem;
    }
}

/* Mobile Card Improvements */
@media (max-width: 768px) {
    .row .col-lg-4,
    .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    .modern-card {
        margin-bottom: 1rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Mobile Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* PWA Install Prompt */
.pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1040;
    display: none;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pwa-install-prompt.show {
    display: block;
}

@media (max-width: 768px) {
    .pwa-install-prompt {
        bottom: 100px; /* Above bottom nav */
        left: 10px;
        right: 10px;
    }
} 