/* LOTES App Styles - Dark Theme */

body {
    background-color: #111827;
    color: white;
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #1f2937;
    border-radius: 8px;
    padding: 24px;
    width: 100%;
    max-width: 500px;
    margin: 16px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Button Styles */
.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #4f46e5;
    color: white;
}

.btn-primary:hover {
    background-color: #4338ca;
}

.btn-secondary {
    background-color: #4b5563;
    color: white;
}

.btn-secondary:hover {
    background-color: #374151;
}

.btn-danger {
    background-color: #dc2626;
    color: white;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-success {
    background-color: #059669;
    color: white;
}

.btn-success:hover {
    background-color: #047857;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

/* Form Styles */
.form-input, .form-select {
    width: 100%;
    padding: 8px 12px;
    background-color: #374151;
    border: 1px solid #4b5563;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 4px;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    background-color: #1f2937;
}

.table {
    width: 100%;
    background-color: #1f2937;
    border-collapse: collapse;
}

.table thead {
    background-color: #374151;
}

.table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: 12px 16px;
    font-size: 14px;
    color: white;
    border-top: 1px solid #374151;
}

.table tbody tr:hover {
    background-color: #374151;
}

/* Navigation Tabs */
.nav-tab {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #d1d5db;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.nav-tab:hover {
    color: white;
    border-bottom-color: #4f46e5;
}

.nav-tab.active {
    color: #818cf8;
    border-bottom-color: #4f46e5;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.alert-success {
    background-color: #064e3b;
    color: #a7f3d0;
    border: 1px solid #047857;
}

.alert-error {
    background-color: #7f1d1d;
    color: #fca5a5;
    border: 1px solid #dc2626;
}

.alert-warning {
    background-color: #78350f;
    color: #fcd34d;
    border: 1px solid #d97706;
}

/* Layout Utilities */
.hidden {
    display: none;
}

.tab-content {
    padding-top: 16px;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.space-x-2 > * + * {
    margin-left: 8px;
}

.space-x-4 > * + * {
    margin-left: 16px;
}

.space-x-8 > * + * {
    margin-left: 32px;
}

.mb-1 { margin-bottom: 4px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mr-2 { margin-right: 8px; }
.ml-2 { margin-left: 8px; }
.mt-1 { margin-top: 4px; }

.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.px-4 { padding-left: 16px; padding-right: 16px; }

.text-sm { font-size: 14px; }
.text-lg { font-size: 18px; }
.text-xl { font-size: 20px; }
.text-2xl { font-size: 24px; }

.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.max-w-7xl {
    max-width: 1280px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.min-h-screen {
    min-height: 100vh;
}

.border-b {
    border-bottom: 1px solid #374151;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-white { color: white; }

.bg-gray-700 { background-color: #374151; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-900 { background-color: #111827; }

/* Inventory Items */
.inventory-item {
    background-color: #1f2937;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.inventory-item.old {
    background-color: #78350f;
    border: 1px solid #d97706;
}

.inventory-item.very-old {
    background-color: #7f1d1d;
    border: 1px solid #dc2626;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gap-4 {
    gap: 16px;
}

.inline {
    display: inline;
}

.border-red-500 {
    border-color: #ef4444 !important;
}

a {
    text-decoration: none;
}

/* Additional utility classes for login */
.w-20 { width: 80px; }
.h-20 { height: 80px; }
.w-10 { width: 40px; }
.h-10 { height: 40px; }

.rounded-full {
    border-radius: 50%;
}

.inline-flex {
    display: inline-flex;
}

.justify-center {
    justify-content: center;
}

.border-t {
    border-top: 1px solid #374151;
}

.pt-6 { padding-top: 24px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-8 { margin-bottom: 32px; }

.py-3 { padding-top: 12px; padding-bottom: 12px; }

.text-base { font-size: 16px; }
.text-xs { font-size: 12px; }

.font-mono { font-family: monospace; }

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gap-3 { gap: 12px; }

.p-2 { padding: 8px; }

.text-center { text-align: center; }

.block { display: block; }

.w-full { width: 100%; }

.space-y-6 > * + * {
    margin-top: 24px;
}

.rounded { border-radius: 4px; }

.text-gray-500 { color: #6b7280; }