/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --primary-light: #e67e22;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #1a1a2e;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

/* Header & Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: #e67e22 !important;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

/* Enhanced Footer */
.footer-enhanced {
    background: var(--dark-color);
    color: var(--light-gray);
    padding: 70px 0 30px;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

    .footer-column h4:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 2px;
        background: var(--primary-light);
    }

.footer-column p {
    color: var(--light-gray);
    margin: 20px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-column a {
    color: var(--light-gray);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
    transition: var(--transition);
}

    .footer-column a:hover {
        color: var(--primary-light);
        transform: translateX(5px);
    }

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

    .social-links a {
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.1);
        color: var(--light-gray);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: var(--transition);
    }

        .social-links a:hover {
            background: var(--primary-light);
            color: var(--white);
            transform: translateY(-3px);
        }

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--light-gray);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-light);
    width: 20px;
}

.app-buttons {
    display: flex;
    gap: 10px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.app-button {
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 10px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

    .app-button:hover {
        background: var(--primary-light);
        transform: translateY(-2px);
        color: var(--white);
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

    .footer-links a {
        color: var(--light-gray);
        text-decoration: none;
        font-size: 0.9rem;
        transition: var(--transition);
    }

        .footer-links a:hover {
            color: var(--primary-light);
        }

.payment-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

    .payment-methods i {
        font-size: 2rem;
        color: var(--light-gray);
        transition: var(--transition);
    }

        .payment-methods i:hover {
            color: var(--primary-light);
            transform: scale(1.1);
        }

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: var(--light-gray);
    margin: 0;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-light);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    z-index: 1000;
    transition: var(--transition);
    border: 2px solid transparent;
}

    .chat-widget:hover {
        background: #d35400;
        transform: scale(1.05);
        border-color: var(--white);
    }

    .chat-widget i {
        font-size: 1.5rem;
    }

.chat-title {
    font-weight: 600;
}

.chat-subtitle {
    font-size: 0.8rem;
    opacity: 0.9;
}

/* Cards */
.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    }

.card-header {
    background-color: white;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: #0b5ed7;
        border-color: #0a58ca;
    }

/* Forms */
.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
}

    .form-control:focus, .form-select:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    }

/* Tables */
.table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

    .table thead th {
        background-color: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
        font-weight: 600;
        color: var(--secondary-color);
    }

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.02);
}

/* Badges */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
    border-radius: 4px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s;
    cursor: pointer;
}

    .product-card:hover {
        transform: translateY(-5px);
    }

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-details {
    padding: 15px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
}

/* File Upload */
.file-upload {
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    transition: border-color 0.2s;
    cursor: pointer;
}

    .file-upload:hover {
        border-color: var(--primary-color);
    }

    .file-upload i {
        font-size: 3rem;
        color: var(--secondary-color);
        margin-bottom: 1rem;
    }

/* Admin Sidebar */
.admin-sidebar {
    background: var(--dark-color);
    color: white;
    min-height: calc(100vh - 56px);
    padding: 1rem 0;
}

    .admin-sidebar .nav-link {
        color: rgba(255,255,255,0.8);
        padding: 0.75rem 1.5rem;
        border-left: 3px solid transparent;
    }

        .admin-sidebar .nav-link:hover {
            color: white;
            background: rgba(255,255,255,0.1);
        }

        .admin-sidebar .nav-link.active {
            color: white;
            background: rgba(255,255,255,0.15);
            border-left-color: var(--primary-color);
        }

        .admin-sidebar .nav-link i {
            margin-right: 10px;
            width: 20px;
        }

/* Landing Page Specific Styles */
.hero-section {
    background: #000000;
    color: white;
    padding: 60px 0;
    text-align: center;
}

    .hero-section .display-4 {
        font-weight: 700;
        line-height: 1.2;
    }

.trust-badge {
    transition: transform 0.2s;
}

    .trust-badge:hover {
        transform: translateY(-3px);
    }

.step-circle {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    font-weight: bold;
}

.navbar-dark.bg-primary {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

    .navbar-dark .navbar-nav .nav-link:hover {
        color: white !important;
        background-color: rgba(255,255,255,0.1);
        border-radius: 4px;
    }

    .navbar-dark .navbar-nav .nav-link.active {
        color: white !important;
        font-weight: 600;
        background-color: rgba(255,255,255,0.2);
        border-radius: 4px;
    }

/* Cart Badge */
.position-absolute {
    margin-top: -5px;
    margin-left: -5px;
}

/* Dropdown Styles */
.dropdown-menu {
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
}

    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: var(--primary-color);
    }

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-row {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .payment-methods {
        justify-content: center;
    }

    .chat-widget {
        bottom: 20px;
        right: 20px;
        padding: 12px 20px;
    }

    .app-buttons {
        flex-direction: column;
    }

    .navbar-dark .navbar-nav .nav-link {
        padding: 0.5rem 0 !important;
    }

        .navbar-dark .navbar-nav .nav-link:hover {
            background-color: transparent;
        }

    .hero-section {
        text-align: center;
    }
}
/* Override Bootstrap primary color to orange */
:root {
    --bs-primary: #e67e22;
    --bs-primary-rgb: 230, 126, 34;
}

