/* ============================================
   WebManage - Professional Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0f766e;
    --primary-dark: #0d5c56;
    --primary-light: #14b8a6;
    --accent: #f59e0b;
    --accent-soft: #fef3c7;
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    --radius-sm: 0.5rem;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.layout-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.layout-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.layout-main {
    flex: 1;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.5);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background: #20bd5a;
    color: white !important;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 1.75rem;
}

.whatsapp-float-text {
    display: none;
}

@media (min-width: 768px) {
    .whatsapp-float {
        width: auto;
        height: auto;
        padding: 0.75rem 1.25rem;
        border-radius: 2rem;
    }

    .whatsapp-float i {
        font-size: 1.25rem;
        margin-right: 0.5rem;
    }

    .whatsapp-float-text {
        display: inline;
        font-weight: 600;
        font-size: 0.875rem;
    }
}

/* ============================================
   Company Header - Top Bar
   ============================================ */
.company-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.company-header .container {
    max-width: 1280px;
}

.company-logo {
    max-height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
}

.company-name {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--white);
    letter-spacing: -0.02em;
}

.contact-info a {
    color: var(--gray-300);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.contact-info a:hover {
    color: var(--primary-light);
}

.contact-info .bi {
    opacity: 0.9;
}

/* ============================================
   Main Navigation
   ============================================ */
.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow);
    padding: 0.875rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-100);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    letter-spacing: -0.03em;
}

.nav-link {
    font-weight: 600;
    color: var(--dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary) !important;
    background: var(--gray-100);
}

.nav-link.active {
    color: var(--primary) !important;
    background: rgba(15, 118, 110, 0.08);
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px var(--primary);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.dropdown-item:hover {
    background: var(--gray-100);
}

/* ============================================
   Banner Carousel
   ============================================ */
#bannerCarousel {
    max-height: 520px;
    overflow: hidden;
}

#bannerCarousel .carousel-item {
    height: 520px;
}

#bannerCarousel .carousel-item img {
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

#bannerCarousel .carousel-caption {
    bottom: 3rem;
    left: 2rem;
    right: 2rem;
    text-align: left;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.6) 100%);
    backdrop-filter: blur(12px);
    padding: 2rem 2.5rem;
    border-radius: var(--radius-lg);
}

#bannerCarousel .carousel-caption h5 {
    font-size: 2rem;
    font-weight: 700;
    text-shadow: none;
}

.carousel-control-prev,
.carousel-control-next {
    width: 4rem;
    height: 4rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    opacity: 1;
    transition: var(--transition);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.35);
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    transition: var(--transition);
}

.carousel-indicators button.active {
    background: var(--white);
    transform: scale(1.2);
}

/* ============================================
   Main Content Area
   ============================================ */
main {
    min-height: 50vh;
    padding: 2.5rem 0 4rem;
}

.container {
    max-width: 1280px;
}

