﻿/* ======================================================
   RESET & BASE
====================================================== */
:root {
    --primary-color: #B3D9FF;
    --primary-text: #ffffff;
    --secondary-color: #f5f5f5;
    --btn-bg: #FFDA42;
    --btn-text: #ffffff;
}

html {
    font-size: 14px;
    height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Focus */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #258cfb;
}

/* ======================================================
   NAVBAR
====================================================== */
.navbar,
.custom-navbar {
    background-color: var(--primary-color) !important;
}

    .navbar a,
    .custom-navbar a,
    .custom-navbar button {
        color: var(--primary-text) !important;
    }

    .navbar .nav-link:hover {
        color: #004080 !important;
    }

    .navbar .d-flex.flex-column {
        min-width: 220px;
    }

@media (max-width: 576px) {
    .navbar .d-flex.flex-column {
        width: 100%;
        align-items: flex-start;
    }
}

/* ======================================================
   LOGO
====================================================== */
.logo,
.logoright {
    height: 100px;
    width: auto;
}

@media (min-width: 992px) {
    .logo {
        height: 80px;
        margin: 0 auto;
        display: block;
    }
}

/* ======================================================
   SIDEBAR
====================================================== */
#sidebar-wrapper {
    background-color: var(--primary-color);
    color: var(--primary-text);
}

    #sidebar-wrapper .list-group-item {
        background: transparent;
        border: none;
        color: var(--primary-text);
    }

        #sidebar-wrapper .list-group-item:hover {
            background-color: #004080;
            color: #fff;
        }

/* ======================================================
   BUTTONS
====================================================== */
.btn-primary {
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    border: none;
    color: #fff;
    font-weight: 600;
}

    .btn-primary:hover {
        transform: scale(1.05);
    }

.btn-pulse {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1rem;
    border-radius: 9999px;
    background: var(--btn-bg);
    color: var(--btn-text);
    box-shadow: 0 6px 14px rgba(0,0,0,.12);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    50% {
        transform: scale(1.04);
        box-shadow: 0 10px 20px rgba(0,0,0,.16);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-pulse {
        animation: none;
    }
}

/* ======================================================
   FOOTER
====================================================== */
.app-footer {
    margin-top: auto;
    background-color: var(--primary-color);
    color: var(--primary-text);
    border-top: 3px solid #004080;
}

/* ======================================================
   CAROUSEL
====================================================== */
.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.carousel-caption {
    background: rgba(0,0,0,.5);
    border-radius: 10px;
    padding: 15px;
}

/* ======================================================
   STATUS STEPS (NON-PROGRESSBAR)
====================================================== */
.status-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .status-circle.active {
        background: #0d6efd;
        color: #fff;
    }

    .status-circle.completed {
        background: #198754;
        color: #fff;
    }

/* ======================================================
   DATATABLES (MOBILE)
====================================================== */
@media (max-width: 768px) {
    #salesOrdersTable th:nth-child(3),
    #salesOrdersTable td:nth-child(3),
    div.dataTables_paginate,
    div.dataTables_info {
        display: none !important;
    }

    div.dataTables_filter input {
        width: 100%;
        border-radius: 30px;
        padding: 10px 16px;
    }
}

/* ======================================================
   TIMELINE
====================================================== */
.timeline-wrapper {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-top: 1rem;
}

/* ======================================================
   ORDER & PRODUCT CARDS
====================================================== */
.order-card,
.product-card {
    border-radius: .75rem;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

    .order-card:hover,
    .product-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0,0,0,.12);
    }

/* ======================================================
   FEEDBACK MODAL
====================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    max-width: 600px;
    width: 95%;
    padding: 35px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff, #f0f8ff);
}

/* Feedback Faces */
.feedback-faces {
    display: flex;
    justify-content: center;
    gap: 25px;
}

    .feedback-faces i {
        font-size: 3rem;
        cursor: pointer;
        transition: transform .2s, color .2s;
        color: #888;
    }

        .feedback-faces i:hover {
            transform: scale(1.4);
        }

        .feedback-faces i.selected {
            transform: scale(1.5);
        }

.order-item-img-box {
    width: 15px;
    height: 15px;
    min-width: 15px;
    min-height: 15px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

/* HARD OVERRIDE */
.order-item-img {
    width: 15px !important;
    height: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Neutralize Bootstrap + global img rules */
img {
    max-width: none !important;
    height: auto;
}
@media (min-width: 576px) {
    .modal-content {
        border-radius: 12px;
    }
}
@media (max-width: 576px) {
    .carousel-item img {
        max-height: 50vh;
    }
}


