/* Custom Variables */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #6b7280;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --border-color: #e5e7eb;
    --sidebar-width: 280px;
}

/* Dark mode variables */
.dark-mode {
    --bs-body-bg: #1f2937;
    --bs-body-color: #f9fafb;
    --bs-card-bg: #374151;
    --bs-border-color: #4b5563;
}

/* Base Styles */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background-color: var(--light-color);
}

/* Logo Icon */
.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1d4ed8 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Sidebar Styles */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

/* Navigation Styles */
.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
    gap: 12px;
}

.nav-item:hover {
    background-color: #f3f4f6;
    color: var(--dark-color);
}

.nav-item.active {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
    margin-left: -4px;
    padding-left: 20px;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 14px;
}

/* Main Content */
main {
    margin-left: var(--sidebar-width);
    transition: margin-left 0.3s ease-in-out;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    main {
        margin-left: 0;
    }
    
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1020;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}

/* Tool Cards */
.tool-card {
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Code Output Styles */
.code-output {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-item {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid #22c55e;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    animation: fadeInUp 0.3s ease;
}

.code-display {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 24px;
    font-weight: bold;
    color: #15803d;
    letter-spacing: 2px;
}

.copy-btn {
    background-color: #22c55e !important;
    border-color: #22c55e !important;
    color: white !important;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background-color: #16a34a !important;
    border-color: #16a34a !important;
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.3s ease;
}

/* Countdown Badge */
#countdown {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    min-width: 50px;
}

/* Custom Alert */
.promo-banner {
    background: linear-gradient(135deg, #dc3545 0%, #e91e63 100%);
    border: none;
    color: white;
}

/* Dark Mode Styles */
.dark-mode .sidebar {
    background-color: #374151;
    border-color: #4b5563;
}

.dark-mode .nav-item {
    color: #d1d5db;
}

.dark-mode .nav-item:hover {
    background-color: #4b5563;
    color: #f9fafb;
}

.dark-mode .nav-item.active {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
}

.dark-mode .card {
    background-color: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.dark-mode .form-control {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #f9fafb;
}

.dark-mode .form-control:focus {
    background-color: #4b5563;
    border-color: var(--primary-color);
    color: #f9fafb;
}

.dark-mode main {
    background-color: #1f2937 !important;
}

/* Tool Content */
.tool-content {
    animation: fadeInUp 0.4s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tool-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .code-display {
        font-size: 20px;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Success/Error States */
.success-state {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-color: #22c55e;
}

.error-state {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border-color: #ef4444;
}

/* Notification Styles */
.notification-toast {
    z-index: 9999;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Temp Mail Specific Styles */
#temp-mail-tool .card {
    border: 1px solid #e5e7eb;
}

#temp-mail-tool .bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #e5e7eb;
}

.message-item {
    transition: all 0.2s ease;
    cursor: pointer;
}

    .message-item:hover {
        background-color: rgba(59, 130, 246, 0.05);
        border-radius: 8px;
        padding: 12px;
        margin: -8px;
        margin-bottom: 4px;
    }

.temp-email-display {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 16px;
    user-select: all;
}

/* Spinner customization */
.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Action buttons styling */
.btn-outline-dark {
    border-color: #6b7280;
    color: #6b7280;
    font-size: 14px;
    padding: 6px 12px;
}

    .btn-outline-dark:hover {
        background-color: #6b7280;
        border-color: #6b7280;
        color: white;
    }

/* Dark mode for temp mail */
.dark-mode #temp-mail-tool .bg-light {
    background-color: #4b5563 !important;
    border-color: #6b7280;
}

.dark-mode #temp-mail-tool .text-dark {
    color: #f9fafb !important;
}

.dark-mode .message-item:hover {
    background-color: rgba(59, 130, 246, 0.1);
}
/* Check Live UID Specific Styles */
#check-live-uid-tool .alert-info {
    background-color: #d1ecf1;
    border-color: #b6d4da;
    color: #0c5460;
}

#check-live-uid-tool .btn-group {
    gap: 8px;
}

#uidInput, #liveAccounts, #deadAccounts {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
}

.card-header h5, .card-header h6 {
    font-weight: 600;
}

/* Status buttons styling */
#runBtn, #liveBtn, #deadBtn, #checkedBtn {
    min-width: 100px;
    font-weight: 500;
}

/* Dark mode for Check Live UID */
.dark-mode #check-live-uid-tool .alert-info {
    background-color: #1e3a8a;
    border-color: #1d4ed8;
    color: #dbeafe;
}
.fire-effect span {
    color: #ff4500;
    font-weight: bold;
    text-shadow: 0 0 5px #ff4500, 0 0 10px #ff6347, 0 0 20px #ff0000, 0 0 30px #ff0000;
    animation: flicker 1.5s infinite alternate;
}

@keyframes flicker {
    0% {
        opacity: 1;
        text-shadow: 0 0 5px #ff4500, 0 0 10px #ff6347;
    }

    50% {
        opacity: 0.8;
        text-shadow: 0 0 10px #ff0000, 0 0 20px #ff4500;
    }

    100% {
        opacity: 1;
        text-shadow: 0 0 20px #ff6347, 0 0 30px #ff0000;
    }
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
