/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e8b42b;
}

body {
    background-color: #0f0f0f;
    color: #d1d5db;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Prevent horizontal scroll on all pages */
main,
.flex-1 {
    overflow-x: hidden;
}

/* Very subtle content fade - only the content area */
main {
    animation: contentIn 0.15s ease-out;
}

@keyframes contentIn {
    from {
        opacity: 0.6;
    }

    to {
        opacity: 1;
    }
}

::selection {
    background-color: #e8b42b;
    color: #000000;
}

/* Modals Overlay & Content */
.modal-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #161616;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    color: #e5e7eb;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Tabs Customization */
.tabs-btn {
    padding: 1rem 0.25rem;
    display: inline-flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    font-weight: 500;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.15s ease-in-out;
}

.tabs-btn:hover {
    color: #d1d5db;
}

.tabs-btn.active {
    border-color: #e8b42b;
    color: #e8b42b;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* General Input & Select Dark Styles */
.input-dark,
.select-dark {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: #111111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 0.875rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    outline: none;
}

.input-dark::placeholder {
    color: #6b7280;
}

.input-dark:focus,
.select-dark:focus {
    box-shadow: 0 0 0 1px #e8b42b;
    border-color: #e8b42b;
}

.select-dark {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Fix for Select dropdown options */
.select-dark option {
    background-color: #161616;
    color: #ffffff;
}

/* Primary Button */
.btn-primary {
    padding: 0.5rem 1rem;
    font-weight: 700;
    background-color: #e8b42b;
    color: #000000;
    border-radius: 0.5rem;
    transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 0 15px rgba(232, 180, 43, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #ffffff;
}

.btn-primary:active {
    transform: scale(0.95);
}

/* Secondary Button */
.btn-secondary {
    padding: 0.5rem 1rem;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    border-radius: 0.5rem;
    transition: background-color 0.15s, color 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Danger Button */
.btn-danger {
    padding: 0.5rem 1rem;
    font-weight: 500;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-radius: 0.5rem;
    transition: background-color 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-danger:hover {
    background-color: rgba(239, 68, 68, 0.2);
}

/* Active Link Indicator (Sidebar) */
.nav-link.active {
    background-color: #1a1a1a;
    color: #ffffff;
    border-left: 4px solid #e8b42b;
}

.nav-link.active svg {
    color: #e8b42b;
}