body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    height: 100vh;
    background-color: #f5f5f5;
}
.sidebar {
    width: 60px;
    background: #2d2d2d;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    transition: transform 0.3s ease;
    z-index: 100; /* Ensure sidebar is above other content */
}
.sidebar i {
    margin: 1.5rem 0;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    transition: color 0.2s;
}
.sidebar i:hover, 
.sidebar a:hover i {
    color: #b0b0b0;
}
.sidebar a {
    color: white;
    text-decoration: none;
}
.main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.topbar {
    background: #ffffff;
    /*height: 50px;*/
    display: flex; 
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #ccc;
}
.topbar .user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.topbar .user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.topbar .logout-button {
    background: #2d2d2d;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background-color 0.2s;
}
.topbar .logout-button:hover {
    background-color: #444;
}

/* Logo Container Fix */
.current-logo {
    width: 200px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 0.5rem;
    overflow: hidden; /* Prevents content from spilling out */
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block; /* Removes extra space under image */
}

/* Make sure all logo containers have the same constraints */
.company-logo-container,
.no-logo,
.logo-preview img {
    overflow: hidden;
}

/* Ensure consistent logo display throughout the application */
.company-branding .company-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    max-width: 100%; /* Prevents overflow */
}

.company-name {
    font-weight: 500;
    font-size: 1.1rem;
}
.content {
    flex-grow: 1;
    display: flex;
   /* align-items: center; */
    justify-content: center;
    padding: 1rem;
}

/* Mobile Menu Styles */
.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    margin-right: 0.75rem;
    z-index: 102; /* Ensure it's above other elements */
}

.hamburger-menu i {
    display: block; /* Ensure icon is visible */
}

#menu-toggle {
    display: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }
    .sidebar {
        position: fixed;
        top: 50px;
        left: 0;
        bottom: 0;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .hamburger-menu {
        display: block;
    }
    .topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 101;
    }
    .main {
        margin-top: 50px;
    }
    .company-branding {
        max-width: 70%;
    }
}

/* Form Styles */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 600px;
}
.wide-form {
    max-width: 800px;
}
.standard-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}
.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.form-section h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2d2d2d;
}
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}
.form-group textarea {
    resize: vertical;
}
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}
.primary-button, 
.secondary-button {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
.primary-button {
    background: #2d2d2d;
    color: white;
    border: none;
}
.secondary-button {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}
.message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    background-color: #f0f8ff;
    border: 1px solid #b8d8fb;
    color: #0066cc;
}
.error {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    background-color: #fff0f0;
    border: 1px solid #ffb8b8;
    color: #cc0000;
}

/* Account Page Styles */
.account-page {
    align-items: flex-start;
    padding-top: 2rem;
}
.account-container {
    width: 100%;
    max-width: 800px;
}
.account-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1.5rem;
}
.account-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    flex: 1;
    min-width: 250px;
}
.account-section h2 {
    margin-top: 0;
    color: #2d2d2d;
}
.account-link {
    display: inline-flex;
    align-items: center;
    background: #2d2d2d;
    color: white;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    transition: background 0.2s;
}
.account-link:hover {
    background: #444;
}
.account-link i {
    margin-right: 0.5rem;
}

