/* loot_style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* Tab styling */
.tab-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: #9ca3af; /* text-gray-400 */
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #d1d5db; /* text-gray-300 */
}

.tab-btn.active {
    color: #ffffff;
    border-color: #2563eb; /* border-blue-600 */
}

.tab-pane {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shared button styles from previous tool */
.add-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: #2563eb; /* bg-blue-600 */
    color: white;
    font-weight: 500;
    border-radius: 0.5rem; /* rounded-lg */
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.add-btn:hover {
    background-color: #1d4ed8; /* hover:bg-blue-700 */
}

.remove-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background-color: #dc2626; /* bg-red-600 */
    color: white;
    font-weight: 500;
    border-radius: 0.375rem; /* rounded-md */
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.remove-btn:hover {
    background-color: #b91c1c; /* hover:bg-red-700 */
}

.generate-btn {
    padding: 1rem 2rem;
    background: linear-gradient(to right, #2563eb, #3b82f6);
    color: white;
    font-size: 1.125rem; /* text-lg */
    font-weight: 600;
    border-radius: 0.75rem; /* rounded-xl */
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.copy-btn {
    padding: 0.75rem 1.25rem;
    background-color: #16a34a; /* bg-green-600 */
    color: white;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.copy-btn:hover {
    background-color: #15803d; /* hover:bg-green-700 */
}

/* Form input styling */
input[type="text"],
input[type="number"],
textarea,
select {
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

/* Dynamic sub-item container */
.sub-item-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid #4b5563;
}

/* Modal styles */
#close-modal-btn {
    font-size: 2.5rem;
    line-height: 1;
    font-weight: bold;
    transition: transform 0.2s;
}

#close-modal-btn:hover {
    transform: rotate(90deg);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Light mode support */
[data-theme="light"] body {
    background: linear-gradient(135deg, #e8f0f7 0%, #f0f5fa 100%);
}

[data-theme="light"] .tab-btn {
    color: #6b7280;
}

[data-theme="light"] .tab-btn:hover {
    color: #4b5563;
}

[data-theme="light"] .tab-btn.active {
    color: #1f2937;
    border-color: #2563eb;
}

[data-theme="light"] .sub-item-container {
    background-color: rgba(0, 0, 0, 0.03);
    border-color: #d1d5db;
}

[data-theme="light"] ::-webkit-scrollbar-track {
    background: #e5e7eb;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #9ca3af;
}

[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
    color: #1f2937 !important;
}

[data-theme="light"] p,
[data-theme="light"] label,
[data-theme="light"] .text-gray-400,
[data-theme="light"] .text-gray-300,
[data-theme="light"] .text-gray-200 {
    color: #4b5563 !important;
}

[data-theme="light"] .text-white {
    color: #1f2937 !important;
}