/* Section Headers */
section h2 {
    font-weight: 800;
    font-size: 2rem;
    color: var(--dark);
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.section-header h1 {
    font-weight: 800;
    font-size: 2.25rem;
    color: var(--dark);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

/* ============================================
   Detail Pages - Product & Service
   ============================================ */
.detail-page .breadcrumb {
    background: transparent;
    padding: 0;
}

.detail-page .breadcrumb-item a {
    color: var(--gray-500);
    text-decoration: none;
}

.detail-page .breadcrumb-item a:hover {
    color: var(--primary);
}

.detail-page .breadcrumb-item.active {
    color: var(--dark);
}

.detail-header {
    padding-bottom: 1rem;
}

.detail-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.detail-title {
    font-weight: 800;
    font-size: 2.25rem;
    color: var(--dark);
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.detail-meta {
    font-size: 0.9375rem;
    margin-top: 0.5rem;
}

.detail-meta i {
    opacity: 0.8;
}

.detail-lead {
    font-size: 1.25rem;
    color: var(--gray-500);
    margin-top: 1rem;
    line-height: 1.7;
}

.detail-image img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
}

.detail-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-actions .btn {
    padding: 0.625rem 1.25rem;
}

/* Sidebar */
.sidebar-card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.sidebar-card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 1.25rem;
}

.sidebar-card-header-alt {
    background: var(--dark-soft);
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item:hover {
    background: var(--gray-50);
}

.sidebar-item-img,
.sidebar-item-placeholder {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    margin-right: 1rem;
    flex-shrink: 0;
}

.sidebar-item-img {
    object-fit: cover;
}

.sidebar-item-placeholder {
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 1.5rem;
}

.sidebar-item-content {
    flex: 1;
    min-width: 0;
}

.sidebar-item-content h6 {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.sidebar-item-arrow {
    color: var(--gray-400);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sidebar-item:hover .sidebar-item-arrow {
    color: var(--primary);
}

.sidebar-list li {
    margin-bottom: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    color: var(--gray-500);
    text-decoration: none;
    padding: 0.375rem 0;
    transition: var(--transition);
}

.sidebar-link:hover {
    color: var(--primary);
}

.sidebar-link i {
    font-size: 0.75rem;
    margin-right: 0.5rem;
}

@media (min-width: 992px) {
    .detail-sidebar {
        position: sticky;
        top: 6rem;
    }
}

@media (max-width: 767.98px) {
    .detail-title {
        font-size: 1.75rem;
    }

    .detail-actions .btn {
        flex: 1;
        min-width: 100%;
    }
}

/* Pagination */
.pagination .page-link {
    border: none;
    color: var(--primary);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.pagination .page-item.disabled .page-link {
    color: var(--gray-400);
}

.pagination .page-link:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}

/* ============================================
   Cards - Products, Services, Blog
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    background: var(--white);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-img-top {
    transform: scale(1.03);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--dark);
}

.card-text {
    color: var(--gray-500);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ============================================
   Home Page - Index Specific
   ============================================ */
.home-intro {
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.home-intro-lead {
    font-size: 1.25rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.home-intro-content {
    font-size: 1.0625rem;
}

.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-header .section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.1) 0%, rgba(20, 184, 166, 0.1) 100%);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.section-header .section-badge i {
    margin-right: 0.35rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1rem;
    margin: 0;
}

.home-section-alt {
    background: var(--white);
    padding: 2rem !important;
    border-radius: var(--radius-xl);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
}

.card-img-wrapper .card-img-top {
    display: block;
}

.card-img-placeholder {
    height: 220px;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 3rem;
}

.card-img-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.card:hover .card-img-overlay {
    opacity: 1;
}

.card-img-overlay .btn {
    transform: translateY(10px);
    transition: var(--transition);
}

.card:hover .card-img-overlay .btn {
    transform: translateY(0);
}

.card-date-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.index-card {
    animation: fadeUp 0.6s ease-out backwards;
}

.view-all-btn {
    padding: 0.75rem 1.75rem;
    font-weight: 600;
}

.view-all-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   Content / Article
   ============================================ */
.content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.content h1, .content h2, .content h3 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.form-control {
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.form-label {
    font-weight: 600;
    color: var(--dark);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(180deg, var(--dark) 0%, #0a0f1a 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.footer .text-white-50,
.footer .text-white-50 a {
    color: var(--gray-400) !important;
    text-decoration: none;
    transition: var(--transition);
}

.footer .text-white-50 a:hover,
.footer .hover-white:hover {
    color: var(--primary-light) !important;
}

.footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--white);
    transition: var(--transition);
}

.footer .social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Captcha & Utilities
   ============================================ */
.captcha-image {
    background: var(--gray-100);
    padding: 8px;
    border-radius: var(--radius-sm);
}

.captcha-image img {
    height: 60px;
    width: 200px;
}

.button-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.btn-primary .spinner-border {
    border-color: rgba(255, 255, 255, 0.5);
    border-right-color: transparent;
}

/* Alerts */
.alert {
    border-radius: var(--radius);
    border: none;
}

/* ============================================
   Admin Login Page Styles
   ============================================ */
body.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 50%, #0a0f1a 100%);
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.login-card .card-body {
    padding: 2.5rem;
}

.login-card .card-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.login-card .card-subtitle {
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-bottom: 2rem;
}

.login-card .form-control {
    padding: 0.875rem 1rem;
}

.login-card .form-label {
    font-size: 0.875rem;
}

.login-card .btn-primary {
    padding: 0.875rem;
    font-size: 1rem;
}

.login-card .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.login-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2rem;
    text-align: center;
}

.login-header h1 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.login-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    margin: 0.5rem 0 0;
}

.login-card .input-group-text {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-color: var(--gray-200);
}

.login-card .input-group .form-control {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    border-left: none;
}

.login-card .input-group .form-control:focus {
    border-color: var(--gray-200);
    box-shadow: none;
}

.login-card .input-group:focus-within .input-group-text,
.login-card .input-group:focus-within .form-control {
    border-color: var(--primary);
}

.login-card .validation-summary-errors {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.login-card .validation-summary-errors li {
    margin-bottom: 0.25rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991.98px) {
    #bannerCarousel,
    #bannerCarousel .carousel-item {
        max-height: 400px;
        height: 400px;
    }

    #bannerCarousel .carousel-caption {
        padding: 1.5rem;
    }

    #bannerCarousel .carousel-caption h5 {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    html {
        font-size: 15px;
    }

    #bannerCarousel,
    #bannerCarousel .carousel-item {
        max-height: 320px;
        height: 320px;
    }

    .contact-info {
        text-align: left !important;
        margin-top: 0.5rem;
    }

    .contact-info a {
        display: block;
        margin-bottom: 0.25rem;
    }

    .card-img-top {
        height: 200px;
    }

    .home-intro {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }

    .home-section-alt {
        padding: 1.5rem !important;
    }

    .card-img-placeholder {
        height: 200px;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.5s ease-out forwards;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}
