/**
 * Shadman IT Project Portal - Public & Client Portal Stylesheet
 * Premium IT Service Provider Aesthetic: Technology-focused, clean, trustworthy, modern
 */

:root {
    --portal-bg: #070b14;
    --card-bg: #0f172a;
    --card-hover: #1e293b;
    --card-border: #1e293b;
    --border-highlight: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-cyan: #06b6d4;
    --accent-cyan-hover: #0891b2;
    --accent-blue: #0284c7;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;
}

body.portal-body {
    background-color: var(--portal-bg);
    color: var(--text-primary);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden;
}

/* Background Subtle Tech Grid Glow */
.portal-bg-decor {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(2, 132, 199, 0.07) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.portal-container {
    position: relative;
    z-index: 1;
}

/* Navbar */
.portal-navbar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 16px 0;
}

.portal-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-badge {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
    padding: 65px 0 45px;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.8px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-title span {
    background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto 35px;
    line-height: 1.6;
}

/* Verification Card */
.verify-card {
    background: var(--card-bg);
    border: 1px solid var(--border-highlight);
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    max-width: 580px;
    margin: 0 auto;
}

.verify-card:hover {
    box-shadow: 0 25px 50px rgba(6, 182, 212, 0.1);
}

.verify-input {
    background-color: #070b14 !important;
    border: 1px solid #334155 !important;
    color: #f8fafc !important;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.verify-input:focus {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2) !important;
}

.btn-verify {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-cyan) 100%);
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 28px;
    border-radius: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-verify:hover {
    color: #ffffff;
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.35);
}

/* Portal Dashboard Cards */
.portal-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s ease;
}

.portal-card:hover {
    border-color: var(--border-highlight);
}

.portal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Completion Banner */
.completion-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
}

.completion-badge {
    display: inline-block;
    background: #10b981;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 5px 16px;
    border-radius: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Timeline Components */
.timeline-bar-wrapper {
    background-color: #070b14;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--card-border);
}

.timeline-progress {
    height: 12px;
    background: #1e293b;
    border-radius: 6px;
    overflow: hidden;
}

.timeline-progress-fill {
    height: 100%;
    transition: width 0.6s ease;
}

/* Checklist Items */
.checklist-item {
    background: #070b14;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.checklist-item:hover {
    border-color: var(--border-highlight);
    transform: translateX(3px);
}

.check-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.8rem;
}

.check-icon.completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.check-icon.pending {
    background: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
    border: 1px solid #334155;
}

/* Finance Display Cards */
.finance-metric-card {
    background: #070b14;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 18px;
    height: 100%;
}

.finance-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.finance-value {
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffffff;
}

/* Responsive Table / Card Transition */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    .verify-card {
        padding: 25px 18px;
    }
    .portal-card {
        padding: 18px 15px;
    }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

