/* Custom Styles for Hours Management System */

/* General styles - compatible with Tailwind */
body {
    font-family: 'Outfit', sans-serif;
    /* Background color now handled by Tailwind bg-gray-50 */
    /* Text color now handled by Tailwind text-gray-800 */
}

/* Dashboard tiles - Tailwind compatible */
.dashboard-tile {
    /* Using Tailwind equivalent classes in HTML:
    bg-white rounded-lg shadow-md p-5 mb-5 transition-transform duration-300 ease-in-out */
    transition: transform 0.3s ease;
}

.dashboard-tile:hover {
    transform: translateY(-5px);
}

.dashboard-tile .tile-icon {
    /* Using Tailwind equivalent classes in HTML:
    text-4xl mb-4 text-primary */
    color: var(--color-primary, #4f46e5);
}

.dashboard-tile .tile-number {
    /* Fallback styles for non-Tailwind elements */
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.dashboard-tile .tile-title {
    /* Fallback styles for non-Tailwind elements */
    color: #6b7280;
    font-size: 1rem;
}

/* Form wizard - Tailwind compatible */
.form-wizard-container {
    /* Fallback styles for non-Tailwind elements */
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.wizard-progress {
    /* Fallback styles for non-Tailwind elements */
    margin-bottom: 1.5rem;
}

.wizard-step {
    position: relative;
    text-align: center;
}

.wizard-step-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #757575;
    margin: 0 auto 10px;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.wizard-step.active .wizard-step-number {
    background-color: var(--color-primary, #4f46e5);
    color: #fff;
}

.wizard-step.completed .wizard-step-number {
    background-color: var(--color-success, #10b981);
    color: #fff;
}

.wizard-step-title {
    font-size: 0.9rem;
    color: #757575;
}

.wizard-step.active .wizard-step-title {
    color: var(--color-primary, #4f46e5);
    font-weight: bold;
}

.wizard-step.completed .wizard-step-title {
    color: var(--color-success, #10b981);
}

.wizard-progress-bar {
    height: 3px;
    background-color: #e0e0e0;
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1;
}

.wizard-step:first-child .wizard-progress-bar {
    left: 50%;
}

.wizard-step:last-child .wizard-progress-bar {
    right: 50%;
}

.wizard-step.active .wizard-progress-bar,
.wizard-step.completed .wizard-progress-bar {
    background-color: var(--color-primary, #4f46e5);
}

.wizard-navigation {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

/* Tables */
.table-responsive {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

/* Assessment form */
.assessment-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.assessment-header {
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

/* Login page */
.login-container {
    max-width: 450px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo h1 {
    font-weight: 300;
    color: #3498db;
}

/* Buttons */
.btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-success {
    background-color: #2ecc71;
    border-color: #2ecc71;
}

.btn-success:hover {
    background-color: #27ae60;
    border-color: #27ae60;
}

/* Card styles */
.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    font-weight: bold;
}

/* Custom badge styles */
.badge-primary {
    background-color: #3498db;
}

.badge-success {
    background-color: #2ecc71;
}

.badge-warning {
    background-color: #f39c12;
}

.badge-danger {
    background-color: #e74c3c;
}

/* Report filters */
.report-filters {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

/* PDF preview */
.pdf-preview {
    height: 500px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

/* Mobile Menu Animations */
#mobile-menu {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.menu-open {
    opacity: 1;
    transform: translateY(0);
}

/* Modern Navbar Enhancements */
/* Active state now handled by PHP classes in header.php */

/* Dropdown Enhancements */
.dropdown-menu-animated {
    transform-origin: top center;
    animation: dropdown-animation 0.2s ease-out forwards;
}

@keyframes dropdown-animation {
    0% {
        opacity: 0;
        transform: scaleY(0.8);
    }
    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .wizard-step-title {
        font-size: 0.7rem;
    }
    
    .dashboard-tile .tile-number {
        font-size: 1.5rem;
    }
}
