/* =============================================
   F.A.S.T. - Custom Styles
   Dark theme matching the original design
   ============================================= */

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

/* Table enhancements */
.fmco-table {
    border-collapse: separate;
    border-spacing: 0;
}
.fmco-table th {
    background-color: #151e2e;
    color: #94a3b8;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 10;
}
.fmco-table td, .fmco-table th {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #334155;
    font-size: 0.875rem;
}
.fmco-table tbody tr {
    transition: background-color 0.2s;
}
.fmco-table tbody tr:hover {
    background-color: #273549;
}

/* Status badge */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Card hover effect */
.fmco-card {
    transition: transform 0.2s, border-color 0.2s;
}
.fmco-card:hover {
    transform: translateY(-2px);
    border-color: #475569;
}

/* Gantt chart bar */
.gantt-bar {
    height: 28px;
    border-radius: 4px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: opacity 0.2s;
    cursor: pointer;
    z-index: 5;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0 6px;
}
.gantt-bar:hover {
    opacity: 0.85;
    z-index: 10;
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Modal backdrop */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: fadeIn 0.2s ease-out;
}

/* Form controls matching dark theme */
.fmco-input {
    background-color: #0f172a;
    border: 1px solid #334155;
    color: #f8fafc;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    width: 100%;
    transition: border-color 0.2s;
}
.fmco-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.2);
}
.fmco-input::placeholder {
    color: #64748b;
}

select.fmco-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}
.btn-success:hover { opacity: 0.9; }
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}
.btn-danger:hover { opacity: 0.9; }
.btn-secondary {
    background: #334155;
    color: #cbd5e1;
    border: 1px solid #475569;
}
.btn-secondary:hover { background: #3d4f66; }
.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}
.btn-warning:hover { opacity: 0.9; }

/* Pagination */
.pagination {
    display: flex;
    gap: 0.25rem;
}
.pagination a, .pagination span {
    padding: 0.4rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    color: #94a3b8;
    background: #1e293b;
    border: 1px solid #334155;
    transition: all 0.2s;
    text-decoration: none;
}
.pagination a:hover { background: #334155; color: #f8fafc; }
.pagination .active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}
