body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: #e9ebee;
    color: #333;
    line-height: 1.6;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 20px 0;
}

@media (min-width: 768px) {
    body {
        padding: 20px;
    }
}

.app-container {
    width: 100%;
    max-width: 420px; /* Mobile-like width */
    background: #f4f4f9;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

#login-view, #register-view, #recovery-view, #reset-password-view {
    padding: 20px;
}

.login-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: none;
    text-align: center;
}

.login-container h1 {
    color: #0275d8;
    margin-bottom: 5px;
    font-size: 2.5em;
}

.login-container .subtitle {
    margin-top: 0;
    margin-bottom: 25px;
    color: #666;
    font-size: 0.9em;
}

.login-links {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-links a {
    color: #0275d8;
    text-decoration: none;
    margin: 0;
    font-size: 0.9em;
}

.login-links a:hover {
    text-decoration: underline;
}

#main-content {
    max-width: 100%;
    margin: auto;
    width: 100%;
    padding: 0;
}

.view-container {
    background: #fff;
    padding: 20px;
    border-radius: 0;
    box-shadow: none;
}

.main-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.menu-item {
    cursor: pointer;
}

#home-view {
    background-color: #f4f4f9;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #0275d8;
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
}

.user-profile {
    cursor: pointer;
}

.user-profile img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    padding: 2px;
    object-fit: cover;
}

#logout-btn-profile {
    background-color: #d9534f;
    margin-top: 10px;
}

.profile-section {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.profile-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0275d8;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 1.1em;
}

.profile-section p {
    margin: 0 0 10px;
    color: #555;
}

.profile-section p strong {
    color: #333;
}

.profile-picture-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

#profile-picture-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#change-profile-picture-btn {
    background-color: #5bc0de;
}

.profile-section button {
    margin-top: 5px;
}

.profile-actions {
    margin-top: 20px;
}

.profile-actions button {
    width: auto;
    min-width: 120px;
}

#save-profile-btn {
    background-color: #5cb85c;
}

#cancel-edit-profile-btn {
    background-color: #d9534f;
}

.app-title-home {
    font-size: 1.5em;
    font-weight: bold;
}

.home-notifications {
    position: relative;
    cursor: pointer;
}

.home-notifications img {
    width: 25px;
    height: 25px;
}

#notification-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    width: 10px;
    height: 10px;
    background-color: #d9534f;
    border-radius: 50%;
    border: 2px solid #0275d8;
}

.welcome-message {
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.welcome-message h2 {
    color: #333;
    font-size: 1.2em;
    margin: 0;
    font-weight: 500;
}

.quick-actions {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    background: #fff;
    padding: 20px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.action-icon {
    width: 70px;
    height: 70px;
    background-color: #eef6ff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.action-icon:hover {
    transform: scale(1.05);
}

.action-icon img {
    width: 40px;
    height: 40px;
}

.action-item span {
    font-weight: 500;
    color: #333;
    font-size: 0.9em;
}

.stats-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stats-container h3 {
    margin: 0 0 10px 0;
    color: #0275d8;
    text-align: left;
}

#daily-stats-placeholder {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.daily-stats-summary {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    text-align: center;
}

.summary-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    flex: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.summary-item p {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    color: #555;
    font-weight: 500;
}

.summary-item span {
    font-size: 1.3em;
    font-weight: bold;
}

#daily-entries-total {
    color: #d9534f;
}

#daily-exits-total {
    color: #5cb85c;
}

.daily-chart-container {
    position: relative;
    height: 150px;
    width: 100%;
}

.chart-placeholder {
    display: none; /* Replaced by daily-stats-placeholder */
}

.products-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    font-weight: bold;
    background-color: #0275d8;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.products-button:hover {
    background-color: #025aa5;
}

/* DEPRECATED - .container class is not used */
.container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

header {
    display: none; /* Hide the old header */
}

header h1 {
    color: #0275d8;
    margin: 0;
}

header .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

