/* ============================================================================
   BlockBotter UI Enhancements - World-Class Professional Design
   ============================================================================ */

/* ============================================================================
   1. NAVIGATION BAR & HEADER
   ============================================================================ */

.navbar {
    background: rgba(20, 25, 50, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid rgba(0, 228, 255, 0.1) !important;
    padding: 0.75rem 0 !important;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand::before {
    content: '🔒';
    font-size: 1.5rem;
    filter: drop-shadow(0 0 4px rgba(0, 228, 255, 0.5));
}

.nav-brand a {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #00E4FF 0%, #667eea 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-decoration: none !important;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1rem !important;
}

.nav-menu a {
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 8px !important;
    transition: all 0.25s ease-in-out !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
}

.nav-menu a:hover {
    background: rgba(0, 228, 255, 0.15) !important;
    color: #00E4FF !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 228, 255, 0.2);
}

.contact-btn {
    background: linear-gradient(90deg, #00bfff, #7b61ff) !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.25s ease-in-out !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.contact-btn:hover {
    filter: brightness(1.1) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4) !important;
}

/* ============================================================================
   2. DASHBOARD CARDS (Total Links, Total Clicks, etc.)
   ============================================================================ */

.stats-grid {
    gap: 1rem !important; /* Reduced from 20px to 1rem */
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(145deg, #111a2e, #0b1220) !important;
    border-radius: 12px !important;
    padding: 1rem 1.125rem !important; /* Reduced padding: top/bottom 1rem, left/right 1.125rem */
    border: 1px solid rgba(0, 228, 255, 0.15) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
    min-height: auto !important; /* Remove fixed min-height */
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00E4FF, #667eea);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: scale(1.02) !important;
    box-shadow: 0 4px 12px rgba(0, 228, 255, 0.25),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(0, 228, 255, 0.3) !important;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card h3 {
    font-size: 13px !important;
    color: #a0a0a0 !important;
    font-weight: 500 !important;
    margin: 0 0 0.75rem 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 26px !important;
    color: #00d4ff !important;
    font-weight: 600 !important;
    margin: 0 !important;
    line-height: 1.2;
}

/* ============================================================================
   3. SECTION TABS
   ============================================================================ */

.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 12px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.dashboard-tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    position: relative;
    padding: 0.75rem 1.25rem !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease-in-out !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.tab-btn::before {
    content: '';
    font-size: 1.1rem;
    margin-right: 0.25rem;
}

.tab-btn[data-tab="create"]::before { content: '🔗'; }
.tab-btn[data-tab="script"]::before { content: '💻'; }
.tab-btn[data-tab="links"]::before { content: '📋'; }
.tab-btn[data-tab="analytics"]::before { content: '📊'; }
.tab-btn[data-tab="domains"]::before { content: '🌐'; }
.tab-btn[data-tab="profile"]::before { content: '👤'; }
.tab-btn[data-tab="settings"]::before { content: '⚙️'; }

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.tab-btn.active {
    color: #00E4FF !important;
    background: rgba(0, 228, 255, 0.1) !important;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00E4FF, #667eea);
    border-radius: 2px 2px 0 0;
}

/* ============================================================================
   4. FORMS & INPUT FIELDS
   ============================================================================ */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 14px !important;
    color: #a0a0a0 !important;
    font-weight: 500 !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
    width: 100%;
    max-width: 450px !important; /* Reduced from 500px - more balanced, not too long */
    padding: 0.6rem 0.875rem !important; /* Reduced from 0.875rem 1rem */
    background: rgba(31, 31, 58, 0.8) !important;
    border: 2px solid rgba(0, 228, 255, 0.3) !important;
    border-radius: 6px !important;
    color: #FFFFFF !important;
    font-size: 14px !important; /* Reduced from 15px - standard size */
    min-height: 42px !important; /* Changed from fixed height to min-height */
    transition: all 0.25s ease-in-out !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Dropdown/select fields should be standard size */
select {
    max-width: 350px !important; /* Reduced from 400px - more balanced */
}

textarea {
    min-height: 100px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #8892a2 !important;
    opacity: 0.7;
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(0, 228, 255, 0.5) !important;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: #00bfff !important;
    box-shadow: 0 0 0 2px #00bfff40 !important;
    background: rgba(31, 31, 58, 0.95) !important;
}

/* Input with icon */
.input-with-icon {
    position: relative;
}

.input-with-icon::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 2.75rem !important;
}

/* ============================================================================
   5. BUTTONS
   ============================================================================ */

.btn,
button.btn,
.btn-primary,
button[type="submit"] {
    background: linear-gradient(90deg, #00bfff, #7b61ff) !important;
    color: white !important;
    border: none !important;
    padding: 0.875rem 1.75rem !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.25s ease-in-out !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    text-transform: none !important;
    letter-spacing: 0.3px;
}

.btn:hover,
button.btn:hover,
.btn-primary:hover,
button[type="submit"]:hover {
    filter: brightness(1.1) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.4) !important;
}

.btn:active,
button.btn:active,
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ============================================================================
   6. LOGIN & REGISTER PAGES
   ============================================================================ */

.auth-features::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 228, 255, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.auth-card {
    animation: fadeUp 0.5s ease-out;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6),
                0 0 60px rgba(0, 228, 255, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card .form-group > div {
    position: relative;
}

.auth-card .form-group input {
    padding-left: 2.75rem !important;
}

.auth-card .form-group input[type="text"],
.auth-card .form-group input[type="email"],
.auth-card .form-group input[type="password"] {
    position: relative;
}

/* ============================================================================
   7. ANALYTICS / SCRIPT GENERATOR / DOMAIN SELECTION TABS
   ============================================================================ */

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header h3 {
    font-size: 22px !important;
    font-weight: 600 !important;
    color: #FFFFFF !important;
    margin: 0 !important;
}

.section-header::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #00E4FF, #667eea);
    border-radius: 2px;
}

.section-card {
    background: rgba(42, 45, 87, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem;
    transition: all 0.25s ease-in-out;
}

.section-card:hover {
    border-color: rgba(0, 228, 255, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================================================
   8. LINK MONITOR SECTION
   ============================================================================ */

.link-monitor-box {
    background: linear-gradient(145deg, rgba(17, 26, 46, 0.8), rgba(11, 18, 32, 0.8)) !important;
    border: 1px solid rgba(0, 228, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin-bottom: 1.5rem;
}

.link-monitor-box .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.25s ease;
}

.link-monitor-box .checkbox-label:hover {
    background: rgba(0, 228, 255, 0.1);
}

.link-monitor-box .info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(0, 228, 255, 0.2);
    border-radius: 50%;
    color: #00E4FF;
    font-size: 12px;
    margin-left: 0.5rem;
    cursor: help;
}

/* ============================================================================
   9. GENERAL ENHANCEMENTS
   ============================================================================ */

* {
    transition: all 0.25s ease-in-out !important;
}

.tab-content {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dashboard {
    padding: 2rem 0;
}

.dashboard-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 228, 255, 0.2);
}

.dashboard-header h1 {
    font-size: 22px !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* Consistent spacing */
.dashboard > .container > * {
    margin-bottom: 32px;
}

.dashboard > .container > *:last-child {
    margin-bottom: 0;
}

/* ============================================================================
   10. TYPOGRAPHY & COLORS
   ============================================================================ */

body {
    background: linear-gradient(135deg, #0a1124 0%, #141c33 100%) !important;
    color: #c5c7d1 !important;
    font-size: 15px !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #FFFFFF !important;
}

h1 {
    font-size: 22px !important;
    font-weight: 600 !important;
}

h2 {
    font-size: 20px !important;
    font-weight: 600 !important;
}

h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
}

p {
    font-size: 15px !important;
    color: #c5c7d1 !important;
    line-height: 1.6;
}

/* ============================================================================
   11. RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .dashboard-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .auth-container {
        grid-template-columns: 1fr !important;
    }
    
    .auth-card {
        padding: 2rem 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 0.5rem !important;
    }
    
    .nav-menu a {
        font-size: 13px !important;
        padding: 0.4rem 0.75rem !important;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 1rem !important;
    }
    
    .stat-value {
        font-size: 22px !important;
    }
    
    .tab-btn {
        font-size: 13px !important;
        padding: 0.625rem 1rem !important;
    }
}

/* ============================================================================
   12. PREMIUM FEATURES
   ============================================================================ */

.premium-badge {
    position: relative;
    display: inline-block;
}

.premium-badge::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #00E4FF, #667eea, #00E4FF);
    background-size: 200% 200%;
    animation: gradientRotate 3s ease infinite;
    z-index: -1;
    opacity: 0.5;
}

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Dark mode toggle (placeholder for future) */
.dark-mode-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(42, 45, 87, 0.9);
    border: 1px solid rgba(0, 228, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    border-color: rgba(0, 228, 255, 0.5);
}

