/* ================================
   GLOBAL STYLING
=================================*/
body {
    background-color: #f3f4ff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url('../assets/images/body-bg.jpg');
    background-size: cover;
    background-repeat: repeat;
    background-position: center;
    margin: 0;
    padding: 0;
}

h2, h4 {
    color: #2e006b;
    font-weight: 600;
}

/* ================================
   NAVBAR STYLING
=================================*/
.navbar {
    background: linear-gradient(45deg, #1e90ff, #6f00ff);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.navbar-brand {
    color: white !important;
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: 1px;
}

.navbar-brand:hover {
    color: #eef0ff !important;
}

.nav-link {
    color: #e0d9ff !important;
    margin: 0 12px;
    font-weight: 600;
}

.nav-link:hover {
    color: #ffffff !important;
}

/* Search box */
.form-control {
    border-radius: 25px;
    padding-left: 15px;
    border: 1px solid #c8b6ff;
}

/* Buttons */
.btn-craft {
    background-color: #4b0082;
    color: white;
    border-radius: 25px;
    padding: 6px 18px;
    transition: 0.3s ease-in-out;
}

.btn-craft:hover {
    background-color: #330061;
    color: #e9ddff;
}

/* Icon buttons */
.icon-btn {
    background: transparent;
    border: none;
    color: #ded8ff;
    font-size: 1.3rem;
}

.icon-btn:hover {
    color: #ffffff;
}

/* Large screen spacing */
@media (min-width: 992px) {
    .navbar {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ================================
   SIDEBAR / OFFCANVAS MENU
=================================*/
.sidebar {
    background: linear-gradient(45deg, #6f00ff, #9b59ff);
    width: 80%;
    max-width: 250px;
}

.offcanvas-menu {
    padding: 20px;
    height: 100%;
    background: #f0eaff;
}

.offcanvas-menu ul {
    padding: 0;
    list-style: none;
}

.offcanvas-menu li {
    padding: 15px 0;
    border-bottom: 1px solid #d7c9ff;
    font-weight: bold;
    color: #30006e;
}

.offcanvas-menu li a {
    text-decoration: none;
    color: #4b0082;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.offcanvas-menu li a i {
    margin-right: 10px;
}

.offcanvas-header {
    padding-bottom: 10px;
}

/* ================================
   CATEGORY SCROLLER
=================================*/
.scrolling-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    padding: 1rem;
}

.category-item {
    display: inline-block;
    text-align: center;
    margin-right: 1rem;
    transition: 0.3s ease;
}

.category-item img {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1e90ff;
    transition: transform 0.3s ease;
}

.category-item:hover img {
    transform: scale(1.12);
}

.scrolling-wrapper::-webkit-scrollbar {
    display: none;
}

.scrolling-wrapper {
    scrollbar-width: none;
}

/* ================================
   PRODUCT CARDS
=================================*/
.product-card {
    border: none;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(56, 0, 255, 0.25);
}

/* Buttons */
.btn-success {
    background-color: #1e90ff;
    border: none;
    color: #fff;
}

.btn-success:hover {
    background-color: #0066cc;
}

/* ================================
   ANIMATIONS
=================================*/
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================
   LOADING SPINNER
=================================*/
.spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.loading-spinner {
    width: 4rem;
    height: 4rem;
    border: 5px solid #6f00ff;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================
   ADMIN DASHBOARD
=================================*/
.admin-section h2 {
    color: #2e006b;
}

.table img {
    border-radius: 5px;
    border: 2px solid #bfa8ff;
}

/* ================================
   FORMS
=================================*/
form input, 
form textarea {
    border-radius: 7px;
    border: 1px solid #bda4ff;
}

form input:focus, 
form textarea:focus {
    border-color: #6f00ff;
    box-shadow: 0 0 5px rgba(111, 0, 255, 0.5);
}
