/* CSS Variables for consistent theming */
:root {
    --primary-green: #006747; /* USC Green */
    --secondary-green: #008542;
    --light-green: #e8f5e9;
    --accent-yellow: #FFC72C; /* USC Gold */
    --light-yellow: #fff9e6;
    --dark-text: #333333;
    --light-text: #666666;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light-gray);
    color: var(--dark-text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-green);
}

.logo span {
    color: var(--accent-yellow);
}

.logo-icon {
    margin-right: 8px;
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: var(--light-green);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--dark-text);
    transition: background-color 0.3s;
    text-align: left;
}

.dropdown-menu a:hover {
    background-color: var(--light-green);
    color: var(--primary-green);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    padding: 10px 20px;
    font-weight: 600;
    border-radius: var(--border-radius);
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-green);
}

.btn-secondary {
    background-color: var(--accent-yellow);
    color: var(--dark-text);
}

.btn-secondary:hover {
    background-color: #e6b325;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
}

.btn-outline:hover {
    background-color: var(--light-green);
}

.search-bar {
    display: flex;
    margin: 0 20px;
    flex-grow: 1;
    max-width: 500px;
}

.search-bar input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    outline: none;
}

.search-bar input:focus {
    border-color: var(--primary-green);
}

.search-bar button {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 0 20px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.mobile-menu-btn {
    display: none;
    background: none;
    font-size: 1.5rem;
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 103, 71, 0.9), rgba(0, 103, 71, 0.8)), url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Categories Section */
.categories {
    padding: 60px 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-green);
    font-size: 2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.category-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    background-color: var(--light-green);
    padding: 25px;
    font-size: 2.5rem;
    color: var(--primary-green);
}

.category-card h3 {
    padding: 20px 15px;
    color: var(--primary-green);
}

/* Featured Items Section */
.featured-items {
    padding: 60px 0;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.item-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    position: relative;
}

.item-card:hover {
    transform: translateY(-5px);
}

.item-card-image {
    height: 200px;
    background-color: var(--light-gray);
    background-size: cover;
    background-position: center;
    position: relative;
}

.report-flag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.report-flag:hover {
    background-color: var(--light-gray);
    transform: scale(1.1);
}

.item-details {
    padding: 20px;
}

.item-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-green);
}

.item-price {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent-yellow);
    margin-bottom: 10px;
}

.item-seller {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.item-card-description {
    color: var(--light-text);
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.item-actions {
    display: flex;
    justify-content: space-between;
}

/* Item Card Description Popup */
.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    position: relative;
}

.item-title {
    flex: 1;
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-green);
}

.description-toggle {
    background: var(--accent-yellow);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 101;
}

.description-toggle:hover {
    background: var(--accent-yellow);
}

.item-description-popup {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    width: 300px;
    max-width: 90vw;
    display: none;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--dark-text);
}

.description-toggle:hover + .item-description-popup,
.item-description-popup:hover {
    display: block;
}

.item-card-description {
    display: none;
}

.item-card {
    position: relative;
    overflow: visible;
}

.item-details {
    position: relative;
    overflow: visible;
}

/* Footer */
footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-icon:hover {
    background-color: var(--accent-yellow);
    color: var(--dark-text);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.modal h3 {
    margin-bottom: 15px;
    color: var(--primary-green);
}

.modal p {
    margin-bottom: 25px;
    color: var(--light-text);
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.modal-btn {
    padding: 10px 25px;
    min-width: 80px;
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 40px 0;
    background-color: var(--light-gray);
}

/* Form Container */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--light-gray);
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-green);
    font-size: 2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-green);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

/* Image Preview */
.image-preview {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-yellow);
}

/* Browse page specific */
.filters-sidebar {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.filters-sidebar h3 {
    margin-bottom: 20px;
    color: var(--primary-green);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--dark-text);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.browse-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 40px 0;
}

/* Favorites Page Styles */
.favorites-header {
    text-align: center;
    margin-bottom: 30px;
}

.favorites-subtitle {
    color: var(--light-text);
    font-size: 1.1rem;
}

.no-favorites-message {
    text-align: center;
    padding: 60px 20px;
}

.empty-state {
    max-width: 400px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 15px;
    color: var(--primary-green);
}

.empty-state p {
    margin-bottom: 25px;
    color: var(--light-text);
}

/* Admin page styles */
.admin-container {
    padding: 40px 0;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--light-text);
    font-size: 1rem;
}

.admin-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.action-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
}

.action-card h3 {
    margin-bottom: 15px;
    color: var(--primary-green);
}

/* Responsive Design */
@media (max-width: 992px) {
    .search-bar {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .search-bar {
        order: 3;
        margin: 15px 0 0;
        max-width: 100%;
    }

    nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }

    .item-actions {
        flex-direction: column;
        gap: 10px;
    }

    .item-actions .btn {
        width: 100%;
    }

    .header-container {
        flex-wrap: wrap;
    }
    
    nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .dropdown-menu {
        left: -50px;
    }
}

.page-content {
    flex: 1;
    padding: 40px 0;
    background-color: var(--white);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    color: var(--primary-green);
    font-size: 2rem;
}

.showPW {
        font-size: 14px;
        text-align: left;
}

.error {
        color: red;
        font-size: 12px;
        text-align: left;
}

.phone-wrapper {
        display: flex;
        align-items: center;
        margin: 10px 0;
        border: 1px solid #ccc;
        border-radius: 4px;
        overflow: hidden;
        background-color: #fff;
        height: 38px;
        width: 100%; 
}

#phonenum{
    border: none;
    margin-left: 10px;
    font-size: 1rem;
}

#phonenum:focus {
    outline:none;
}

/* File Input Styling */

.form-group input[type="file"]::file-selector-button {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    margin-right: 15px;
    font-weight: 200;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-group input[type="file"]::file-selector-button:hover {
    background-color: var(--secondary-green);
}


/* =================================== */
/* ===== DASHBOARD COMMON STYLES ===== */
/* =================================== */

.dashboard-content {
    padding: 40px 250px;
    background-color: var(--light-gray);
    min-height: calc(100vh - 80px);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.page-title {
    color: var(--primary-green);
    font-size: 2rem;
    margin: 0;
    text-align: center;
}

/* Common Table Styles */
.table-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.dashboard-table th {
    background-color: var(--primary-green);
    color: var(--white);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.dashboard-table tr:hover {
    background-color: var(--light-gray);
}

/* Common Image Styles */
.item-image {
    width: 80px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    background-color: var(--light-gray);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.item-image:hover {
    transform: scale(1.05);
}

/* Common Item Info Styles */
.item-title {
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 5px;
}

.item-description-container {
    max-width: 300px;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.item-description {
    color: var(--light-text);
    font-size: 0.9rem;
    overflow: hidden;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
}

.item-description.truncated {
    white-space: nowrap;
    text-overflow: ellipsis;
}

.item-description.expanded {
    white-space: normal;
    max-height: none;
}

.expand-btn {
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background-color 0.2s;
    flex-shrink: 0;
    margin-top: 1px;
}

.expand-btn:hover {
    background-color: var(--light-green);
}

.item-date {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Common Status Styles */
.status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-available,
.status-active,
.status-resolved,
.status-completed {
    background-color: var(--light-green);
    color: var(--primary-green);
}

.status-sold,
.status-inactive,
.status-cancelled {
    background-color: #ffebee;
    color: #c62828;
}

.status-removed {
    background-color: #f5f5f5;
    color: var(--light-text);
}

.status-pending {
    background-color: var(--light-yellow);
    color: #b38f00;
}

/* Common Action Styles */
.action-buttons {
    display: flex;
    gap: 5px;
}

.action-btn {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* Action Button Variants */
.btn-remove,
.btn-deactivate,
.btn-cancel {
    background-color: #f44336;
    color: white;
}

.btn-remove:hover,
.btn-deactivate:hover,
.btn-cancel:hover {
    background-color: #d32f2f;
}

.btn-restore,
.btn-mark-sold,
.btn-view-listing {
    background-color: var(--accent-yellow);
    color: var(--dark-text);
}

.btn-restore:hover,
.btn-mark-sold:hover,
.btn-view-listing:hover {
    background-color: #e6b325;
}

.btn-activate,
.btn-resolve,
.btn-mark-available,
.btn-complete {
    background-color: var(--primary-green);
    color: white;
}

.btn-activate:hover,
.btn-resolve:hover,
.btn-mark-available:hover,
.btn-complete:hover {
    background-color: var(--secondary-green);
}

/* Common Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-btn {
    padding: 8px 15px;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    color: var(--dark-text);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover {
    background-color: var(--light-green);
    border-color: var(--primary-green);
}

.pagination-btn.active {
    background-color: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.disabled:hover {
    background-color: var(--white);
    border-color: var(--light-gray);
}

/* Common Search & Filter Styles */
.search-filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.search-box input:focus {
    border-color: var(--primary-green);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
}

.filter-dropdown {
    min-width: 150px;
}

.filter-dropdown select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: var(--white);
}

/* Common Empty State Styles */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--light-text);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--light-gray);
}

.empty-state h3 {
    margin-bottom: 15px;
    color: var(--primary-green);
}

/* Common Image Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.image-modal.active {
    display: flex;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.image-modal img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--border-radius);
}

/* ===== SPECIFIC COMPONENT STYLES ===== */

/* Admin Specific */
.listing-creator {
    font-weight: 500;
}

.listing-link {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.listing-link:hover {
    color: var(--secondary-green);
    text-decoration: underline;
}

/* User Specific */
.user-name,
.buyer-name,
.seller-name,
.reporter-name {
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 2px;
}

.user-studentid,
.buyer-studentid,
.seller-studentid,
.reporter-email {
    color: var(--light-text);
    font-size: 0.9rem;
}

.user-email,
.buyer-email,
.user-contact {
    color: var(--dark-text);
    font-size: 0.9rem;
}

.interest-date,
.report-date {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .dashboard-content {
        padding: 20px;
    }
    
    .dashboard-table {
        display: block;
        overflow-x: auto;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .search-filter-bar {
        flex-direction: column;
    }
    
    .search-box, .filter-dropdown {
        width: 100%;
    }
    
    .item-description-container {
        max-width: 200px;
    }
}

/* Category Details Field */
.category-fields {
    margin: 15px 0;
    padding: 15px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    display: none;
}

.category-fields.active {
    display: block;
}

.required::after {
    content: " *";
    color: #f44336;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

#electronics-warranty {
    width: 20px;
}

.category-image {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.category-card {
    text-align: center;
    padding: 20px;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.item-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.item-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.item-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 15px;
}