h2 {
    color: #333;
    border-bottom: 2px solid #f4f4f9;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

.form-container {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.quantity-group {
    display: flex;
    gap: 10px;
}

.quantity-group input {
    flex: 2;
}

.quantity-group select {
    flex: 1;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    background-color: #fff;
}

.form-group input:read-only {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.photo-preview {
    max-width: 100px;
    max-height: 100px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: none; /* Hidden by default */
}

button {
    display: inline-block;
    background: #0275d8;
    color: #fff;
    padding: 12px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    margin-right: 10px;
    margin-bottom: 10px;
}

#entries-form button, #exits-form button {
    width: 100%;
    margin-top: 10px;
}

button:hover {
    opacity: 0.9;
}

button.delete-btn {
    background: #d9534f;
}

button.edit-btn {
    background: #f0ad4e;
}

button.cancel-btn {
    background: #6c757d;
}

button.back-btn {
    background: #6c757d;
    margin-bottom: 20px;
}

#cancel-button {
    background: #5bc0de;
}

#logout-button {
    /* This button is effectively removed, but just in case */
    display: none;
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

#inventory-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#inventory-table th, #inventory-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

#inventory-table th {
    background-color: #0275d8;
    color: white;
    white-space: nowrap;
}

#inventory-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

#products-inventory-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#products-inventory-table th, #products-inventory-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
    vertical-align: middle;
}

.product-image-cell {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

#products-inventory-table th {
    background-color: #0275d8;
    color: white;
    white-space: nowrap;
}

#products-inventory-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

#products-inventory-table tr:hover {
    background-color: #e9ebee;
    cursor: pointer;
}

#products-inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    padding-top: 20px;
}

.product-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.product-card-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.product-card-name {
    padding: 15px;
    font-weight: 500;
    color: #333;
    text-align: center;
    font-size: 0.95em;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-list-message {
    text-align: center;
    color: #666;
    grid-column: 1 / -1; /* Span all columns */
    padding: 20px;
}

.back-to-home {
    background: #6c757d;
    margin-bottom: 20px;
}

.back-to-profile {
    background: #6c757d;
    margin-bottom: 20px;
}

.back-from-product-form {
    background: #6c757d;
    margin-bottom: 20px;
}

.back-to-registros {
    background: #6c757d;
    margin-bottom: 20px;
}

/* Category Styles */
.category-container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    color: #333;
    font-size: 1.2em;
}

.category-container h3, .form-container h3 {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

#product-form-title {
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

.category-list-container,
.supplier-list-container {
    margin-top: 20px;
}

.category-list-container h4,
.supplier-list-container h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #333;
}

#category-list,
#supplier-list {
    list-style: none;
    padding: 0;
    margin-top: 15px; /* Added margin */
}

#category-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
}

#supplier-list .no-suppliers {
    text-align: center;
    color: #666;
    padding: 20px;
    background-color: #fafafa;
    border-radius: 6px;
}

.supplier-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s ease-in-out;
}

.supplier-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.supplier-info {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Space between name and contact info */
    flex-grow: 1; /* Take available space */
}

.supplier-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.supplier-contact {
    display: flex;
    flex-direction: column;
    gap: 6px; /* Space between phone and email */
    font-size: 0.9em;
    color: #555;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
}

.contact-icon {
    stroke: #0275d8; /* Icon color */
    flex-shrink: 0;
}

#supplier-list .delete-supplier-btn {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    margin: 0 0 0 10px; /* Margin on the left */
    flex-shrink: 0;
    transition: background-color 0.2s;
}

#supplier-list .delete-supplier-btn:hover {
    background-color: #c9302c;
}

#category-list .delete-category-btn {
    background-color: #d9534f;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    margin: 0;
}

.form-group select {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    background-color: #fff;
}

.registros-actions {
    margin-bottom: 20px;
}

.registros-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .registros-layout {
        flex-direction: column;
        align-items: stretch;
    }
    .category-container, .supplier-container {
        flex: 1;
        margin-bottom: 0;
    }
    .form-container {
        flex: 1;
        margin-bottom: 0;
    }
}

.inventory-container {
    margin-top: 20px;
}

#inventory-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.inventory-category-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1.1em;
    font-weight: 500;
    color: #0275d8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.inventory-category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.table-wrapper {
    overflow-x: auto;
}

/* Product Details View Styles */
.product-details-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.details-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.details-name {
    font-size: 1.8em;
    font-weight: 600;
    margin: 0;
    color: #0275d8;
    border-bottom: none;
    padding-bottom: 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    max-width: 350px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
}

