/* Core Colors */
:root {
    --primary-blue: #007BFF;
    --dark-blue: #0056b3;
    --secondary-black: #212529;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --muted-text: #6c757d;
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
}

a:hover {
    color: var(--dark-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
}

.btn-secondary {
    background-color: var(--secondary-black);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #343a40;
}

/* Header/Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-blue);
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.2s ease;
}

nav ul li a:hover {
    color: var(--primary-blue);
}

.auth-links a {
    margin-left: 10px;
}

/* Cart Icon in Header */
.cart-icon {
    position: relative;
    font-size: 1.5rem;
    color: var(--text-color);
    padding: 0.5rem;
}

.cart-icon .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Cart Side Panel */
.cart-panel {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden by default */
    width: 350px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: right 0.3s ease-in-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.cart-panel.open {
    right: 0;
}

.cart-panel h3 {
    margin-top: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.cart-panel .close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-color);
    text-decoration: none;
}

.cart-items-panel {
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item-panel {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.cart-item-panel img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
}

.cart-item-panel .item-details {
    flex-grow: 1;
}

.cart-summary {
    border-top: 2px solid #eee;
    padding-top: 15px;
}

.cart-total-price {
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

/* Hero Section (Product Page) */
.contact-hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.contact-hero-content {
    padding: 20px;
}

.contact-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
}

/* Product grid */
.product-category-section {
    padding: 4rem 0;
}

.category-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--muted-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    height: 40px;
    overflow: hidden;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-black);
    margin-bottom: 1rem;
}

.in-stock {
    color: #28a745;
    font-weight: bold;
}

