/* 
============================================
DISCORD WEBHOOK MANAGER - SPAM EDITION
Copyright © 2026 TROY
All Rights Reserved
============================================
*/

:root {
    --primary: #5865F2;
    --primary-dark: #4752C4;
    --secondary: #57F287;
    --dark: #1e2124;
    --darker: #18191c;
    --light: #f6f6f6;
    --gray: #4f545c;
    --light-gray: #b9bbbe;
    --danger: #ED4245;
    --warning: #FEE75C;
    --success: #3ba55d;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    --card-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 100%);
    color: var(--light);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Copyright & Watermark */
.copyright-watermark {
    position: fixed;
    bottom: 5px;
    right: 5px;
    color: rgba(255, 255, 255, 0.08);
    font-size: 0.6rem;
    z-index: 9999;
    pointer-events: none;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.troy-signature {
    position: fixed;
    bottom: 5px;
    left: 5px;
    color: rgba(255, 255, 255, 0.08);
    font-size: 0.6rem;
    font-family: 'Courier New', monospace;
    z-index: 9999;
    pointer-events: none;
    font-weight: bold;
}

/* Login Screen */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    background: rgba(30, 33, 36, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--card-radius);
    padding: 30px 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo i {
    font-size: 2.5rem;
    color: var(--primary);
    background: rgba(88, 101, 242, 0.1);
    padding: 15px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
}

.logo p {
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--light-gray);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    width: 100%;
    touch-action: manipulation;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #2d8c4a;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #c03537;
}

.btn-warning {
    background: var(--warning);
    color: #000;
}

.btn-warning:hover {
    background: #e6d453;
}

.btn-small {
    padding: 10px 15px;
    font-size: 0.9rem;
    width: auto;
}

.btn-lg {
    padding: 18px 30px;
    font-size: 1.1rem;
}

/* OTP Input */
.otp-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.otp-input {
    width: 45px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light);
    transition: var(--transition);
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.2);
}

/* Main Screen */
.main-screen {
    display: none;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Mobile Header */
.mobile-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(30, 33, 36, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.user-details h3 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.user-details p {
    font-size: 0.8rem;
    color: var(--light-gray);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 33, 36, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-gray);
    text-decoration: none;
    font-size: 0.7rem;
    padding: 8px;
    min-width: 70px;
    transition: var(--transition);
    border-radius: 8px;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary);
    background: rgba(88, 101, 242, 0.1);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Tab Content */
.tab-content {
    padding: 15px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Cards */
.card {
    background: rgba(30, 33, 36, 0.8);
    backdrop-filter: blur(10px);
    border-radius: var(--card-radius);
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header i {
    font-size: 1.3rem;
    color: var(--primary);
    background: rgba(88, 101, 242, 0.1);
    padding: 10px;
    border-radius: 8px;
}

.card-header h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Webhook List */
.webhook-list {
    margin-top: 15px;
}

.webhook-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.webhook-info h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    word-break: break-word;
}

.webhook-info p {
    font-size: 0.85rem;
    color: var(--light-gray);
    margin-bottom: 8px;
    word-break: break-all;
}

.webhook-actions {
    display: flex;
    gap: 10px;
}

/* Spam Webhook List */
.spam-webhook-list {
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
}

.webhook-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.webhook-checkbox:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.webhook-checkbox.selected {
    background: rgba(88, 101, 242, 0.1);
    border-color: var(--primary);
}

.checkbox-input {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid var(--gray);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.checkbox-input.checked {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-input.checked::after {
    content: '✓';
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.webhook-checkbox-info {
    flex: 1;
}

.webhook-checkbox-info h5 {
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.webhook-checkbox-info p {
    font-size: 0.8rem;
    color: var(--light-gray);
}

.selection-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* Delay Configuration */
.delay-type-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.delay-option {
    position: relative;
}

.delay-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.delay-option label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.delay-option label i {
    font-size: 1.2rem;
    color: var(--light-gray);
    width: 30px;
    text-align: center;
}

.delay-option label span {
    font-weight: 500;
    font-size: 1rem;
}

.delay-option label small {
    color: var(--light-gray);
    font-size: 0.85rem;
    margin-left: auto;
}

.delay-option input:checked + label {
    background: rgba(88, 101, 242, 0.1);
    border-color: var(--primary);
}

.delay-option input:checked + label i {
    color: var(--primary);
}

.delay-settings {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Range Slider */
.range-container {
    position: relative;
    margin: 25px 0;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid var(--darker);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 3px solid var(--darker);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.range-value {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    min-width: 60px;
    text-align: center;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--light-gray);
    font-size: 0.8rem;
}

/* Preview Sections */
.preview {
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
}

.delay-preview {
    margin-top: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.timeline-preview {
    height: 60px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

.timeline-item {
    position: absolute;
    height: 40px;
    background: var(--primary);
    border-radius: 4px;
    top: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.preview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.preview-stats ul {
    list-style: none;
}

.preview-stats li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
}

.preview-stats li span {
    color: var(--light-gray);
}

/* Progress Bar */
.progress-container {
    margin: 20px 0;
}

.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 6px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* Spam Controls */
.control-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.live-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-item i {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--light-gray);
    margin-bottom: 5px;
}

.stat-item strong {
    font-size: 1.2rem;
}

/* Log Panel */
.log-panel {
    margin-top: 20px;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.log-header h3 {
    font-size: 1.1rem;
}

.log-content {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.85rem;
    max-height: 200px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.log-entry {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    line-height: 1.4;
}

.log-entry.success {
    color: var(--secondary);
}

.log-entry.error {
    color: var(--danger);
}

.log-entry.info {
    color: var(--warning);
}

.log-entry.spam {
    color: var(--primary);
}

/* Notification */
#notificationContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.notification {
    background: var(--success);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.notification.error {
    background: var(--danger);
}

.notification.info {
    background: var(--primary);
}

.notification.warning {
    background: var(--warning);
    color: #000;
}

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

/* Loading */
.loading {
    display: none;
    text-align: center;
    padding: 30px;
}

.loading.active {
    display: block;
}

.spinner {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--primary);
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Helper Text */
.helper-text {
    font-size: 0.8rem;
    color: var(--light-gray);
    margin-top: 5px;
    display: block;
}

.warning {
    color: var(--warning) !important;
    font-weight: 500;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

/* Textarea */
textarea.form-control {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

/* Select */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23b9bbbe' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Responsive */
@media (min-width: 768px) {
    .login-container {
        padding: 40px 30px;
    }
    
    .logo i {
        font-size: 3rem;
        padding: 20px;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .mobile-nav {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: var(--card-radius) var(--card-radius) 0 0;
        bottom: 20px;
    }
    
    .delay-type-selector {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .preview-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animation for checkbox */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.3s ease;
}

/* Selection Count */
#selectedCount {
    font-size: 0.9rem;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-top: 15px;
}

#selectedCount i {
    color: var(--primary);
    margin-right: 5px;
}
