/* Konjyosom Tech Solutions - Main Stylesheet */
:root {
    --primary: #1a5276;
    --primary-dark: #154360;
    --secondary: #2ecc71;
    --accent: #e74c3c;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --gray: #6c757d;
    --gradient: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: rgba(188, 211, 225, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0;
    transition: all 0.3s ease;
    z-index: 999;
}
.navbar.scrolled {
    background: rgba(188, 211, 225, 1);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    padding: 0.25rem 0;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-brand img {
    max-height: 34px;
    width: auto;
    object-fit: contain;
    margin-left: 20px;
}
.nav-link {
    color: rgba(19, 41, 125, 0.85) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem !important;
    transition: all 0.3s ease;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-link:hover::after, .nav-link.active::after { width: 80%; }
.nav-link:hover, .nav-link.active { color: rgba(19, 41, 125, 1) !important; }
.nav-link.btn-primary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white !important;
    border-radius: 25px;
    padding: 0.5rem 1.5rem !important;
}
.nav-link.btn-primary:hover { background: #27ae60; border-color: #27ae60; }

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--gradient);
    z-index: -2;
}
.hero-background::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="80" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 100px 100px;
    animation: float 20s linear infinite;
}
@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.2);
    z-index: -1;
}
.hero-content {
    position: relative;
    z-index: 1;
    color: white;
    padding-top: 80px;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}
.typing-container {
    font-size: 1.5rem;
    font-weight: 500;
    min-height: 2rem;
    animation: fadeInUp 1s ease 0.3s both;
}
.typing-prefix { color: rgba(255,255,255,0.8); }
.typing-text { color: var(--secondary); font-weight: 600; }
.typing-cursor { animation: blink 1s infinite; }
@keyframes blink { 0%,50%{opacity:1} 51%,100%{opacity:0} }
.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    animation: fadeInUp 1s ease 0.6s both;
}
.hero-buttons {
    animation: fadeInUp 1s ease 0.9s both;
}
.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    margin: 0.25rem;
}
.hero-buttons .btn-primary {
    background: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 5px 20px rgba(46,204,113,0.3);
}
.hero-buttons .btn-primary:hover {
    background: #27ae60;
    border-color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(46,204,113,0.4);
}
.hero-buttons .btn-outline-light:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-3px);
}
.hero-buttons .btn-success {
    background: #25d366;
    border-color: #25d366;
}
.hero-buttons .btn-success:hover {
    background: #128c7e;
    transform: translateY(-3px);
}
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}
.scroll-down a { color: white; font-size: 2rem; }
@keyframes bounce {
    0%,20%,50%,80%,100%{transform:translateX(-50%)translateY(0)}
    40%{transform:translateX(-50%)translateY(-10px)}
    60%{transform:translateX(-50%)translateY(-5px)}
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== SECTIONS ===== */
.section-header { margin-bottom: 3rem; }
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}
.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    height: 100%;
    border: 1px solid #eee;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.service-icon {
    width: 80px; height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(26,82,118,0.3);
}
.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}
.service-card p {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-link:hover {
    color: var(--primary-dark);
    gap: 1rem;
}

/* ===== FEATURE BOXES ===== */
.feature-box {
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}
.feature-box:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.feature-box i {
    color: var(--primary) !important;
    transition: all 0.3s ease;
}
.feature-box:hover i {
    transform: scale(1.2);
}
.feature-box h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1rem 0 0.5rem;
}
.feature-box p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: var(--gradient);
    color: white;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 500px; height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.cta-section .btn-light {
    color: var(--primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
}
.cta-section .btn-outline-light {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
}
.footer h4, .footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer a:hover {
    color: var(--secondary);
    padding-left: 5px;
}
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 0.75rem; }
.social-links { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.social-links a {
    display: inline-flex;
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}
.social-links a:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

/* ===== FORMS ===== */
.form-control, .form-select {
    border-radius: 10px;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26,82,118,0.15);
}
/* Hide the browser's built-in password reveal/clear icons (Edge/IE),
   so only the custom eye toggle button is shown */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}
.form-label {
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.5rem;
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(26,82,118,0.3);
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}
.card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.12); }

/* ===== DASHBOARD SIDEBAR ===== */
.dashboard-sidebar {
    background: var(--dark);
    color: white;
    padding: 1.5rem;
    overflow-y: auto;
}
.sidebar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.sidebar-nav { list-style: none; padding: 0; }
.sidebar-nav li { margin-bottom: 0.25rem; }
.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.sidebar-nav a i { width: 25px; margin-right: 0.5rem; font-size: 1rem; }
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}
.sidebar-nav a.active { background: var(--primary); }

/* ===== STAT CARDS ===== */
.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }
.stat-card .stat-icon {
    width: 55px; height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}
.stat-card .stat-label {
    color: var(--gray);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ===== STATUS BADGES ===== */
.badge-pending { background: #f39c12 !important; }
.badge-assigned { background: #3498db !important; }
.badge-accepted { background: #9b59b6 !important; }
.badge-on-site { background: #e67e22 !important; }
.badge-in-progress { background: #e67e22 !important; }
.badge-completed { background: var(--secondary) !important; }
.badge-closed { background: var(--gray) !important; }
.badge-cancelled { background: var(--accent) !important; }

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient);
    position: relative;
    overflow: hidden;
}
.login-page::before {
    content: '';
    position: absolute;
    top: -50%; left: -20%;
    width: 600px; height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.login-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 1;
}
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo i {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.login-logo h3 { font-weight: 700; color: var(--dark); }

/* ===== TABLES ===== */
.table th {
    font-weight: 600;
    color: var(--dark);
    border-top: none;
    background: #f8f9fa;
}
.table td { vertical-align: middle; }

/* ===== ALERTS ===== */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* ===== SIGNATURE PAD ===== */
.signature-pad {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    cursor: crosshair;
    background: #fafafa;
    touch-action: none;
}
.signature-pad:hover { border-color: var(--primary); }

/* ===== PHOTO UPLOAD ===== */
.photo-upload {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}
.photo-upload:hover {
    border-color: var(--primary);
    background: #f0f7ff;
}

/* ===== ANIMATIONS ===== */
.animate-fade-in { animation: fadeInUp 0.6s ease; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .typing-container { font-size: 1rem; }
    .hero-buttons .btn { display: block; margin: 0.5rem auto; width: 90%; }
    .section-title { font-size: 1.8rem; }
    .login-card { padding: 2rem 1.5rem; margin: 1rem; }
    .main-content { margin-left: 0 !important; padding: 1rem; }
    .dashboard-sidebar { transform: translateX(-100%); transition: transform 0.3s ease; }
    .dashboard-sidebar.show { transform: translateX(0); }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }
