/**
 * Industrial Equipment Manager - Frontend Styles
 */

/* Reset and Base Styles */
.iem-equipment-list,
.iem-equipment-archive,
.iem-single-equipment,
.iem-submit-form-container,
.iem-user-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Equipment Archive Styles */
.iem-equipment-archive {
    margin: 2rem 0;
}

.archive-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 2px solid #f0f0f0;
}

.archive-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 700;
}

.archive-description {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* Filters */
.archive-filters {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 0.9rem;
}

.filter-group input,
.filter-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.filters-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* Toolbar */
.archive-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.results-info {
    font-weight: 600;
    color: #555;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.view-btn:hover,
.view-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* Equipment Grid */
.equipment-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.equipment-grid.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.equipment-grid.list-view {
    grid-template-columns: 1fr;
}

.equipment-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.equipment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.equipment-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #f8f9fa;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.equipment-item:hover .equipment-image img {
    transform: scale(1.05);
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #ecf0f1;
    color: #95a5a6;
}

.no-image .dashicons {
    font-size: 3rem;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.equipment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.equipment-item:hover .equipment-overlay {
    opacity: 1;
}

.view-details {
    background: #3498db;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.view-details:hover {
    background: #2980b9;
    color: white;
}

/* Equipment Content */
.equipment-content {
    padding: 1.5rem;
}

.equipment-header {
    margin-bottom: 1rem;
}

.equipment-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

.equipment-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.equipment-title a:hover {
    color: #3498db;
}

.equipment-subtitle {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}

.equipment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.equipment-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #555;
}

.equipment-meta .dashicons {
    font-size: 1rem;
    color: #7f8c8d;
}

.equipment-meta a {
    color: #3498db;
    text-decoration: none;
}

.equipment-meta a:hover {
    text-decoration: underline;
}

.equipment-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.equipment-specifications {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.spec-item {
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid #3498db;
}

.spec-item strong {
    color: #2c3e50;
}

/* Equipment Footer */
.equipment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.equipment-price {
    font-weight: 700;
}

.price-value {
    font-size: 1.2rem;
    color: #27ae60;
}

.price-contact {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-available {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-sold {
    background: #f8d7da;
    color: #721c24;
}

.status-reserved {
    background: #cce7ff;
    color: #004085;
}

.status-maintenance {
    background: #e2e3e5;
    color: #383d41;
}

/* Equipment Actions */
.equipment-actions {
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.equipment-actions .button {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.equipment-actions .button-primary {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.equipment-actions .button:hover {
    background: #f8f9fa;
    border-color: #bbb;
}

.equipment-actions .button-primary:hover {
    background: #2980b9;
    border-color: #2980b9;
}

.favorite-btn .dashicons {
    font-size: 1rem;
}

/* Single Equipment Page */
.iem-single-equipment {
    margin: 2rem 0;
}

.iem-equipment-header {
    margin-bottom: 3rem;
}

.iem-breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #7f8c8d;
}

.iem-breadcrumbs a {
    color: #3498db;
    text-decoration: none;
}

.iem-breadcrumbs a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
}

.equipment-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 700;
}

.equipment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.equipment-year-model {
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
}

.equipment-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Equipment Content Layout */
.iem-equipment-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .iem-equipment-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Gallery */
.iem-equipment-gallery {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.main-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-gallery {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8f9fa;
    overflow-x: auto;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    border-color: #3498db;
    transform: scale(1.05);
}

/* Equipment Details */
.iem-equipment-details {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: fit-content;
}

.equipment-summary {
    margin-bottom: 2rem;
}

.equipment-price {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    color: #27ae60;
}

.equipment-taxonomies {
    margin-bottom: 2rem;
}

.taxonomy-item {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.taxonomy-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.taxonomy-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 0.9rem;
}

.condition-tag,
.location-tag {
    display: inline-block;
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    border: 1px solid #e0e0e0;
}

.equipment-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.equipment-actions .button {
    width: 100%;
    padding: 1rem;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    cursor: pointer;
}

.contact-seller {
    background: #3498db !important;
    color: white !important;
    border-color: #3498db !important;
}

.contact-seller:hover {
    background: #2980b9 !important;
    border-color: #2980b9 !important;
}

.save-favorite {
    background: #e74c3c !important;
    color: white !important;
    border-color: #e74c3c !important;
}

.save-favorite:hover {
    background: #c0392b !important;
    border-color: #c0392b !important;
}

.edit-equipment {
    background: #f39c12 !important;
    color: white !important;
    border-color: #f39c12 !important;
}

.edit-equipment:hover {
    background: #d68910 !important;
    border-color: #d68910 !important;
}

/* Tabs */
.iem-equipment-tabs {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 3rem;
}

.tab-nav {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.tab-button {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    color: #7f8c8d;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-button:hover,
.tab-button.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: white;
}

.tab-content {
    padding: 2rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Specifications Grid */
.specifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.spec-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.spec-item.full-width {
    grid-column: 1 / -1;
}

.spec-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 0.9rem;
}

/* Notes and Issues */
.notes-section,
.issues-section {
    max-width: none;
}

.add-note-form,
.add-issue-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.add-note-form h4,
.add-issue-form h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.form-row {
    margin-bottom: 1rem;
}

.form-row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-row-group {
        grid-template-columns: 1fr;
    }
}

.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.form-actions {
    margin-top: 1rem;
}

.notes-list,
.issues-list {
    space-y: 1rem;
}

.note-item,
.issue-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.note-header,
.issue-header {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.note-header h5,
.issue-header h5 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.note-meta,
.issue-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #7f8c8d;
}

.note-type,
.issue-type,
.issue-priority,
.issue-status,
.note-private {
    background: #f8f9fa;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.note-private {
    background: #e74c3c;
    color: white;
}

.priority-low {
    background: #d4edda;
    color: #155724;
}

.priority-medium {
    background: #fff3cd;
    color: #856404;
}

.priority-high {
    background: #f8d7da;
    color: #721c24;
}

.priority-critical {
    background: #721c24;
    color: white;
}

.issue-content {
    margin-bottom: 1rem;
}

.issue-cost {
    font-weight: 600;
    color: #e74c3c;
}

.issue-resolution {
    background: #d4edda;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #27ae60;
    margin-top: 1rem;
}

.issue-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #7f8c8d;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.5rem;
}

/* Related Equipment */
.iem-related-equipment {
    margin-top: 3rem;
}

.iem-related-equipment h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-weight: 700;
}

.related-equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-equipment-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.related-equipment-item:hover {
    transform: translateY(-2px);
}

.related-image {
    height: 150px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content {
    padding: 1rem;
}

.related-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
}

.related-content h4 a {
    color: #2c3e50;
    text-decoration: none;
}

.related-content h4 a:hover {
    color: #3498db;
}

.related-price {
    color: #27ae60;
    font-weight: 600;
}

/* Pagination */
.equipment-pagination,
.iem-pagination {
    margin: 3rem 0;
    text-align: center;
}

.equipment-pagination .page-numbers,
.iem-pagination .page-numbers {
    display: inline-block;
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.equipment-pagination .page-numbers:hover,
.iem-pagination .page-numbers:hover,
.equipment-pagination .page-numbers.current,
.iem-pagination .page-numbers.current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* No Results */
.no-equipment-found,
.iem-no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: #7f8c8d;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
}

.no-equipment-found h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.no-results-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Forms */
.iem-submit-form-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.iem-equipment-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

/* User Dashboard */
.iem-user-dashboard {
    max-width: 1200px;
    margin: 2rem auto;
}

.iem-user-dashboard h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-weight: 700;
}

.iem-user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-weight: 500;
}

.iem-user-equipment-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.iem-user-equipment-table th,
.iem-user-equipment-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.iem-user-equipment-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.iem-user-equipment-table tr:last-child td {
    border-bottom: none;
}

/* Modal Styles */
.iem-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

/* Lightbox Styles */
.iem-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
}