.out-of-stock {
    color: #dc3545;
    font-weight: bold;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Forms */
.form-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    text-align: left;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group input[type="number"] 
.form-group input[type="file"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.btn-submit {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: var(--dark-blue);
}

/* Cart page styles */
.cart-section {
    padding: 2rem 0;
}

.empty-cart-message {
    text-align: center;
    font-size: 1.2rem;
    color: var(--muted-text);
}

.cart-items {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    background-color: var(--white);
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: 5px;
}

.item-details {
    flex-grow: 1;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn-update {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-remove {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-summary {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.summary-details h4 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* Dashboard styles */
.admin-dashboard-section, .client-dashboard-section, .supplier-dashboard-section, .manage-suppliers-section, .add-product-section {
    padding: 4rem 0;
    text-align: center;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--muted-text);
    font-size: 1.1rem;
}

.dashboard-links, .admin-main-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--primary-blue);
}

.profile-details-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.pending-approval-box {
    background-color: #fffbeb;
    border: 1px solid #fbd38d;
    color: #b7791f;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 2rem auto;
    max-width: 600px;
    text-align: center;
}
.pending-approval-box h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

table th, table td {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

table thead tr {
    background-color: #f3f4f6;
    color: #4b5563;
    text-transform: uppercase;
    font-size: 0.9em;
}

table tbody tr:last-child td {
    border-bottom: none;
}

table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.dashboard-stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-box {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    text-align: center;
    width: 300px;
}

.stat-box h3 {
    color: #4b5563;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.income-total {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.status-approved {
    color: #2f855a;
    font-weight: 600;
}

.status-pending {
    color: #dd6b20;
    font-weight: 600;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-success {
    background-color: #38a169;
    color: white;
}

.btn-success:hover {
    background-color: #2f855a;
}

.btn-danger {
    background-color: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background-color: #c53030;
}

.btn-primary {
    background-color: #4299e1;
    color: white;
}
.btn-primary:hover {
    background-color: #3182ce;
}

.error-message {
    background-color: #fed7d7;
    border-left: 4px solid #e53e3e;
    color: #c53030;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.success-message {
    background-color: #c6f6d5;
    border-left: 4px solid #38a169;
    color: #276749;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

/* =========================================
   Dashboard Styles
   ========================================= */
.dashboard-section {
    padding: 4rem 1rem;
    text-align: center;
}

.dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: left;
}

.dashboard-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    color: var(--primary-blue);
}

.dashboard-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.dashboard-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.dashboard-card p {
    color: var(--muted-text);
    line-height: 1.5;
}


/* =========================================
   Modern Footer Styles
   ========================================= */
.site-footer {
    background-color: var(--secondary-black);
    color: #a0a0a0;
    padding: 50px 0;
    font-size: 0.9rem;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer .footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 30px;
}

.site-footer .footer-about,
.site-footer .footer-links,
.site-footer .footer-social {
    flex: 1;
    min-width: 250px;
}

.site-footer h3, .site-footer h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 600;
}

.site-footer .footer-about p {
    line-height: 1.8;
}

.site-footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links ul li a {
    color: #a0a0a0;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.site-footer .footer-links ul li a:hover {
    color: var(--primary-blue);
}

.site-footer .footer-social a {
    display: inline-block;
    color: #a0a0a0;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.site-footer .footer-social a:hover {
    color: var(--primary-blue);
}

.site-footer .footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
}

/* Core Colors */
:root {
    --primary-blue: #007BFF;
    --dark-blue: #0056b3;
    --secondary-black: #212529;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --muted-text: #6c757d;
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
}

a:hover {
    color: var(--dark-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
}

.btn-secondary {
    background-color: #e2e6ea;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: #d1d6db;
}

/* Header & Navigation */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 500;
    color: var(--secondary-black);
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-blue);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-icon {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.user-icon:hover {
    color: var(--primary-blue);
}

/* Shopping Cart Icon in Header */
.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
}

/* Cart Side Panel */
.cart-panel-container {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

.cart-panel-container.open {
    right: 0;
}

.cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-panel-header h3 {
    margin: 0;
}

.cart-panel-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

.item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.item-details {
    flex-grow: 1;
}

.item-details h4 {
    margin: 0 0 5px 0;
}

.cart-summary {
    padding: 1rem;
    border-top: 1px solid #eee;
    text-align: right;
}

.cart-summary h4 {
    margin: 0;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    gap: 10px;
}

.cart-actions .btn {
    flex: 1;
}

.empty-cart-message {
    text-align: center;
    color: var(--muted-text);
}

/* =========================================
   Custom Header & Nav Styles
   ========================================= */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-black);
}

.main-nav {
    flex-grow: 1;
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-icon-link {
    position: relative;
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.cart-icon-link:hover {
    color: var(--primary-blue);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    padding: 2px 6px;
    line-height: 1;
}



/* =========================================
   Modern Header Styles
   ========================================= */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: var(--dark-blue);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
}

/* Icons and Cart */
.nav-icon {
    font-size: 1.25rem;
    color: var(--text-color);
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: red;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    padding: 2px 6px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    min-width: 150px;
    padding: 10px 0;
    z-index: 99;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
}

/* =========================================
   Core & General Styles
   ========================================= */
:root {
    --primary-blue: #007BFF;
    --dark-blue: #0056b3;
    --secondary-black: #212529;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --muted-text: #6c757d;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-blue);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
}

.btn-secondary {
    background-color: var(--secondary-black);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #343a40;
}

.btn-success {
    background-color: #38a169;
    color: white;
}

.btn-success:hover {
    background-color: #2f855a;
}

.btn-danger {
    background-color: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background-color: #c53030;
}

/* =========================================
   Header & Navigation
   ========================================= */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo img {
    height: 40px;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 500;
    color: var(--secondary-black);
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-actions .btn {
    padding: 8px 16px;
}

.user-icon, .cart-icon {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
    cursor: pointer;
}

.user-icon:hover, .cart-icon:hover {
    color: var(--primary-blue);
}

.cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: var(--white);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1;
}

/* =========================================
   Hero & Carousel Section
   ========================================= */
#heroCarousel .carousel-item img {
    height: 400px;
    object-fit: cover;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 5%;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    opacity: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin: 2rem 0;
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

/* =========================================
   Cart Side Panel
   ========================================= */
.cart-panel-container {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

.cart-panel-container.open {
    right: 0;
}

.cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-panel-header h3 {
    margin: 0;
}

.cart-panel-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

.item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.item-details {
    flex-grow: 1;
}

.item-details h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.cart-summary {
    padding: 1rem;
    border-top: 1px solid #eee;
    text-align: right;
}

.cart-summary p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    gap: 10px;
}

.cart-actions .btn {
    flex: 1;
}

.empty-cart-message {
    text-align: center;
    color: var(--muted-text);
}

.remove-item-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #dc3545;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.remove-item-btn:hover {
    color: #a71d2a;
}
/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    #heroCarousel .carousel-item img {
        height: 250px;
    }

    .form-container, .profile-details-container, .pending-approval-box {
        padding: 1rem;
    }
    
    .product-container {
        grid-template-columns: 1fr;
    }
}

