/* Bag Query System Styles */
body {
    background-color: #2c2f33; /* Dark background */
    color: #e0e0e0;
}

/* Login Form Styles (Copied from SOAP styles) */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    background: #23272b; /* Match container background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: 1px solid #444;
}
.login-container h2 {
    color: #f0c850; /* Accent color */
    text-align: center;
    margin-bottom: 25px;
}

/* Logout Button */
.logout-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
}
.logout-btn:hover {
    color: #f0c850; /* Accent color */
}

/* Return Home Button (copied from SOAP styles) */
.home-btn {
    position: absolute;
    top: 15px;
    left: 20px;
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
}
.home-btn:hover {
     color: #f0c850; /* Accent color */
}

/* Main Container for Bag Query */
.container {
    background-color: #23272b; /* Slightly lighter container background */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 1600px; /* Wider container */
}

.query-form {
    background-color: #2c2f33;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px !important;
}

.query-form label {
    color: #f0c850; /* Accent color for labels */
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    background-color: #3a3f45;
    color: #e0e0e0;
    border: 1px solid #444;
}

.form-control:focus,
.form-select:focus {
    background-color: #40454b;
    color: #e0e0e0;
    border-color: #f0c850;
    box-shadow: 0 0 0 0.2rem rgba(240, 200, 80, 0.25);
}

.btn-query {
    background-color: #f0c850;
    color: #23272b;
    border: none;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.btn-query:hover {
    background-color: #d4ac3a;
    color: #23272b;
}

.table-container {
    background-color: #2c2f33;
    padding: 20px;
    border-radius: 6px;
    height: 100%; /* Make columns potentially equal height if needed */
}

.table-title {
    color: #f0c850;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

/* Styling for both tables */
.table th {
    /* General header styles (background, color, border) */
    background-color: #3a3f45 !important;
    color: #f0c850;
    border-color: #444 !important;
}

/* Specific styles for the item table sticky header */
.item-table thead {
    /* Apply sticky positioning to the entire table head */
    position: sticky;
    top: 0;
    z-index: 1;
}

.item-table thead th {
     /* Header cell styles (color, border) - background now set on thead for proper sticky layering */
    color: #f0c850;
    border-color: #444 !important;
    /* Ensure header cells have the correct background when thead is sticky */
    background-color: #3a3f45 !important;
}

.table td {
     border-color: #444 !important;
}

.table-hover tbody tr:hover {
    background-color: #3a3f45 !important; /* Darker hover */
    color: #fff !important;
}

.character-table,
.item-table {
    font-size: 0.9rem;
}

.btn-view,
.btn-delete {
    background-color: #555;
    color: #e0e0e0;
    border: 1px solid #666;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
}

.btn-view:hover,
.btn-delete:hover {
    background-color: #666;
    color: #fff;
    border-color: #777;
}

.btn-delete {
    background-color: #c41f3b; /* Red for delete */
    border-color: #a41930;
}

.btn-delete:hover {
     background-color: #a41930;
    border-color: #831326;
}

/* Item Quality Colors */
.item-link {
    text-decoration: none;
    font-weight: bold;
}

.quality-0 { color: #9d9d9d; } /* Poor */
.quality-1 { color: #ffffff; } /* Common */
.quality-2 { color: #1eff00; } /* Uncommon */
.quality-3 { color: #0070dd; } /* Rare */
.quality-4 { color: #a335ee; } /* Epic */
.quality-5 { color: #ff8000; } /* Legendary */
.quality-6 { color: #e6cc80; } /* Artifact */
.quality-7 { color: #e6cc80; } /* Heirloom */

.item-link.quality-0 { color: #9d9d9d; }
.item-link.quality-1 { color: #ffffff; }
.item-link.quality-2 { color: #1eff00; }
.item-link.quality-3 { color: #0070dd; }
.item-link.quality-4 { color: #a335ee; }
.item-link.quality-5 { color: #ff8000; }
.item-link.quality-6 { color: #e6cc80; }
.item-link.quality-7 { color: #e6cc80; }

.item-link:hover {
    text-decoration: underline;
}

.item-table-wrapper {
    max-height: 600px; /* Limit height of item table */
    overflow-y: auto;
}

.item-search label {
     color: #f0c850;
     font-weight: bold;
}

.item-search input {
    max-width: 250px;
    vertical-align: middle;
} 