/* Colores y estilos principales (moved from inline) */
body {
    background-color: #121212;
    color: #e0e0e0;
    padding: 20px;
    font-family: Inter, system-ui, Arial;
}

.header-bar {
    background-color: #1e1e1e;
}

.card {
    background-color: #1e1e1e;
    color: #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.form-control,
.form-select {
    background-color: #2b2b2b;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 4px;
}

.form-control::placeholder {
    color: #888;
}

.size-login {
    font-size: 22px;
}

.table-dark {
    font-size: 12px;
}

.table-dark thead th {
    border-bottom: 2px solid #555;
    background-color: #2a2a2a;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-dark th,
.table-dark td {
    border-color: #333;
    padding: 12px;
    vertical-align: middle;
}

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

.text-muted {
    color: #b3b3b3 !important;
}

a {
    color: #bb86fc;
}

.btn {
    border-radius: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
    color: #fff;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.btn-success {
    background-color: #2c2c2c;
    border-color: #2c2c2c;
}

.btn-danger {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

.btn-primary {
    background-color: #4a4a4a;
    border-color: #4a4a4a;
}

.btn-config {
    background-color: #4a4a4a;
    border-color: #4a4a4a;
}

.btn-alert {
    background-color: #2c2c2c;
    border-color: #2c2c2c;
}

.flash-message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    width: 300px;
}

.flash-message .alert {
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #555;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn-action {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.main-container {
    display: flex;
    gap: 20px;
}

.left-panel {
    flex: 0 0 20%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.right-panel {
    flex: 1;
}

.table-container {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.sort-btn {
    background: none;
    border: none;
    color: #fff;
    padding: 0;
    font-size: 1em;
    cursor: pointer;
    float: right;
    margin-left: 5px;
}

.sort-btn:hover {
    color: #bb86fc;
}

.filter-row th {
    padding-top: 5px;
    padding-bottom: 5px;
}

.filter-input {
    width: 100%;
    font-size: 0.8rem;
}

.product-count {
    font-size: 1rem;
    color: #bb86fc;
}

/* Login specific adjustments */
.toast {
    transition: opacity 0.3s ease-in-out;
}