.lightbox-close:hover {
    color: #ccc;
}

/* Field Error Styles */
.field-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-row input.error,
.form-row select.error,
.form-row textarea.error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

/* Image Preview */
#image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.preview-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .equipment-grid.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .iem-equipment-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .archive-title {
        font-size: 2rem;
    }
    
    .equipment-title {
        font-size: 2rem;
    }
    
    .filters-row {
        grid-template-columns: 1fr;
    }
    
    .archive-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .equipment-grid.grid-view {
        grid-template-columns: 1fr;
    }
    
    .equipment-actions {
        flex-direction: column;
    }
    
    .tab-nav {
        flex-wrap: wrap;
    }
    
    .specifications-grid {
        grid-template-columns: 1fr;
    }
    
    .related-equipment-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .iem-user-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .iem-user-equipment-table {
        font-size: 0.9rem;
    }
    
    .no-results-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .equipment-item {
        margin-bottom: 1rem;
    }
    
    .equipment-image {
        height: 200px;
    }
    
    .equipment-content {
        padding: 1rem;
    }
    
    .equipment-footer {
        padding: 1rem;
    }
    
    .iem-equipment-details {
        padding: 1rem;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .form-row-group {
        grid-template-columns: 1fr;
    }
    
    .iem-user-equipment-table th,
    .iem-user-equipment-table td {
        padding: 0.5rem;
    }
}

/* Loading States */
.iem-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    font-size: 1.1rem;
    color: #7f8c8d;
}

.iem-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error Messages */
.iem-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.iem-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.iem-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.iem-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.iem-message.info {
    background: #cce7ff;
    color: #004085;
    border: 1px solid #b8daff;
}

/* Print Styles */
@media print {
    .archive-filters,
    .archive-toolbar,
    .equipment-actions,
    .equipment-overlay,
    .tab-nav,
    .add-note-form,
    .add-issue-form {
        display: none;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
    
    .equipment-item {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
