/* Base Styles */
:root {
    --primary-green: #2e7d32;
    --light-green: #81c784;
    --dark-green: #1b5e20;
    --primary-yellow: #ffeb3b;
    --dark-yellow: #fbc02d;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
    --black: #000000;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-gray);
    color: var(--dark-gray);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* Navbar */
.navbar-custom {
    background-color: var(--primary-green);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-brand {
    color: var(--white);
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-custom .nav-link {
    color: var(--white);
    /* margin: 0 10px; */
    font-weight: 500;
}

.navbar-custom .nav-link:hover {
    color: var(--primary-yellow);
}

.navbar-custom .btn-outline-light:hover {
    background-color: var(--primary-yellow);
    color: var(--black);
}

.navbar-items {

    margin-left: 350px;

}

.text-un {
    text-decoration: none;

}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('resources/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 50px;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
}

.btn-primary-custom:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
}

.btn-secondary-custom {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--black);
}

.btn-secondary-custom:hover {
    background-color: var(--dark-yellow);
    border-color: var(--dark-yellow);
    color: var(--black);
}

/* Product Cards */
.product-card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 200px;
    object-fit: cover;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-price {
    color: var(--primary-green);
    font-weight: bold;
    font-size: 1.2rem;
}

.product-rating {
    color: var(--primary-yellow);
}

/* Footer */
.footer {
    background: #23272b;
    color: #fff;
    padding: 25px 0;
    margin-top: 50px;
    margin-top: auto;
    font-size: 15px;
}

.footer-content {
    display: flex;
    align-items: center;
    /* Y-axis center */
    justify-content: center;
    /* X-axis center */
    min-height: 40px;
    /* Footer height (adjust as needed) */
}

.footer-title {
    margin: 0;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-link {
    color: #b2bec3;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #27ae60;
    text-decoration: underline;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #27ae60;
    color: #fff;
    border-radius: 50%;
    font-size: 18px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.footer-social:hover {
    background: #fff;
    color: #27ae60;
    border: 1px solid #27ae60;
}

hr.bg-secondary {
    opacity: 0.2;
}

/* Forms */
.auth-form {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

/* Product Page */
.product-main-img {
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.product-thumbnail {
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: var(--primary-green);
}

/* Cart */
.cart-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.cart-summary {
    background-color: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Admin Panel */
.sidebar {
    background-color: var(--dark-green);
    color: var(--white);
    min-height: 100vh;
}

.sidebar-link {
    color: var(--white);
    padding: 10px 15px;
    display: block;
    margin-bottom: 5px;
    border-radius: 5px;
}

.sidebar-link:hover {
    background-color: var(--primary-green);
    color: var(--white);
    text-decoration: none;
}

.sidebar-link.active {
    background-color: var(--primary-yellow);
    color: var(--black);
}

.admin-content {
    background-color: var(--light-gray);
}

/* Utility Classes */
.no-underline {
    text-underline-offset: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

.carousel-caption.bg-overlay {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 12px;
    padding: 24px 32px;
    display: inline-block;
}

/* verify code send modal */
.modal-forgot-password .modal-content {
    border-radius: 10px;
    overflow: hidden;
    border: none;
}

.modal-forgot-password .modal-header {
    background-color: var(--primary-green);
    color: white;
    border-bottom: none;
}

.modal-forgot-password .modal-body {
    padding: 2rem;
}

.modal-forgot-password .btn-close {
    filter: invert(1);
}

.modal-forgot-password .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.modal-forgot-password .btn-primary-custom {
    width: 100%;
    padding: 10px;
}

.modal-forgot-password .divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--dark-gray);
}

.modal-forgot-password .divider::before,
.modal-forgot-password .divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.modal-forgot-password .divider::before {
    margin-right: .5rem;
}

.modal-forgot-password .divider::after {
    margin-left: .5rem;
}

/* verify code modal */

.verification-code-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.verification-code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
}

.verification-code-input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
    outline: none;
}

.verification-code-input.filled {
    border-color: var(--primary-green);
    background-color: rgba(46, 125, 50, 0.05);
}

/* reset password modal */

.reset-password-modal .modal-content {
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.reset-password-modal .modal-header {
    background-color: var(--primary-green);
    color: var(--white);
    border-bottom: none;
    padding: 1.5rem;
}

.reset-password-modal .modal-body {
    padding: 2rem;
}

.reset-password-modal .modal-title {
    font-weight: 600;
}

.reset-password-modal .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.reset-password-modal .btn-close:hover {
    opacity: 1;
}

.reset-password-modal .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--dark-gray);
    cursor: pointer;
}

.password-strength {
    height: 4px;
    background-color: #e9ecef;
    margin-top: 8px;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    background-color: #dc3545;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-requirements {
    font-size: 13px;
    color: var(--dark-gray);
    margin-top: 10px;
}

.password-requirements ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.password-requirements li {
    margin-bottom: 5px;
}

.password-requirements .requirement-met {
    color: var(--primary-green);
}

.password-requirements .requirement-met::before {
    content: "✓ ";
}

.reset-password-modal .btn-primary-custom {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    padding: 10px;
    font-weight: 500;
}

.reset-password-modal .btn-primary-custom:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
}

.reset-password-modal .btn-outline-secondary {
    padding: 10px;
}

/* Image Upload */
.image-upload-box {
    border: 2px dashed #b2bec3;
    border-radius: 8px;
    padding: 32px 0;
    text-align: center;
    color: #636e72;
    cursor: pointer;
    transition: border-color 0.2s;
    background: #f8f9fa;
}

.image-upload-box:hover {
    border-color: #27ae60;
    color: #27ae60;
}

.image-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    margin-right: 8px;
    margin-bottom: 8px;
    object-fit: cover;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* styles for category page */
.category-hero {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.subcategory-card {
    transition: transform 0.3s;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.subcategory-card:hover {
    transform: translateY(-5px);
}

.subcategory-card img {
    height: 200px;
    object-fit: cover;
}

.style-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.style-card img {
    height: 250px;
    object-fit: cover;
}

.icon-circle-lg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

#profilePicForm label[for="profilePicInput"] {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #27ae60;
    background: #fff;
    transition: background 0.2s, border 0.2s;
}
#profilePicForm label[for="profilePicInput"]:hover {
    background: #27ae60;
    color: #fff;
    border-color: #27ae60;
}