@media (min-width: 400px) {
    .details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.detail-item {
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.detail-item strong {
    display: block;
    color: #555;
    font-size: 0.9em;
    margin-bottom: 4px;
}

.detail-item span {
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
}

.product-details-actions {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

/* Statistics View Styles */
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stats-header h2 {
    margin: 0;
    border: none;
    padding: 0;
}

#statistics-view .stats-header { /* Adding specificity */
    margin-bottom: 10px;
}

#statistics-view h2 {
}

.stats-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.stats-date-filters {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    margin-bottom: 20px;
    flex-wrap: wrap;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.stats-date-filters .form-group {
    flex: 1;
    min-width: 130px;
    margin-bottom: 0;
}

.stats-date-filters label {
    font-size: 0.9em;
}

.stats-date-filters button {
    margin: 0;
    height: 42.5px; /* Match input height */
    padding: 8px 16px;
    font-size: 0.9em;
}

.apply-filter-btn {
    background-color: #5cb85c;
}

.clear-filter-btn {
    background-color: #6c757d;
}

.stats-filter-btn {
    background-color: #fff;
    color: #0275d8;
    border: 1px solid #0275d8;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    margin: 0;
    transition: all 0.2s;
}

.stats-filter-btn.active,
.stats-filter-btn:hover {
    background-color: #0275d8;
    color: #fff;
    opacity: 1;
}

#transaction-log-container {
    margin-top: 20px;
}

#transaction-log {
    list-style: none;
    padding: 0;
    margin: 0;
}

.transaction-item {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 15px;
    align-items: center;
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    font-weight: bold;
}

.transaction-icon.entry {
    background-color: #5cb85c; /* green */
}

.transaction-icon.exit {
    background-color: #d9534f; /* red */
}

.transaction-details p {
    margin: 0;
    line-height: 1.4;
}

.transaction-product-name {
    font-weight: 600;
    color: #333;
}

.transaction-info {
    font-size: 0.9em;
    color: #666;
}

.transaction-amount {
    text-align: right;
}

.transaction-amount p {
    margin: 0;
    font-weight: 600;
}

.transaction-amount .entry {
    color: #5cb85c;
}

.transaction-amount .exit {
    color: #d9534f;
}

.transaction-date {
    font-size: 0.8em;
    color: #777;
    margin-top: 2px;
}

/* Notification View Styles */
.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.notifications-header h2 {
    margin: 0;
    border: none;
    padding: 0;
}

#clear-notifications-btn,
#clear-transactions-btn {
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#clear-notifications-btn img,
#clear-transactions-btn img {
    width: 20px;
    height: 20px;
}

.notifications-header .delete-btn {
    margin: 0; /* Override default margins */
}

#notifications-list-container {
    padding-top: 10px;
}

#notifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 5px solid;
    transition: background-color 0.2s;
}

.notification-item:hover {
    background-color: #f0f0f0;
}

.notification-item.low-stock {
    border-color: #f0ad4e; /* Warning color */
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.notification-item.expiration {
    border-color: #f0ad4e; /* Orange color for expiration warnings */
    background-color: #fcf8e3;
}

.notification-item p {
    margin: 0 0 5px 0;
    font-size: 1em;
    color: #333;
    font-weight: 500;
}

.notification-item .timestamp {
    font-size: 0.8em;
    color: #777;
}

.no-notifications {
    text-align: center;
    color: #666;
    padding: 30px;
    background-color: #fafafa;
    border-radius: 8px;
}

.registros-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.registros-menu-item {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 5px solid #0275d8;
}

.registros-menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.registros-menu-item h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.2em;
}

.registros-menu-item p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
}

.stats-tabs {
    display: flex;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.stats-tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.1em;
    color: #666;
    margin: 0;
    border-radius: 6px 6px 0 0;
    position: relative;
    bottom: -2px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.stats-tab-btn.active, .stats-tab-btn:hover {
    color: #0275d8;
    background: none;
    opacity: 1;
    border-bottom-color: #0275d8;
}

#charts-view-content h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 500;
}

.chart-container {
    position: relative;
    margin: auto;
    height: 60vh;
    max-height: 350px;
    width: 90vw;
    max-width: 350px;
}

.terms-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    line-height: 1.7;
}

.terms-content h3 {
    color: #0275d8;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.terms-content h4 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.terms-content p {
    margin-bottom: 15px;
    color: #555;
    text-align: justify;
}

.terms-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.terms-content ul li {
    margin-bottom: 8px;
    color: #555;
}

