/* trufl Custom Styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bs-dark) 0%, var(--bs-secondary) 100%);
    border-radius: 1rem;
    margin-bottom: 2rem;
}

/* Feature Cards */
.feature-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Step Numbers */
.step-number {
    font-size: 1.5rem;
    width: 60px;
    height: 60px;
}

/* Navigation Enhancements */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Cards */
.card {
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Tables */
.table th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--bs-border-color);
}

.table-hover tbody tr:hover {
    background-color: var(--bs-secondary-bg);
}

/* Badges */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
}

/* Buttons */
.btn {
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Forms */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Dashboard Stats Cards */
.card-body h3 {
    font-weight: 700;
}

.card-body h6.card-title {
    font-weight: 600;
    opacity: 0.9;
}

/* File Upload Styling */
.form-control[type="file"] {
    padding: 0.5rem;
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    color: var(--bs-info);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--bs-warning);
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--bs-success);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--bs-danger);
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--bs-secondary);
}

/* Image Styling */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid var(--bs-border-color);
}

/* Loading States */
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Empty States */
.py-5 i {
    opacity: 0.5;
}

/* Dropdown Menu Scrolling Fix - Desktop and Mobile */
.navbar-nav .dropdown-menu {
    max-height: 70vh;
    overflow-y: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem !important;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Fix navbar collapse overflow on mobile */
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    /* Make dropdown menu items accessible on mobile */
    .navbar-nav .dropdown-menu {
        max-height: 50vh;
        overflow-y: auto;
        position: static !important;
        transform: none !important;
    }
}

/* Dark Mode Specific */
[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, #1a1d29 0%, #2c3e50 100%);
}

[data-bs-theme="dark"] .card {
    background-color: var(--bs-dark);
    border-color: var(--bs-secondary);
}

[data-bs-theme="dark"] .table-hover tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Checkbox Fix - Ensure checkmarks are visible */
.form-check-input {
    width: 1.4em !important;
    height: 1.4em !important;
    margin-top: 0.15em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70%;
    border: 2px solid #6c757d;
    border-radius: 0.35em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.form-check-input:hover {
    border-color: #0d6efd;
}

.form-check-input:checked {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    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") !important;
    background-size: 80%;
}

.form-check-input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check-input:checked:focus {
    border-color: #0a58ca;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Utility Classes */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.border-start-primary {
    border-left: 4px solid var(--bs-primary) !important;
}

.border-start-success {
    border-left: 4px solid var(--bs-success) !important;
}

.border-start-warning {
    border-left: 4px solid var(--bs-warning) !important;
}

.border-start-danger {
    border-left: 4px solid var(--bs-danger) !important;
}

.border-start-info {
    border-left: 4px solid var(--bs-info) !important;
}