.site-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}


.logo img {
    height: 40px;
    border-radius: 50%;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: auto; /* Changed from fixed height to auto */
    max-height: 250px; /* Added to control image height */
    object-fit: contain; /* Changed from 'cover' to 'contain' to show full image */
    display: block;
    margin: 0 auto;
}

/* =========================================
   Core & General Styles
   ========================================= */
:root {
    --primary-blue: #007BFF;
    --dark-blue: #0056b3;
    --secondary-black: #212529;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --text-color: #333333;
    --muted-text: #6c757d;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-gray);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-blue);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
}

.btn-secondary {
    background-color: var(--secondary-black);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #343a40;
}

.btn-success {
    background-color: #38a169;
    color: white;
}

.btn-success:hover {
    background-color: #2f855a;
}

.btn-danger {
    background-color: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background-color: #c53030;
}

/* =========================================
   Header & Navigation
   ========================================= */
.site-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo img {
    height: 40px;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    font-weight: 500;
    color: var(--secondary-black);
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-actions .btn {
    padding: 8px 16px;
}

.user-icon, .cart-icon {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
    cursor: pointer;
}

.user-icon:hover, .cart-icon:hover {
    color: var(--primary-blue);
}

.cart-icon {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #dc3545;
    color: var(--white);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1;
}

/* =========================================
   Hero & Carousel Section
   ========================================= */
#heroCarousel .carousel-item img {
    height: 400px;
    object-fit: cover;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 5%;
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    opacity: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin: 2rem 0;
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-blue);
    border-radius: 2px;
}

/* =========================================
   Cart Side Panel
   ========================================= */
.cart-panel-container {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

.cart-panel-container.open {
    right: 0;
}

.cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-panel-header h3 {
    margin: 0;
}

.cart-panel-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

.item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.item-details {
    flex-grow: 1;
}

.item-details h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.cart-summary {
    padding: 1rem;
    border-top: 1px solid #eee;
    text-align: right;
}

.cart-summary p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    gap: 10px;
}

.cart-actions .btn {
    flex: 1;
}

.empty-cart-message {
    text-align: center;
    color: var(--muted-text);
}

.remove-item-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #dc3545;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.remove-item-btn:hover {
    color: #a71d2a;
}
/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    #heroCarousel .carousel-item img {
        height: 250px;
    }

    .form-container, .profile-details-container, .pending-approval-box {
        padding: 1rem;
    }
    
    .product-container {
        grid-template-columns: 1fr;
    }
}
/* Product grid */
.product-category-section {
    padding: 4rem 0;
}

.category-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-description {
    color: var(--muted-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    height: 40px;
    overflow: hidden;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-black);
    margin-bottom: 1rem;
}

.in-stock {
    color: #28a745;
    font-weight: bold;
}

