/* JobScout - Main Stylesheet */

:root {
    --pf-primary: #2563eb;
    --pf-primary-dark: #1d4ed8;
    --pf-success: #16a34a;
    --pf-warning: #d97706;
    --pf-danger: #dc2626;
    --pf-dark: #1e293b;
    --pf-light: #f8fafc;
}

body {
    background-color: var(--pf-light);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Navbar */
.navbar-brand i {
    color: #60a5fa;
}

/* Stat Cards */
.stat-card {
    border: none;
    border-radius: 12px;
    transition: transform 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Work Order Cards */
.wo-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: box-shadow 0.15s ease;
}

.wo-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.wo-card .card-title {
    font-size: 1.1rem;
}

/* Status badges */
.badge {
    font-weight: 500;
    font-size: 0.78rem;
}

/* Table improvements */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748b;
    border-bottom-width: 2px;
}

.table-hover tbody tr {
    cursor: pointer;
}

/* Profile page */
.profile-header {
    background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-dark));
    color: white;
    border-radius: 12px;
    padding: 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    border: 4px solid white;
}

/* Portfolio grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.portfolio-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 1rem 0.75rem 0.5rem;
    font-size: 0.85rem;
}

/* Form styling */
.form-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-section h5 {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #94a3b8;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Alerts auto-dismiss */
.alert {
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Specialty tags */
.specialty-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    margin: 0.15rem;
}

/* Availability calendar */
.avail-day {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid #e2e8f0;
}

.avail-day.available { background: #dcfce7; color: #166534; border-color: #86efac; }
.avail-day.busy { background: #fecaca; color: #991b1b; border-color: #fca5a5; }
.avail-day.tentative { background: #fef3c7; color: #92400e; border-color: #fcd34d; }

/* Pending approval page */
.pending-approval {
    max-width: 500px;
    margin: 4rem auto;
    text-align: center;
}

/* Print styles */
@media print {
    .navbar, footer, .no-print { display: none !important; }
    .container-fluid { padding: 0 !important; }
}

/* Mobile improvements */
@media (max-width: 768px) {
    .stat-card .stat-number { font-size: 1.5rem; }
    .profile-header { padding: 1rem; }
    .profile-avatar, .profile-avatar-placeholder { width: 80px; height: 80px; }
}
