/* Inventory Specific Styles */

/* Warning Banner */
.warning-banner {
    background-color: #dc3545;
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        background-color: #dc3545;
    }

    50% {
        background-color: #8a1f2a;
    }

    /* Dark Red */
    100% {
        background-color: #dc3545;
    }
}

/* Editable Cell */
.editable-cell {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: #666;
}

.editable-cell:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #00f3ff;
}

.badge-thickness {
    display: inline-block;
    background-color: #4a5568;
    color: #fff;
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Actions Section */
.actions-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 20px;
}

.btn-large {
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    flex: 1;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Badge for Borrow */
.badge-warning {
    background-color: #ff9800;
    /* Orange */
    color: #fff;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

/* Table Styles */
/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

th {
    background-color: rgba(255, 255, 255, 0.05);
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85em;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

.row-low-stock {
    background-color: rgba(220, 53, 69, 0.15) !important;
}

.qty-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.qty-low {
    color: #ff6b6b;
    background: rgba(220, 53, 69, 0.2);
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.4);
}

.qty-ok {
    color: #51cf66;
    background: rgba(40, 167, 69, 0.2);
}

.editable-cell {
    cursor: pointer;
    transition: all 0.2s;
}

.editable-cell:hover {
    color: #00f3ff;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.5);
}

/* Badges */
.badge-thickness {
    display: inline-block;
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: #fff;
    font-size: 0.75em;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content {
    background-color: #1a1a1a;
    border: 1px solid #00f3ff;
    margin: 10% auto;
    padding: 2rem;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: white;
}