.text-primary {
    color: #e67e22 !important;
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }

    .footer-enhanced,
    .chat-widget {
        display: none !important;
    }
}

/* ===== CONTACT FORM CARD ===== */
.contact-form-card {
    background: white;
    border: 1px solid rgba(230, 126, 34, 0.2);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.1);
    transition: all 0.3s ease;
    padding: 25px;
}

    .contact-form-card:hover {
        border-color: #e67e22;
        box-shadow: 0 15px 40px rgba(230, 126, 34, 0.2);
        transform: translateY(-5px);
    }

/* ===== FORM CONTROLS ===== */
.form-control {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

    .form-control:focus {
        border-color: #e67e22;
        box-shadow: 0 0 0 0.2rem rgba(230, 126, 34, 0.25);
    }

/* ===== BUTTON ===== */
.btn-primary {
    background: #e67e22;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background: #d35400;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
    }

/* ===== CONTACT INFO ===== */
.contact-info-wrapper {
    background: white;
    border-radius: 15px;
    padding: 20px;
}

/* each info item */
.contact-info-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

    .contact-info-item:hover {
        background: rgba(230, 126, 34, 0.05);
    }

/* icon */
.info-icon {
    width: 45px;
    height: 45px;
    background: rgba(230, 126, 34, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e67e22;
    font-size: 18px;
    transition: all 0.3s ease;
}

.contact-info-item:hover .info-icon {
    background: #e67e22;
    color: black;
    transform: scale(1.1);
}

/* text */
.info-content h3 {
    color: #e67e22;
    font-weight: 600;
}

.info-content p {
    margin: 0;
    color: #333;
}

/* ===== PAGE TITLE ===== */
.page-title h1 {
    color: #e67e22;
    font-weight: 700;
}

/* ===== SUCCESS MESSAGE ===== */
.text-success {
    background: rgba(230, 126, 34, 0.1);
    border: 1px solid #e67e22;
    padding: 3px;
    border-radius: 10px;
    color: #e67e22 !important;
}

/* ===== MAP ===== */
.map-container iframe {
    width: 100%;
    border-radius: 15px;
}

/* ===== SMALL HOVER EFFECT ===== */
button:hover {
    cursor: pointer;
}

/* Status Badge Styles */
.badge.bg-pending {
    background-color: #ffc107;
    color: #000;
}

.badge.bg-approved {
    background-color: #0dcaf0;
}

.badge.bg-rejected {
    background-color: #dc3545;
}

.badge.bg-processing {
    background-color: #0d6efd;
}

.badge.bg-printing {
    background-color: #6f42c1;
}

.badge.bg-qualitycheck {
    background-color: #6c757d;
}

.badge.bg-shipped {
    background-color: #198754;
}

.badge.bg-delivered {
    background-color: #198754;
}

.badge.bg-cancelled {
    background-color: #212529;
}

.badge.bg-onhold {
    background-color: #ffc107;
    color: #000;
}

/* Action Buttons */
.action-buttons .btn {
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

    .action-buttons .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

/* Modal Styles */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 2px solid #dee2e6;
}

/* Chat Button Styles */
.chat-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
}

    .chat-button:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    }

    .chat-button i {
        font-size: 28px;
        color: white;
    }

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* Chat Window Styles */
.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

    .chat-window.show {
        display: flex;
    }

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .chat-header-info i {
        font-size: 24px;
    }

.chat-title {
    font-weight: 600;
    font-size: 16px;
}

.chat-status {
    font-size: 11px;
    opacity: 0.9;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

    .chat-close:hover {
        transform: scale(1.1);
    }

/* Chat Body */
.chat-body {
    height: 350px;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
}

    .chat-message.received {
        justify-content: flex-start;
    }

    .chat-message.sent {
        justify-content: flex-end;
    }

.message-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.4;
}

.received .message-bubble {
    background: white;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.sent .message-bubble {
    background: linear-gradient(135deg, #e67e22, #f39c12);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-bubble ul {
    padding-left: 20px;
    margin-top: 5px;
}

.message-bubble li {
    margin: 3px 0;
}

/* Chat Footer */
.chat-footer {
    border-top: 1px solid #e5e7eb;
    background: white;
}

.quick-replies {
    padding: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid #e5e7eb;
}

.quick-reply-btn {
    background: #f3f4f6;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    color: #374151;
}

    .quick-reply-btn:hover {
        background: #e67e22;
        color: white;
    }

.chat-input-group {
    padding: 10px;
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 25px;
    outline: none;
    font-size: 13px;
    transition: border-color 0.2s;
}

    .chat-input:focus {
        border-color: #e67e22;
    }

.chat-send-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e67e22, #f39c12);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

    .chat-send-btn:hover {
        transform: scale(1.05);
    }

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Scrollbar styling for chat body */
.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

    .chat-body::-webkit-scrollbar-thumb:hover {
        background: #e67e22;
    }

/* Responsive */
@media (max-width: 576px) {
    .chat-window {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 80px;
    }

    .chat-button {
        width: 50px;
        height: 50px;
    }

        .chat-button i {
            font-size: 24px;
        }

    .quick-replies {
        gap: 6px;
    }

    .quick-reply-btn {
        font-size: 11px;
        padding: 4px 10px;
    }
}



