/* Limit System Panel Styles */

/* Base Layout */
body { 
    background-color: #f4f6f9; 
}

.sidebar { 
    width: 245px; 
    min-height: 100vh; 
}

.sidebar.sidebar-wide {
    width: 245px;
}

.sidebar .nav-link { 
    color: #adb5bd; 
    border-radius: 0; 
}

.sidebar .nav-link.active, 
.sidebar .nav-link:hover { 
    background-color: #0d6efd; 
    color: #fff; 
}

/* Cards */
.card { 
    border-radius: 12px; 
    border: none; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    margin-bottom: 20px; 
}

.stat-card { 
    transition: transform 0.2s; 
}

.stat-card:hover { 
    transform: translateY(-5px); 
}

.stat-icon { 
    font-size: 2rem; 
    opacity: 0.2; 
    position: absolute; 
    right: 20px; 
    top: 20px; 
}

/* Utility Rows */
.detail-row { 
    font-size: 0.9rem; 
}

.detail-row.success { 
    background-color: #d1e7dd; 
}

.detail-row.failed { 
    background-color: #f8d7da; 
}

.detail-row.skipped { 
    background-color: #fff3cd; 
}

.detail-row.unchanged { 
    background-color: #f8f9fa; 
}

/* Warning and Alert Boxes */
.warning-box {
    border-left: 4px solid #dc3545;
    background-color: #fff5f5;
}

/* Limit Settings */
.settings-matrix { 
    overflow-x: auto; 
}

.settings-matrix table { 
    min-width: 1200px; 
}

.metric-input { 
    width: 100px; 
    display: inline-block; 
}

.tool-section { 
    background: #f8f9fa; 
    padding: 10px; 
    margin: 5px 0; 
    border-radius: 4px; 
}

.metric-row { 
    display: flex; 
    align-items: center; 
    margin: 5px 0; 
    gap: 10px; 
}

/* List Users */
.usage-badge { 
    font-size: 0.85rem; 
    padding: 4px 8px; 
}

.tool-column { 
    min-width: 150px; 
}

.usage-cell { 
    font-size: 0.9rem; 
}

.sortable { 
    cursor: pointer; 
    white-space: nowrap; 
}

.search-input { 
    max-width: 320px; 
}

.reset-limit-btn { 
    transition: all 0.2s;
}

.reset-limit-btn:hover {
    transform: scale(1.05);
}

/* Product Settings */
.product-item {
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 8px;
    background: white;
    transition: all 0.2s;
}

.product-item:hover {
    background: #f8f9fa;
    border-color: #0d6efd;
}

.product-item.enabled {
    background: #d1e7dd;
    border-color: #198754;
}

.form-check-input:checked {
    background-color: #198754;
    border-color: #198754;
}

/* User Usage */
.summary-card { 
    background: #ffffff; 
    border-radius: 0.5rem; 
}

/* Login and Setup Pages */
body.login-page,
body.setup-page { 
    background-color: #f8f9fa; 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.login-card { 
    width: 100%; 
    max-width: 400px; 
    border-radius: 10px; 
    border: none; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}

.setup-card { 
    width: 100%; 
    max-width: 500px; 
    border-radius: 10px; 
    border: none; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
}

/* Inline Style Overrides */
hr.separator { 
    opacity: 0.3; 
}

.text-truncate-path {
    max-width: 300px;
    display: inline-block;
}

.text-truncate-long {
    max-width: 400px;
}

th.min-width-200 {
    min-width: 200px;
}

th.min-width-300 {
    min-width: 300px;
}

label.min-width-100 {
    min-width: 100px;
}