/* Asset Management Styles */
.asset-management {
    padding: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.action-buttons {
    display: flex;
    gap: 0.5rem;
}
.filter-bar {
    display: flex;
    justify-content: space-between;
    background: white;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.filter-form {
    display: flex;
    width: 100%;
    justify-content: space-between;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.search-group {
    flex-grow: 1;
    max-width: 400px;
}
.icon-button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #555;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.icon-button:hover {
    background-color: #f0f0f0;
    color: #333;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.data-table th,
.data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.data-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}
.data-table tbody tr:hover {
    background-color: #f9f9f9;
}
.data-table tbody tr:last-child td {
    border-bottom: none;
}
.asset-image {
    width: 60px;
}
.asset-image img {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
}
.no-image {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    border-radius: 4px;
}
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}
.status-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 12px;
    background: #eee;
    color: #555;
}
.status-badge.available {
    background: #e8f5e9;
    color: #2e7d32;
}
.status-badge.checked-out {
    background: #fff8e1;
    color: #f57c00;
}
.status-badge.in-transit {
    background: #e3f2fd;
    color: #1976d2;
}
.status-badge.maintenance {
    background: #fbe9e7;
    color: #d32f2f;
}
.inventory-status.low-stock {
    color: #d32f2f;
}
.page-header {
    margin-bottom: 1.5rem;
}
.page-header h2 {
    margin-bottom: 0.5rem;
}
.asset-info {
    padding: 1rem;
    background: #f5f7fa;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}
.asset-info h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.asset-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}
.no-results {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.table-responsive {
    overflow-x: auto;
}

/* Asset Detail Styles */
.asset-detail-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
}
.asset-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.asset-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.asset-summary, 
.asset-history {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}
.asset-summary-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}
.asset-summary-header .asset-image {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.asset-summary-header .asset-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.asset-title h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}
.asset-subtitle {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.9rem;
}
.asset-details {
    padding: 1.5rem;
}
.detail-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}
.detail-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.detail-section h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
}
.detail-item {
    display: flex;
    margin-bottom: 0.5rem;
}
.detail-label {
    flex-basis: 40%;
    color: #666;
    font-weight: 500;
}
.detail-value {
    flex-basis: 60%;
}
.detail-item.highlight {
    padding: 0.5rem;
    margin: -0.5rem -0.5rem 0.5rem -0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}
.detail-value.low-stock {
    color: #d32f2f;
    font-weight: 500;
}
.reorder-alert {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    color: #f57c00;
    font-size: 0.9rem;
    border-radius: 0 4px 4px 0;
}
.reorder-alert i {
    margin-right: 0.5rem;
}
.notes-text {
    white-space: pre-line;
    color: #555;
    line-height: 1.5;
}
.asset-history {
    display: flex;
    flex-direction: column;
}
.asset-history h3 {
    margin: 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}
.transactions-list {
    padding: 1.5rem;
    overflow-y: auto;
    flex-grow: 1;
}
.no-transactions {
    padding: 2rem;
    text-align: center;
    color: #666;
}
.transaction-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}
.transaction-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.transaction-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.transaction-type {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.created-at {
    color: #777;
    font-size: 0.9rem;
}
.transaction-details {
    padding-left: 1.5rem;
    border-left: 2px solid #eee;
    color: #555;
    font-size: 0.95rem;
}
.transaction-details > div {
    margin-bottom: 0.35rem;
}
.transaction-details > div:last-child {
    margin-bottom: 0;
}
.transaction-user {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #777;
}

/* QR Code Styles */
.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    max-width: 300px;
}
.qr-code-image {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #eee;
    padding: 10px;
    background: white;
    margin-bottom: 1rem;
}
.qr-code-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.qr-code-actions .secondary-button {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}
.qr-help-text {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
}
.current-image {
    margin-bottom: 1rem;
}
.current-image img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    border: 1px solid #eee;
    padding: 5px;
    background: white;
    display: block;
    margin-bottom: 0.5rem;
}
.asset-type-badge {
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
}

/* QR Code Scan Page Styles */
.scan-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
}
.scan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.scan-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}
.scan-asset-info {
    display: flex;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}
.scan-asset-image {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1.5rem;
}
.scan-asset-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.scan-asset-details {
    flex-grow: 1;
}
.scan-asset-details h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}
.scan-asset-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}
.scan-asset-status,
.scan-asset-holder,
.scan-asset-location,
.scan-asset-inventory {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.scan-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 1.5rem;
}
.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
}
.action-button:hover {
    background-color: #e0e0e0;
}
.action-button.primary {
    background: #2d2d2d;
    color: white;
}
.action-button.primary:hover {
    background: #444;
}
.login-prompt {
    padding: 1.5rem;
    text-align: center;
}
.login-prompt p {
    margin-bottom: 1rem;
    color: #666;
}