.terms-content ul li strong {
    color: #0275d8;
}

.terms-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.terms-footer p {
    font-size: 0.9em;
    color: #777;
    font-style: italic;
    margin: 0;
}

#show-terms-conditions-btn {
    background-color: #17a2b8;
    margin-top: 10px;
}

#show-terms-conditions-btn:hover {
    background-color: #138496;
}

.privacy-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    line-height: 1.6;
    margin-bottom: 15px;
}

.privacy-content h4 {
    color: #0275d8;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1em;
    font-weight: 600;
}

.privacy-content h4:first-child {
    margin-top: 0;
}

.privacy-content p {
    margin-bottom: 12px;
    color: #555;
    text-align: justify;
}

.privacy-content ul {
    margin: 10px 0 15px 0;
    padding-left: 20px;
}

.privacy-content ul li {
    margin-bottom: 6px;
    color: #555;
}

.privacy-content ul li strong {
    color: #0275d8;
    font-weight: 600;
}

.privacy-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.privacy-footer p {
    font-size: 0.85em;
    color: #777;
    font-style: italic;
    margin: 0;
}

.inventory-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1em;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-input:focus {
    outline: none;
    border-color: #0275d8;
    box-shadow: 0 2px 8px rgba(2, 117, 216, 0.2);
}

.export-btn {
    background-color: #5cb85c;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.export-btn:hover {
    background-color: #449d44;
}

.export-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Low stock alerts styles */
.alert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 4px solid #f0ad4e;
}

.alert-item.low-stock {
    border-left-color: #d9534f;
    background: #f8d7da;
    border-color: #f5c6cb;
}

.alert-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.alert-content strong {
    color: #721c24;
    font-size: 1em;
}

.alert-content span {
    color: #721c24;
    font-size: 0.9em;
}

.alert-category {
    font-size: 0.8em;
    color: #6c757d;
    background: rgba(255,255,255,0.7);
    padding: 2px 8px;
    border-radius: 4px;
}

.more-alerts {
    background: #e2e3e5;
    border-color: #d6d8db;
    border-left-color: #6c757d;
    text-align: center;
    justify-content: center;
}

.more-alerts span {
    color: #495057;
    font-style: italic;
}

/* Scanner Styles */
.scanner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.scanner-instructions {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #e3f2fd;
    border-radius: 8px;
    color: #1976d2;
}

.scanner-instructions p {
    margin: 0;
    font-size: 0.9em;
}

#scanner-viewport {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 300px;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

#scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

#scanner-overlay::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
    animation: scannerLine 2s linear infinite;
}

@keyframes scannerLine {
    0% { transform: translateY(-50px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(50px); opacity: 0; }
}

.scanner-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.scanner-controls button {
    margin: 0;
    padding: 12px 20px;
    font-size: 1em;
}

#start-scanner-btn {
    background-color: #4caf50;
}

#stop-scanner-btn {
    background-color: #f44336;
}

#toggle-flash-btn {
    background-color: #ff9800;
}

#scanner-result {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    width: 100%;
    max-width: 400px;
}

#scanner-result h4 {
    margin: 0 0 10px 0;
    color: #28a745;
}

#scanned-code {
    font-family: monospace;
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    background-color: #fff;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin: 10px 0;
    word-break: break-all;
}

#use-scanned-code-btn {
    background-color: #28a745;
    margin-right: 10px;
}

#scan-again-btn {
    background-color: #6c757d;
}

.input-with-scanner {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-with-scanner input {
    flex: 1;
}

.scanner-btn {
    background-color: #17a2b8;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    white-space: nowrap;
    margin: 0;
    flex-shrink: 0;
}

.scanner-btn:hover {
    background-color: #138496;
}

/* Responsive scanner styles */
@media (max-width: 768px) {
    #scanner-viewport {
        height: 250px;
    }
    
    .scanner-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .scanner-controls button {
        width: 100%;
        max-width: 200px;
    }
    
    .input-with-scanner {
        flex-direction: column;
        align-items: stretch;
    }
    
    .scanner-btn {
        width: 100%;
        margin-top: 5px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .inventory-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
        width: 100%;
    }
    
    .export-actions {
        justify-content: center;
    }
    
    .activity-details {
        gap: 1px;
    }
    
    .alert-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .alert-category {
        align-self: flex-end;
    }
}