.out-of-stock {
    color: #dc3545;
    font-weight: bold;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Forms */
.form-container {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.btn-submit {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: var(--dark-blue);
}

/* Cart page styles */
.cart-section {
    padding: 2rem 0;
}

.empty-cart-message {
    text-align: center;
    font-size: 1.2rem;
    color: var(--muted-text);
}

.cart-items {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem;
    background-color: var(--white);
    margin-bottom: 2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 1rem;
    border-radius: 5px;
}

.item-details {
    flex-grow: 1;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn-update {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-remove {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-summary {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.5rem;
    background-color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.summary-details h4 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-top: 1rem;
}

/* Dashboard styles */
.admin-dashboard-section, .client-dashboard-section, .supplier-dashboard-section, .manage-suppliers-section, .add-product-section {
    padding: 4rem 0;
    text-align: center;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: var(--muted-text);
    font-size: 1.1rem;
}

.dashboard-links, .admin-main-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid var(--primary-blue);
}

.profile-details-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.pending-approval-box {
    background-color: #fffbeb;
    border: 1px solid #fbd38d;
    color: #b7791f;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 2rem auto;
    max-width: 600px;
    text-align: center;
}
.pending-approval-box h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

table th, table td {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

table thead tr {
    background-color: #f3f4f6;
    color: #4b5563;
    text-transform: uppercase;
    font-size: 0.9em;
}

table tbody tr:last-child td {
    border-bottom: none;
}

table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.dashboard-stats-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-box {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    text-align: center;
    width: 300px;
}

.stat-box h3 {
    color: #4b5563;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.income-total {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.status-approved {
    color: #2f855a;
    font-weight: 600;
}

.status-pending {
    color: #dd6b20;
    font-weight: 600;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn-success {
    background-color: #38a169;
    color: white;
}

.btn-success:hover {
    background-color: #2f855a;
}

.btn-danger {
    background-color: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background-color: #c53030;
}

.btn-primary {
    background-color: #4299e1;
    color: white;
}
.btn-primary:hover {
    background-color: #3182ce;
}

.error-message {
    background-color: #fed7d7;
    border-left: 4px solid #e53e3e;
    color: #c53030;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.success-message {
    background-color: #c6f6d5;
    border-left: 4px solid #38a169;
    color: #276749;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

/* =========================================
   Dashboard Styles
   ========================================= */
.dashboard-section {
    padding: 4rem 1rem;
    text-align: center;
}

.dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: left;
}

.dashboard-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.dashboard-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    color: var(--primary-blue);
}

.dashboard-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.dashboard-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.dashboard-card p {
    color: var(--muted-text);
    line-height: 1.5;
}


/* =========================================
   Modern Footer Styles
   ========================================= */
.site-footer {
    background-color: var(--secondary-black);
    color: #a0a0a0;
    padding: 50px 0;
    font-size: 0.9rem;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer .footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 30px;
}

.site-footer .footer-about,
.site-footer .footer-links,
.site-footer .footer-social {
    flex: 1;
    min-width: 250px;
}

.site-footer h3, .site-footer h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-weight: 600;
}

.site-footer .footer-about p {
    line-height: 1.8;
}

.site-footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-links ul li a {
    color: #a0a0a0;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.site-footer .footer-links ul li a:hover {
    color: var(--primary-blue);
}

.site-footer .footer-social a {
    display: inline-block;
    color: #a0a0a0;
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.site-footer .footer-social a:hover {
    color: var(--primary-blue);
}

.site-footer .footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 20px;
}

/* Basic Reset and Font */


/* Main Container - UPDATED */
.error-container {
    text-align: center;
    padding: 20px;
    max-width: 600px;
}

/* The "404" text - No change */
.error-code {
    font-size: 10rem;
    font-weight: 700;
    color: #4A90E2;
    line-height: 1;
    text-shadow: 4px 4px 0px #d1e0f0;
}

/* Message block - UPDATED */
.error-message h1 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
}

.error-message p {
    font-size: 1rem;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Action buttons and search - UPDATED */
.error-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* "Go to Homepage" button - UPDATED */
.error-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #4A90E2;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.error-button:hover {
    background-color: #357ABD;
    transform: translateY(-2px);
}

/* Search Form - UPDATED */
.error-search-form {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 50px;
    overflow: hidden;
    width: 100%;
    max-width: 350px;
}

.error-search-form input {
    border: none;
    padding: 12px 20px;
    flex-grow: 1;
    font-size: 1rem;
    outline: none;
}

.error-search-form button {
    border: none;
    background-color: #555;
    color: white;
    padding: 0 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.error-search-form button:hover {
    background-color: #333;
}

/* Responsive Design for smaller screens - UPDATED */
@media (max-width: 600px) {
    .error-code {
        font-size: 6rem;
    }

    .error-message h1 {
        font-size: 1.5rem;
    }

    .error-message p {
        font-size: 0.9rem;
    }
}