@media (max-width: 992px) {
    .asset-detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .scan-asset-info {
        flex-direction: column;
    }
    .scan-asset-image {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    .scan-actions {
        grid-template-columns: 1fr;
    }
}

/* From delete asset page */

.delete-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.delete-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.delete-header h2 {
    margin: 0;
    color: #d32f2f;
}
.delete-warning {
    display: flex;
    align-items: center;
    background: #ffebee;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.warning-icon {
    font-size: 2.5rem;
    color: #d32f2f;
    margin-right: 1.5rem;
}
.warning-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #c62828;
}
.warning-content p {
    margin: 0;
    color: #b71c1c;
}
.asset-summary {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.asset-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.asset-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.asset-type, .asset-id {
    background: #e0e0e0;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
}
.deletion-impact {
    border-top: 1px solid #e0e0e0;
    padding-top: 1.5rem;
}
.impact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.impact-icon {
    font-size: 1.75rem;
    color: #f57c00;
}
.impact-count {
    font-size: 1.5rem;
    font-weight: 600;
}
.impact-label {
    color: #555;
}
.delete-alternatives {
    background: #e8f5e9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.delete-alternatives h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #2e7d32;
}
.delete-alternatives p {
    margin-bottom: 1rem;
}
.delete-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}
.delete-actions form {
    display: flex;
    gap: 1rem;
    width: 100%;
}
.danger-button {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.danger-button:hover {
    background: #b71c1c;
}
.cancel-button {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cancel-button:hover {
    background: #e0e0e0;
}

@media (max-width: 600px) {
    .delete-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .delete-warning {
        flex-direction: column;
        text-align: center;
    }
    .warning-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .delete-actions form {
        flex-direction: column;
    }
}

/* From disbale assets */

.disable-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.disable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.disable-header h2 {
    margin: 0;
    color: #f57c00;
}
.disable-info {
    display: flex;
    align-items: flex-start;
    background: #fff8e1;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.info-icon {
    font-size: 2.5rem;
    color: #f57c00;
    margin-right: 1.5rem;
}
.info-content h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #f57c00;
}
.info-content p {
    margin-top: 0;
    margin-bottom: 0.5rem;
}
.info-content ul {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 1.5rem;
}
.info-content li {
    margin-bottom: 0.5rem;
}
.asset-summary {
    background: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.asset-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.asset-details {
    display: flex;
    gap: 1rem;
}
.asset-type, .asset-id {
    background: #e0e0e0;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
}
.disable-form {
    margin-top: 2rem;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}
.disable-actions {
    display: flex;
    gap: 1rem;
}
.warning-button {
    background: #f57c00;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.warning-button:hover {
    background: #e65100;
}
.cancel-button {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.cancel-button:hover {
    background: #e0e0e0;
}

@media (max-width: 600px) {
    .disable-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .disable-info {
        flex-direction: column;
        text-align: center;
    }
    .info-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .disable-actions {
        flex-direction: column;
    }
}

/* Disabled assets  */

.dashboard-container {
    padding: 1.5rem;
    width: 100%;
  /*  max-width: 1400px; */
    margin: 0 auto;
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.dashboard-title {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}
.filter-toolbar {
    display: flex;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    padding: 1rem;
    align-items: center;
}
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex-grow: 1;
}
.filter-group {
    display: flex;
    align-items: center;
}
.search-input {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
    flex-grow: 1;
    max-width: 400px;
}
.search-input:focus-within {
    border-color: #4b6cb7;
}
.search-input input {
    border: none;
    padding: 0.5rem 1rem;
    flex-grow: 1;
    outline: none;
}
.search-input button {
    background: #f5f5f5;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.search-input button:hover {
    background: #e0e0e0;
}
.data-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}
.card-header {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}
.disabled-assets-list {
    padding: 0;
}
.disabled-asset-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.disabled-asset-item:last-child {
    border-bottom: none;
}
.disabled-asset-item:hover {
    background-color: #f5f8ff;
}
.asset-thumb {
    width: 80px;
    height: 80px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.asset-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.asset-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 250px;
}
.asset-name {
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}
.asset-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}
.asset-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #f0f0f0;
    color: #333;
}
.asset-badge.transactional {
    background: #e3f2fd;
    color: #0277bd;
}
.asset-badge.permanent {
    background: #e8f5e9;
    color: #2e7d32;
}
.asset-reason {
    margin-top: 0.5rem;
    color: #666;
    font-style: italic;
}
.disabled-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    min-width: 150px;
}
.disabled-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
.disabled-time-ago {
    color: #999;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}
.asset-actions {
    display: flex;
    gap: 0.5rem;
}
.action-button {
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.action-button:hover {
    background: #e0e0e0;
}
.action-button.primary {
    background: #4b6cb7;
    color: white;
    border-color: #4b6cb7;
}
.action-button.primary:hover {
    background: #3c5aa0;
}
.action-button.success {
    background: #2e7d32;
    color: white;
    border-color: #2e7d32;
}
.action-button.success:hover {
    background: #1b5e20;
}
.no-assets {
    padding: 3rem;
    text-align: center;
}
.no-assets-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}
.no-assets-message {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 1.5rem;
}
.message-bar {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.message-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.message-icon {
    font-size: 1.25rem;
    color: #0277bd;
}
.message-text {
    color: #01579b;
}
.message-close {
    background: none;
    border: none;
    color: #0277bd;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: color 0.2s;
}
.message-close:hover {
    color: #01579b;
}
.reactivate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
}
.modal-header {
    margin-bottom: 1.5rem;
}
.modal-header h3 {
    margin: 0;
}
.modal-body {
    margin-bottom: 1.5rem;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}
@media (max-width: 768px) {
    .disabled-asset-item {
        flex-direction: column;
        gap: 1rem;
    }
    .disabled-info {
        align-items: flex-start;
    }
}

/* From manage assets  */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.dashboard-title {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}
.stat-card.primary {
    background: linear-gradient(135deg, #4b6cb7, #182848);
    color: white;
}
.stat-card.primary .stat-label {
    color: rgba(255,255,255,0.8);
}
.stat-card.warning {
    background: linear-gradient(135deg, #f2994a, #f2c94c);
    color: white;
}
.stat-card.warning .stat-label {
    color: rgba(255,255,255,0.8);
}
.stat-card.danger {
    background: linear-gradient(135deg, #eb3349, #f45c43);
    color: white;
}
.stat-card.danger .stat-label {
    color: rgba(255,255,255,0.8);
}
.stat-card.success {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
}
.stat-card.success .stat-label {
    color: rgba(255,255,255,0.8);
}
.filter-toolbar {
    display: flex;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    padding: 1rem;
    align-items: center;
}
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex-grow: 1;
}
.filter-group {
    display: flex;
    align-items: center;
}
.filter-label {
    font-weight: 500;
    margin-right: 0.5rem;
    white-space: nowrap;
}
.search-input {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.2s;
    flex-grow: 1;
    max-width: 400px;
}
.search-input:focus-within {
    border-color: #4b6cb7;
}
.search-input input {
    border: none;
    padding: 0.5rem 1rem;
    flex-grow: 1;
    outline: none;
}
.search-input button {
    background: #f5f5f5;
    border: none;
    padding: 0 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.search-input button:hover {
    background: #e0e0e0;
}
.filter-select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    background: white;
    min-width: 150px;
    transition: border-color 0.2s;
}
.filter-select:focus {
    border-color: #4b6cb7;
    outline: none;
}
.data-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}
.card-header {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}
.table-wrapper {
    overflow-x: auto;
}
.asset-table {
    width: 100%;
    border-collapse: collapse;
}
.asset-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    position: sticky;
    top: 0;
}
.asset-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.asset-table tr:last-child td {
    border-bottom: none;
}
.asset-table tr:hover {
    background-color: #f5f8ff;
}
.asset-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.asset-image {
    width:150px;
    height:150px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.asset-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.asset-info {
    display: flex;
    flex-direction: column;
}
.asset-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.asset-id {
    font-size: 0.85rem;
    color: #666;
}
.asset-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    background: #f0f0f0;
    color: #333;
}
.asset-badge.transactional {
    background: #e3f2fd;
    color: #0277bd;
}
.asset-badge.permanent {
    background: #e8f5e9;
    color: #2e7d32;
}
.asset-badge.available {
    background: #e8f5e9;
    color: #2e7d32;
}
.asset-badge.checked-out {
    background: #fff8e1;
    color: #f57f17;
}
.asset-badge.in-transit {
    background: #e3f2fd;
    color: #0277bd;
}
.asset-badge.maintenance {
    background: #ffebee;
    color: #c62828;
}
.vendor-info {
    font-size: 0.9rem;
}
.asset-status {
    display: flex;
    flex-direction: column;
}
.status-text {
    margin-bottom: 0.25rem;
}
.status-info {
    font-size: 0.85rem;
    color: #666;
}
.low-stock {
    color: #c62828;
}
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}
.action-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    color: #555;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.action-button:hover {
    background: #e0e0e0;
    color: #333;
}
.action-button.primary {
    background: #4b6cb7;
    color: white;
}
.action-button.primary:hover {
    background: #3c5aa0;
}
.action-button.warning {
    background: #f2994a;
    color: white;
}
.action-button.warning:hover {
    background: #e67e22;
}
.action-button.danger {
    background: #eb3349;
    color: white;
}
.action-button.danger:hover {
    background: #c62828;
}
.no-assets-container {
    padding: 3rem;
    text-align: center;
}
.no-assets-icon {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}
.no-assets-message {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}
.message-bar {
    background: #e3f2fd;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.message-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.message-icon {
    font-size: 1.25rem;
    color: #0277bd;
}
.message-text {
    color: #01579b;
}
.message-close {
    background: none;
    border: none;
    color: #0277bd;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem;
    transition: color 0.2s;
}
.message-close:hover {
    color: #01579b;
}
.tooltip {
    position: relative;
}
.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
.tooltip-text {
    visibility: hidden;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    text-align: center;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    width: max-content;
    max-width: 200px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
}
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Mobile card view styles */
.desktop-view {
    display: block;
}
.mobile-view {
    display: none;
}

