/* ===================================================
   KD Business Ltd - Custom Styles
   =================================================== */

/* === Color Variables === */
:root {
    --primary: #1a3a5c;
    --primary-light: #2c5f8a;
    --primary-dark: #0f2640;
    --accent: #17a2b8;
    --accent-light: #1fc8e3;
    --success: #28a745;
    --bg-light: #f7f9fc;
    --text-muted: #6c757d;
}

/* === Navbar === */
.navbar-dark.bg-primary {
    background-color: var(--primary) !important;
}
.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

/* === Hero Section === */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 50%, var(--accent) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.min-vh-75 {
    min-height: 65vh;
}
.hero-illustration {
    text-align: center;
    color: rgba(255,255,255,0.15);
    font-size: 12rem;
    line-height: 1;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* === Buttons === */
.btn-accent {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-accent:hover {
    background: var(--accent-light);
    color: #fff;
    border-color: var(--accent-light);
}
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* === Stats Section === */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}
.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

/* === Category Cards === */
.category-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #fff;
}
.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    color: inherit;
}
.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto;
}

/* === Product Cards === */
.product-card {
    transition: all 0.3s ease;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}
.product-img-wrapper {
    height: 220px;
    overflow: hidden;
    background: var(--bg-light);
}
.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}
.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0.3;
    font-size: 3rem;
}
.product-placeholder span {
    font-size: 0.9rem;
    margin-top: 8px;
}
.product-placeholder-large {
    width: 100%;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

/* === Feature Icons === */
.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto;
}
.feature-icon-lg {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}
.feature-icon-sm {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* === Page Header === */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
}
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.3);
}

/* === About Illustration === */
.about-illustration {
    width: 100%;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: rgba(255,255,255,0.2);
    font-size: 8rem;
}

/* === Admin Panel === */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}
.admin-content {
    margin-left: 250px;
    min-height: 100vh;
    background: var(--bg-light);
}
.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* === Responsive === */
@media (max-width: 991px) {
    .admin-sidebar {
        position: relative;
        width: 100% !important;
        min-height: auto;
    }
    .admin-content {
        margin-left: 0;
    }
    .d-flex > .admin-sidebar + .admin-content {
        flex-direction: column;
    }
    .hero-illustration {
        font-size: 8rem;
    }
    .stat-number {
        font-size: 2rem;
    }
}
@media (max-width: 575px) {
    .hero-section {
        padding: 40px 0;
    }
    .hero-section h1 {
        font-size: 1.8rem;
    }
    .product-img-wrapper {
        height: 180px;
    }
}

/* === Misc === */
.bg-primary {
    background-color: var(--primary) !important;
}
.text-primary {
    color: var(--primary) !important;
}
.badge.bg-primary {
    background-color: var(--primary) !important;
}
a {
    color: var(--primary);
}
a:hover {
    color: var(--primary-light);
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.scroll-top:hover {
    background: var(--accent);
}
