﻿/* ===== Page ===== */
body {
    background: #f4f6f9;
    font-family: 'Poppins', sans-serif;
}

/* ===== Title + Button ===== */
h2 {
    font-size: 26px;
    font-weight: 600;
    color: #333;
}

#btnAddCategory,
#btnAddSubcategory,
#btnAddItemCategory {
    background: linear-gradient(135deg, #ffb347, #ffb347);
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 500;
    transition: 0.3s;
}

    #btnAddCategory:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(255,122,24,0.3);
    }

/* ===== Category Cards ===== */
.card {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

    /* Hover effect */
    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.1);
    }

/* Image */
.card-img-top {
    background: #f8f9fa;
    padding: 10px;
}

/* Card body */
.card-body {
    padding: 15px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* ===== Modal ===== */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Modal header */
.modal-header {
    background: linear-gradient(135deg, #ffb347, #ffb347);
    color: #fff;
    border-bottom: none;
}

.modal-title {
    font-weight: 600;
}

/* ===== Inputs ===== */
.form-control {
    border-radius: 8px;
    border: 2px solid #c97b36;
    padding: 10px 12px;
    transition: 0.3s;
}

    /* Hover */
    .form-control:hover {
        border-color: #198754;
    }

    /* Focus */
    .form-control:focus {
        border-color: #198754;
        box-shadow: 0 0 0 2px rgba(25,135,84,0.2);
        outline: none;
    }

/* ===== Modal Buttons ===== */
.btn-success {
    background: #198754;
    border: none;
    border-radius: 6px;
}

    .btn-success:hover {
        background: #157347;
    }

.btn-secondary {
    border-radius: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    h2 {
        font-size: 22px;
    }
}




/* ===== Dropdown same as input ===== */
.form-select {
    border-radius: 10px;
    border: 2px solid #c97b36; /* orange default */
    padding: 12px 14px;
    font-size: 14px;
    background-color: #fafafa;
    transition: all 0.25s ease;
    appearance: none; /* clean look */
}

    /* Hover */
    .form-select:hover {
        border-color: #198754; /* green */
        background-color: #fff;
    }

    /* Focus */
    .form-select:focus {
        border-color: #198754;
        background-color: #fff;
        box-shadow: 0 0 0 3px rgba(25,135,84,0.15);
        outline: none;
    }

/* Custom dropdown arrow */
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
}