/* Card Styles */
.asset-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    overflow: hidden;
}
.asset-card-header {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}
.asset-card-image {
    width: 120px !important;
    height: 120px !important;
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    overflow: hidden;
}
.asset-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.asset-card-image i {
    font-size: 1.5rem;
    color: #aaa;
}
.asset-card-title {
    flex-grow: 1;
}
.asset-card-title .asset-name {
    font-weight: 600;
    margin-bottom: 0.3rem;
}
.asset-card-title .asset-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
}
.asset-card-content {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}
.asset-card-row {
    display: flex;
    margin-bottom: 0.5rem;
}
.asset-card-row:last-child {
    margin-bottom: 0;
}
.row-label {
    width: 80px;
    font-weight: 500;
    color: #666;
}
.row-value {
    flex-grow: 1;
}
.warning-badge {
    color: #d32f2f;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}
.asset-card-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.5rem;
    padding: 1rem;
}
.card-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 6px;
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    text-align: center;
    transition: background-color 0.2s;
}
.card-action-btn i {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}
.card-action-btn:hover {
    background: #e0e0e0;
}
.card-action-btn.primary {
    background: #4b6cb7;
    color: white;
}
.card-action-btn.primary:hover {
    background: #3c5aa0;
}
.card-action-btn.warning {
    background: #f2994a;
    color: white;
}
.card-action-btn.warning:hover {
    background: #e67e22;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 0.75rem;
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    .dashboard-header .action-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 0.5rem;
    }
    .dashboard-header .action-buttons a {
        justify-content: center;
        text-align: center;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    .stat-card {
        padding: 0.75rem;
    }
    .stat-value {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.8rem;
    }
    .filters {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    .filter-group {
        width: 100%;
    }
    .filter-select, .search-input {
        width: 100%;
    }
    .filter-toolbar {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .desktop-view {
        display: none;
    }
    .mobile-view {
        display: block;
    }
    .card-header {
        text-align: center;
        padding: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .dashboard-header .action-buttons {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .primary-button, .secondary-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Scan assets styles */

.scan-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
}
.scan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.scan-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}
.scan-asset-info {
    display: flex;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}
.scan-asset-image {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1.5rem;
}
.scan-asset-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.scan-asset-details {
    flex-grow: 1;
}
.scan-asset-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}
.disabled-badge {
    background: #ffebee;
    color: #c62828;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}
.scan-asset-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}
.scan-asset-status,
.scan-asset-holder,
.scan-asset-location,
.scan-asset-inventory {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.scan-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    padding: 1.5rem;
}
.action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
}
.action-button:hover {
    background-color: #e0e0e0;
}
.action-button.primary {
    background: #2d2d2d;
    color: white;
}
.action-button.primary:hover {
    background: #444;
}
.disabled-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    text-align: center;
    background: #ffebee;
    border-radius: 0 0 8px 8px;
    color: #c62828;
}
.disabled-notice i {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.disabled-notice p {
    margin-bottom: 1rem;
}
@media (max-width: 600px) {
    .scan-asset-info {
        flex-direction: column;
    }
    .scan-asset-image {
        margin-right: 0;
        margin-bottom: 1rem;
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    .scan-actions {
        grid-template-columns: 1fr;
    }
    .scan-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* from view assets page */

.asset-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.asset-disabled-badge {
    background: #ffebee;
    color: #c62828;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.disabled-info-section {
    background: #ffebee;
    border-radius: 8px;
    padding: 1.5rem;
}
.disabled-status {
    color: #c62828;
    font-weight: 500;
}
.disabled-reason {
    font-style: italic;
    color: #555;
}
.reactivate-button-container {
    margin-top: 1rem;
    text-align: right;
}
.reactivate-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #43a047;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}
.reactivate-button:hover {
    background: #2e7d32;
}
.asset-management-actions {
    border-top: 1px solid #e0e0e0;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}
.management-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.edit-button, .disable-button, .delete-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}
.edit-button {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}
.edit-button:hover {
    background: #e0e0e0;
}
.disable-button {
    background: #fff8e1;
    color: #f57c00;
    border: 1px solid #ffecb3;
}
.disable-button:hover {
    background: #ffe082;
}
.delete-button {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}
.delete-button:hover {
    background: #ef9a9a;
}

@media (max-width: 768px) {
    .management-buttons {
        grid-template-columns: 1fr;
    }
}

/* Account Management Styles */
.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.account-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.account-card-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.account-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    border-radius: 50%;
    margin-right: 1.25rem;
    color: #1976d2;
    font-size: 1.5rem;
}

.account-card-title {
    flex-grow: 1;
}

.account-card-title h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.account-card-title p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.account-card-content {
    padding: 1.5rem;
}

.account-card-content.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.account-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.account-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #f0f0f0;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.account-button:hover {
    background: #e0e0e0;
}

.account-button.primary {
    background: #2d2d2d;
    color: white;
}

.account-button.primary:hover {
    background: #444;
}

.user-summary {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.user-avatar {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e3f2fd;
    border-radius: 50%;
    color: #1976d2;
    font-size: 1.75rem;
}

.user-details {
    flex-grow: 1;
}

.user-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.user-role {
    background: #f0f0f0;
    color: #555;
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.user-email {
    color: #666;
    font-size: 0.9rem;
}

.company-branding-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f5f5f5;
    border-radius: 8px;
}

.account-company-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.no-logo {
    width: 200px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #aaa;
}

.no-logo i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.no-logo span {
    font-size: 0.85rem;
}

.company-name {
    font-weight: 600;
}

/* Logo Upload Styles */
.logo-preview-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.logo-info {
    flex-grow: 1;
}

.logo-info h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.logo-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.file-requirements {
    margin-top: 0.5rem;
}

.file-requirements p {
    margin: 0.25rem 0;
    color: #666;
    font-size: 0.85rem;
}

.logo-preview {
    margin-top: 1rem;
    text-align: center;
}

.logo-preview img {
    max-width: 200px;
    max-height: 60px;
    background: white;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 0.5rem;
    object-fit: contain;
}

/* Password Field Styling */
.password-field {
    position: relative;
}

.password-field input {
    padding-right: 40px;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    width: 40px;
}

/* Message Styles */
.message {
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.message.success {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

.message.error {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    color: #c62828;
}

/* Form Row for Side-by-Side Inputs */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-preview-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .current-logo, .no-logo {
        width: 100%;
        height: 80px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 1rem;
    }
}

/* Role Badge Styling */
.role-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.role-badge.super_admin {
    background: #e8eaf6;
    color: #3f51b5;
}

.role-badge.admin {
    background: #e3f2fd;
    color: #1976d2;
}

.role-badge.user {
    background: #f5f5f5;
    color: #616161;
}

/* User Role Badge in Topbar */
.user-role-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    background-color: #f0f0f0;
    color: #555;
    margin-top: 2px;
}

/* Fix for asset-management style squishing the header */
.asset-management {
    padding: 1.5rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.content-header h1 {
    margin: 0;
    font-size: 1.8rem; /* Match the dashboard-title size */
    color: #333;
}

/* Ensure consistency between different page styles */
.dashboard-container, 
.asset-management {
    padding: 1.5rem;
    width: 100%;
  /*  max-width: 1200px; */
    margin: 0 auto;
}

.dashboard-header,
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dashboard-title,
.content-header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

/* Responsive adjustments for consistency */
@media (max-width: 768px) {
    .dashboard-header,
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .dashboard-header .action-buttons,
    .content-header .action-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .dashboard-header .action-buttons,
    .content-header .action-buttons {
        grid-template-columns: 1fr;
    }
}

/* Logo styling fix for consistency between company pages */
.current-logo-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.current-logo {
    width: 200px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white; /* Explicitly set white background */
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 0.5rem;
    overflow: hidden;
}

.current-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* CSS Fixes for Mobile Views */

/* 1. Fix for Asset Detail Header Buttons */
.asset-detail-header .action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 2. Improve topbar responsiveness */
@media (max-width: 768px) {
    /* Asset Detail Header fixes */
    .asset-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .asset-detail-header .action-buttons {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 0.5rem;
    }
    
    .asset-detail-header .action-buttons a {
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    
    /* Make buttons consistent */
    .edit-button, .disable-button, .delete-button {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Topbar improvements */
    .topbar {
        padding: 0 0.75rem;
        height: auto;
        min-height: 50px;
        flex-wrap: wrap;
    }
    
    .topbar .company-branding {
        display: flex;
        align-items: center;
        max-width: 100%;
        padding: 0.5rem 0;
    }
    
    .topbar .company-logo {
        max-height: 30px;
    }
    
    .topbar .user-info {
        padding: 0.5rem 0;
        margin-left: auto;
    }
    
    .topbar .user-details {
        font-size: 0.9rem;
    }
    
    .topbar .logout-button {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    /* Better handling of long company names */
    .topbar .company-name {
        font-size: 0.9rem;
        max-width: 180px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 3. Extra small device optimizations */
@media (max-width: 576px) {
    .topbar {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .topbar .user-details strong {
        font-size: 0.85rem;
    }
    
    .topbar .user-details small {
        display: none; /* Hide title on very small screens */
    }
    
    .topbar .company-name {
        max-width: 150px;
    }
    
    /* Ensure the logout button is visible and accessible */
    .topbar .logout-button {
        margin-left: 0.5rem;
    }
}




/* Image Modal Styles - Add this to the end of mh-style.css */
.image-modal {
    display: none; /* This is the key - hide by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.image-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-modal .close-modal {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1;
}

.image-modal .close-modal:hover {
    color: #333;
}

.image-modal img {
    max-width: 100%;
    max-height: calc(90vh - 4rem);
    object-fit: contain;
    border-radius: 4px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .image-modal .modal-content {
        max-width: 95%;
        max-height: 95%;
        padding: 0.5rem;
    }
    
    .image-modal .close-modal {
        top: 0.25rem;
        right: 0.5rem;
        font-size: 1.5rem;
    }
    
    .image-modal img {
        max-height: calc(95vh - 3rem);
    }
}