/* Loot Tracker Widget Styles */

.loot-tracker-widget {
    background: var(--bg-card, #1a1a1a);
    border: 2px solid var(--mystic-green, #00a86b);
    border-radius: 12px;
    padding: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary, #ffffff);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 168, 107, 0.2);
}

.lt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 168, 107, 0.3);
}

.lt-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--mystic-green-light, #00d98b);
}

.lt-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lt-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #666;
}

.lt-status-indicator.lt-status-running {
    background: #00a86b;
    box-shadow: 0 0 10px rgba(0, 168, 107, 0.8);
    animation: pulse 2s infinite;
}

.lt-status-indicator.lt-status-stopped {
    background: #ff6b6b;
}

.lt-status-indicator.lt-status-idle {
    background: #666;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.lt-status-text {
    font-size: 0.9rem;
    color: var(--text-secondary, #cccccc);
}

.lt-controls {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.lt-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--mystic-green, #00a86b);
    border-radius: 8px;
    background: var(--bg-secondary, #252525);
    color: var(--text-primary, #ffffff);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lt-btn:hover {
    background: var(--mystic-green, #00a86b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 168, 107, 0.4);
}

.lt-btn:active {
    transform: translateY(0);
}

.lt-btn-start {
    border-color: #00a86b;
}

.lt-btn-stop {
    border-color: #ff6b6b;
}

.lt-btn-stop:hover {
    background: #ff6b6b;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.lt-btn-reset {
    border-color: #ffa500;
}

.lt-btn-reset:hover {
    background: #ffa500;
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

.lt-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.lt-stat-card {
    background: var(--bg-secondary, #252525);
    border: 1px solid rgba(0, 168, 107, 0.2);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

.lt-stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary, #cccccc);
    margin-bottom: 0.5rem;
}

.lt-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mystic-green-light, #00d98b);
}

.lt-items-section {
    margin-bottom: 1.5rem;
}

.lt-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(0, 168, 107, 0.3);
    padding-bottom: 0.5rem;
}

.lt-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary, #cccccc);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.lt-tab:hover {
    color: var(--mystic-green-light, #00d98b);
    background: rgba(0, 168, 107, 0.1);
    border-radius: 4px 4px 0 0;
}

.lt-tab.active {
    color: var(--mystic-green-light, #00d98b);
    border-bottom-color: var(--mystic-green, #00a86b);
    font-weight: 600;
}

.lt-tab-settings {
    margin-left: auto;
    font-size: 1.1rem;
    padding: 0.5rem 0.75rem;
}

.lt-settings-panel {
    background: var(--bg-secondary, #252525);
    border: 1px solid rgba(0, 168, 107, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.lt-settings-panel h5 {
    margin: 0 0 0.5rem 0;
    color: var(--mystic-green-light, #00d98b);
    font-size: 1rem;
}

.lt-settings-hint {
    color: var(--text-secondary, #cccccc);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.lt-settings-items {
    max-height: 400px;
    overflow-y: auto;
}

.lt-settings-section {
    margin-bottom: 2rem;
}

.lt-settings-section:last-child {
    margin-bottom: 0;
}

.lt-settings-section h6 {
    margin: 0 0 1rem 0;
    color: var(--mystic-green-light, #00d98b);
    font-size: 0.95rem;
    font-weight: 600;
}

.lt-settings-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 168, 107, 0.05);
    border-radius: 4px;
    border-left: 3px solid rgba(0, 168, 107, 0.3);
}

.lt-settings-item-name {
    flex: 1;
    color: var(--text-primary, #ffffff);
    font-size: 0.9rem;
}

.lt-settings-dungeon-select {
    margin-left: 1rem;
}

.lt-dungeon-select {
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary, #252525);
    border: 1px solid rgba(0, 168, 107, 0.3);
    border-radius: 4px;
    color: var(--text-primary, #ffffff);
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 150px;
}

.lt-dungeon-select:hover {
    border-color: var(--mystic-green, #00a86b);
}

.lt-dungeon-select:focus {
    outline: none;
    border-color: var(--mystic-green, #00a86b);
    box-shadow: 0 0 0 2px rgba(0, 168, 107, 0.2);
}

.lt-reset-completions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lt-btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.lt-btn-danger {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.lt-btn-danger:hover {
    background: #ff6b6b;
    color: #ffffff;
}

.lt-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.lt-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--mystic-green-light, #00d98b);
    margin: 0;
}

.lt-drops-info {
    font-size: 0.9rem;
    color: var(--text-secondary, #cccccc);
    font-weight: 500;
}

.lt-items-table-container {
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-secondary, #252525);
    border: 1px solid rgba(0, 168, 107, 0.2);
    border-radius: 8px;
    overflow-x: auto;
}

.lt-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.lt-items-table thead {
    background: rgba(0, 168, 107, 0.15);
    position: sticky;
    top: 0;
    z-index: 10;
}

.lt-items-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--mystic-green-light, #00d98b);
    border-bottom: 2px solid rgba(0, 168, 107, 0.3);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lt-items-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 168, 107, 0.1);
    color: var(--text-primary, #ffffff);
}

.lt-items-table tbody tr {
    transition: background-color 0.2s ease;
}

.lt-items-table tbody tr:hover {
    background: rgba(0, 168, 107, 0.1);
}

.lt-items-table tbody tr:last-child td {
    border-bottom: none;
}

.lt-col-item {
    width: 60%;
    min-width: 200px;
}

.lt-col-quantity {
    width: 20%;
    text-align: center;
    font-weight: 600;
    color: var(--mystic-green-light, #00d98b);
}

.lt-col-chance {
    width: 20%;
    text-align: right;
    font-weight: 500;
    color: var(--text-secondary, #cccccc);
}

.lt-item-icon {
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 1.1rem;
    vertical-align: middle;
}

.lt-item-name {
    color: var(--text-primary, #ffffff);
    vertical-align: middle;
}

.lt-empty {
    text-align: center;
    color: var(--text-secondary, #cccccc);
    padding: 2rem;
    font-style: italic;
}

.lt-footer {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 168, 107, 0.3);
}

.lt-btn-export {
    flex: none;
    padding: 0.75rem 2rem;
}

/* Scrollbar Styling */
.lt-items-table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.lt-items-table-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.lt-items-table-container::-webkit-scrollbar-thumb {
    background: var(--mystic-green, #00a86b);
    border-radius: 4px;
}

.lt-items-table-container::-webkit-scrollbar-thumb:hover {
    background: var(--mystic-green-light, #00d98b);
}

/* Responsive */
@media (max-width: 768px) {
    .lt-stats {
        grid-template-columns: 1fr;
    }
    
    .lt-controls {
        flex-direction: column;
    }
}

