
/* SWATNFO Instagram Report Bot - Styles */
/* Made by SWATNFO */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple: #9B59B6;
    --purple-dark: #7D3C98;
    --purple-light: #BB8FCE;
    --black: #000000;
    --dark-gray: #1a1a1a;
    --gray: #2d2d2d;
    --light-gray: #444444;
    --white: #ffffff;
    --text-gray: #cccccc;
    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f39c12;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--black);
    color: var(--white);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Smooth Elegant Background */
.gradient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(to bottom, #0a0a0a, #1a0f2e, #0a0a0a);
    overflow: hidden;
}

/* Smooth gradient waves */
.gradient-background::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(155, 89, 182, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(142, 68, 173, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 70%, rgba(138, 43, 226, 0.18) 0%, transparent 50%);
    animation: smoothWave 25s ease-in-out infinite;
}

/* Subtle floating particles */
.gradient-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(168, 85, 247, 0.4) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px),
        radial-gradient(circle, rgba(168, 85, 247, 0.3) 1px, transparent 1px);
    background-size: 
        450px 450px,
        250px 250px,
        150px 150px;
    background-position: 
        0 0,
        40px 60px,
        130px 270px;
    animation: particlesDrift 180s linear infinite;
}

@keyframes smoothWave {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20px, -30px) rotate(180deg);
    }
}

@keyframes particlesDrift {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-80px, -80px);
    }
}

/* Floating Shapes - Clean & Smooth */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
}

.floating-shapes span {
    position: absolute;
    display: block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(138, 43, 226, 0.1));
    bottom: -150px;
    animation: gentleFloat 30s infinite ease-in-out;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.2);
    backdrop-filter: blur(2px);
}

.floating-shapes span:nth-child(1) {
    left: 15%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
    animation-duration: 32s;
}

.floating-shapes span:nth-child(2) {
    left: 30%;
    width: 50px;
    height: 50px;
    animation-delay: 5s;
    animation-duration: 28s;
}

.floating-shapes span:nth-child(3) {
    left: 50%;
    width: 70px;
    height: 70px;
    animation-delay: 10s;
    animation-duration: 35s;
}

.floating-shapes span:nth-child(4) {
    left: 70%;
    width: 90px;
    height: 90px;
    animation-delay: 3s;
    animation-duration: 38s;
}

.floating-shapes span:nth-child(5) {
    left: 85%;
    width: 60px;
    height: 60px;
    animation-delay: 8s;
    animation-duration: 30s;
}

.floating-shapes span:nth-child(6) {
    left: 10%;
    width: 55px;
    height: 55px;
    animation-delay: 15s;
    animation-duration: 33s;
}

.floating-shapes span:nth-child(7) {
    left: 40%;
    width: 65px;
    height: 65px;
    animation-delay: 12s;
    animation-duration: 36s;
}

.floating-shapes span:nth-child(8) {
    left: 60%;
    width: 75px;
    height: 75px;
    animation-delay: 6s;
    animation-duration: 34s;
}

.floating-shapes span:nth-child(9) {
    left: 25%;
    width: 45px;
    height: 45px;
    animation-delay: 18s;
    animation-duration: 29s;
}

.floating-shapes span:nth-child(10) {
    left: 80%;
    width: 55px;
    height: 55px;
    animation-delay: 20s;
    animation-duration: 31s;
}

@keyframes gentleFloat {
    0% {
        bottom: -150px;
        transform: translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 110%;
        transform: translateX(-40px) rotate(360deg);
        opacity: 0;
    }
}

/* Fade-in Animation */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shake Animation for Errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

/* Container */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Login/Register Box */
.login-box {
    background-color: rgba(26, 26, 26, 0.95);
    border: 2px solid var(--purple);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 0 30px rgba(155, 89, 182, 0.3);
    backdrop-filter: blur(10px);
}

.register-box {
    max-width: 500px;
}

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

.header h1 {
    font-size: 2.5em;
    color: var(--purple);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    color: var(--text-gray);
    font-size: 0.95em;
}

/* Forms */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-gray);
    font-size: 0.9em;
    font-weight: 500;
}

.form-group input {
    background-color: var(--gray);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--white);
    font-size: 1em;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.3);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-gray);
}

.checkbox input {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.forgot-link {
    color: var(--purple);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: var(--purple-light);
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 10px;
    padding: 12px;
    background: var(--gray);
    border-radius: 8px;
    border: 1px solid var(--light-gray);
}

.strength-bar {
    height: 6px;
    background: var(--light-gray);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    background: var(--danger);
    transition: all 0.3s ease;
    width: 0%;
}

.strength-fill.weak {
    background: var(--danger);
    width: 33%;
}

.strength-fill.medium {
    background: var(--warning);
    width: 66%;
}

.strength-fill.strong {
    background: var(--success);
    width: 100%;
}

.strength-text {
    font-size: 0.85em;
    margin-bottom: 8px;
    font-weight: 600;
}

.strength-text.weak {
    color: var(--danger);
}

.strength-text.medium {
    color: var(--warning);
}

.strength-text.strong {
    color: var(--success);
}

.strength-requirements {
    list-style: none;
    font-size: 0.8em;
    color: var(--text-gray);
}

.strength-requirements li {
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.strength-requirements li::before {
    content: '✗';
    color: var(--danger);
    font-weight: bold;
}

.strength-requirements li.met::before {
    content: '✓';
    color: var(--success);
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: transparent;
    border: 2px solid var(--purple);
    color: var(--purple);
}

.btn-primary:hover {
    background-color: var(--purple);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.5);
}

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

.form-footer {
    text-align: center;
    margin-top: 10px;
    color: var(--text-gray);
    font-size: 0.9em;
}

.link {
    color: var(--purple);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.link:hover {
    color: var(--purple-light);
}

/* Watermark */
.watermark {
    text-align: center;
    margin-top: 30px;
    color: var(--light-gray);
    font-size: 0.85em;
    font-style: italic;
}

/* Navbar */
.navbar {
    background-color: var(--dark-gray);
    border-bottom: 2px solid var(--purple);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(155, 89, 182, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--purple);
    background-color: var(--gray);
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
}

.profile-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gray);
    border: 2px solid var(--purple);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-button:hover {
    background: var(--light-gray);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.3);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: var(--white);
}

.profile-name {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95em;
}

.profile-arrow {
    color: var(--purple);
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.profile-dropdown.active .profile-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--dark-gray);
    border: 2px solid var(--purple);
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.profile-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.dropdown-header .username {
    font-weight: 600;
    color: var(--white);
    font-size: 1em;
}

.dropdown-header .role {
    font-size: 0.85em;
    color: var(--purple);
    margin-top: 2px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropdown-item:hover {
    background: var(--gray);
    color: var(--white);
}

.dropdown-item i {
    font-size: 1.1em;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--light-gray);
    margin: 5px 0;
}

.dropdown-item.logout {
    color: var(--danger);
}

.dropdown-item.logout:hover {
    background: rgba(231, 76, 60, 0.1);
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px;
}

.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-section h1 {
    font-size: 2.5em;
    color: var(--white);
    margin-bottom: 10px;
}

.welcome-section span {
    color: var(--purple);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--gray) 100%);
    border: 2px solid var(--purple);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 30px rgba(155, 89, 182, 0.4);
    border-color: var(--purple-light);
}

.stat-info h3 {
    font-size: 1.8em;
    color: var(--purple);
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-info p {
    color: var(--text-gray);
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Action Cards */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.action-card {
    background-color: var(--dark-gray);
    border: 2px solid var(--purple);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(155, 89, 182, 0.3);
}

.action-card h2 {
    color: var(--purple);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.action-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* Recent Activity */
.recent-activity {
    background-color: var(--dark-gray);
    border: 2px solid var(--purple);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.recent-activity h2 {
    color: var(--purple);
    margin-bottom: 20px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    background-color: var(--gray);
    border-left: 3px solid var(--purple);
    padding: 15px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-info p {
    color: var(--text-gray);
    font-size: 0.9em;
}

.activity-time {
    color: var(--light-gray);
    font-size: 0.85em;
}

/* Instagram Credentials Container */
.credentials-container {
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.credentials-box {
    background-color: var(--dark-gray);
    border: 2px solid var(--purple);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.2);
}

.credentials-box h2 {
    color: var(--purple);
    margin-bottom: 10px;
}

.credentials-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: var(--gray);
    border-radius: 8px;
    margin: 20px 0;
}

.credentials-status .status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--danger);
}

.credentials-status.active .status-indicator {
    background-color: var(--success);
}

.credentials-status .status-text {
    color: var(--text-gray);
    font-size: 0.95em;
}

.credentials-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-link {
    color: var(--purple);
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--purple-light);
    text-decoration: underline;
}

/* Report Container */
.report-container {
    max-width: 900px;
    margin: 0 auto;
}

.report-mode-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.mode-btn {
    padding: 12px 30px;
    background-color: transparent;
    border: 2px solid var(--purple);
    color: var(--purple);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.mode-btn.active,
.mode-btn:hover {
    background-color: var(--purple);
    color: var(--white);
    transform: scale(1.05);
}

.report-box {
    background-color: var(--dark-gray);
    border: 2px solid var(--purple);
    border-radius: 12px;
    padding: 30px;
}

.report-box h2 {
    color: var(--purple);
    margin-bottom: 25px;
}

.select-input {
    background-color: var(--gray);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--white);
    font-size: 1em;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.3);
}

textarea {
    background-color: var(--gray);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--white);
    font-size: 1em;
    width: 100%;
    resize: vertical;
    font-family: monospace;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 15px rgba(155, 89, 182, 0.3);
}

.toggle-buttons {
    display: flex;
    gap: 10px;
}

.toggle-btn {
    flex: 1;
    padding: 10px;
    background-color: var(--gray);
    border: 2px solid var(--light-gray);
    color: var(--text-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background-color: var(--purple);
    border-color: var(--purple);
    color: var(--white);
}

.btn-large {
    width: 100%;
    padding: 16px;
    font-size: 1.1em;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--light-gray);
    color: var(--text-gray);
}

.btn-secondary:hover {
    border-color: var(--purple);
    color: var(--purple);
}

.btn-danger {
    background-color: transparent;
    border: 2px solid var(--danger);
    color: var(--danger);
}

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

.help-text {
    font-size: 0.85em;
    color: var(--text-gray);
    margin-top: 5px;
}

/* Progress Section */
.progress-section {
    background-color: var(--dark-gray);
    border: 2px solid var(--purple);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
}

.progress-section h2 {
    color: var(--purple);
    margin-bottom: 20px;
}

.progress-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.progress-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9em;
}

.stat-value {
    color: var(--white);
    font-size: 1.3em;
    font-weight: bold;
}

.success-text {
    color: var(--success);
}

.danger-text {
    color: var(--danger);
}

.progress-bar-container {
    width: 100%;
    height: 30px;
    background-color: var(--gray);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--purple), var(--purple-light));
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
}

.live-log {
    background-color: var(--black);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.log-entry {
    padding: 5px 0;
    border-bottom: 1px solid var(--gray);
}

.log-entry:last-child {
    border-bottom: none;
}

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

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

/* Results Section */
.results-section {
    background-color: var(--dark-gray);
    border: 2px solid var(--purple);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
}

.results-section h2 {
    color: var(--purple);
    margin-bottom: 30px;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background-color: var(--gray);
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    padding: 25px;
}

.result-card h3 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--white);
}

.success-card {
    border-color: var(--success);
}

.success-card h3 {
    color: var(--success);
}

.danger-card {
    border-color: var(--danger);
}

.danger-card h3 {
    color: var(--danger);
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* History Page */
.history-container {
    background-color: var(--dark-gray);
    border: 2px solid var(--purple);
    border-radius: 12px;
    padding: 30px;
}

.filters-section {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-size: 0.9em;
}

.search-input {
    background-color: var(--gray);
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--white);
    font-size: 1em;
    width: 100%;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--purple);
}

.history-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--gray);
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: var(--purple);
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.9em;
}

.history-table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table th,
.history-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray);
}

.history-table th {
    background-color: var(--gray);
    color: var(--purple);
    font-weight: 600;
}

.history-table td {
    color: var(--text-gray);
}

.status-badge {
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 600;
}

.status-badge.success {
    background-color: rgba(46, 204, 113, 0.2);
    color: var(--success);
}

.status-badge.failed {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--danger);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

/* Settings Page */
.settings-container {
    max-width: 900px;
    margin: 0 auto;
}

.settings-section {
    background-color: var(--dark-gray);
    border: 2px solid var(--purple);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.settings-section h2 {
    color: var(--purple);
    margin-bottom: 20px;
}

.settings-section h3 {
    color: var(--white);
    margin: 20px 0 10px 0;
}

.help-section {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--gray);
    border-radius: 8px;
}

.help-section ol {
    margin-left: 20px;
    color: var(--text-gray);
}

.help-section li {
    margin: 10px 0;
}

.credentials-status {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: var(--gray);
    border-radius: 8px;
    margin: 15px 0;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--danger);
}

.status-dot.active {
    background-color: var(--success);
}

.danger-zone {
    border-color: var(--danger);
}

.danger-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* About Page */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-header h1 {
    font-size: 3em;
    color: var(--purple);
    margin-bottom: 10px;
}

.version {
    color: var(--text-gray);
    font-size: 1.1em;
}

.about-section {
    background-color: var(--dark-gray);
    border: 2px solid var(--purple);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.about-section h2 {
    color: var(--purple);
    margin-bottom: 20px;
}

.about-section p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background-color: var(--gray);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--purple);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: var(--purple);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.9em;
}

.methods-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.method-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: var(--gray);
    border-radius: 8px;
}

.method-number {
    background-color: var(--purple);
    color: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.method-info strong {
    color: var(--white);
    display: block;
    margin-bottom: 5px;
}

.method-info p {
    color: var(--text-gray);
    font-size: 0.9em;
    margin: 0;
}

.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.tech-item {
    padding: 15px;
    background-color: var(--gray);
    border-left: 3px solid var(--purple);
    border-radius: 5px;
    color: var(--text-gray);
}

.tech-item strong {
    color: var(--purple);
}

.contact-info {
    margin-top: 20px;
}

.contact-info p {
    margin: 10px 0;
    color: var(--text-gray);
}

.about-footer {
    text-align: center;
    padding: 30px;
    margin-top: 20px;
}

.about-footer p {
    margin: 10px 0;
}

.disclaimer {
    font-size: 0.85em;
    color: var(--light-gray);
    font-style: italic;
    margin-top: 20px;
}

/* Admin Dashboard */
.admin-badge {
    background-color: var(--danger);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 0.7em;
    margin-left: 10px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--gray);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 15px 30px;
    background-color: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--purple);
    border-bottom-color: var(--purple);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Blacklist Styles */
.blacklist-stats {
    display: flex;
    gap: 30px;
    padding: 20px;
    background-color: var(--gray);
    border-radius: 10px;
    margin-bottom: 25px;
}

.blacklist-stats .stat-item {
    display: flex;
    gap: 10px;
    align-items: center;
}

.blacklist-stats .stat-label {
    color: var(--text-gray);
    font-size: 0.95em;
}

.blacklist-stats .stat-value {
    color: var(--purple);
    font-size: 1.2em;
    font-weight: 600;
}

.admin-section {
    background-color: var(--dark-gray);
    border: 2px solid var(--purple);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h2 {
    color: var(--purple);
    margin: 0;
}

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

.table-container {
    overflow-x: auto;
    max-width: 100%;
    margin-bottom: 20px;
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--gray);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--purple);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--purple-light);
}

/* Bulk Actions Bar */
.bulk-actions-bar {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(123, 104, 238, 0.2));
    border: 1px solid var(--purple);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.bulk-info {
    color: var(--text-gray);
    font-weight: 600;
}

.bulk-info span {
    color: var(--purple);
    font-size: 1.2em;
}

.bulk-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bulk-buttons .btn {
    padding: 8px 16px;
    font-size: 0.9em;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1000px; /* Ensure table doesn't get too cramped */
}

.admin-table th,
.admin-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--gray);
    white-space: nowrap;
}

/* Specific column widths for better layout */
.admin-table th:nth-child(1), /* Checkbox */
.admin-table td:nth-child(1) {
    width: 40px;
    text-align: center;
}

.admin-table th:nth-child(2), /* ID */
.admin-table td:nth-child(2) {
    width: 80px;
}

.admin-table th:nth-child(3), /* Username */
.admin-table td:nth-child(3) {
    width: 150px;
}

.admin-table th:nth-child(4), /* Email */
.admin-table td:nth-child(4) {
    width: 200px;
}

.admin-table th:nth-child(5), /* Role */
.admin-table td:nth-child(5) {
    width: 100px;
}

.admin-table th:nth-child(6), /* Reports */
.admin-table td:nth-child(6) {
    width: 80px;
    text-align: center;
}

.admin-table th:nth-child(7), /* Registered */
.admin-table td:nth-child(7) {
    width: 120px;
}

.admin-table th:nth-child(8), /* Status */
.admin-table td:nth-child(8) {
    width: 100px;
}

.admin-table th:nth-child(9), /* Actions */
.admin-table td:nth-child(9) {
    width: 180px;
    text-align: right;
    white-space: nowrap;
}

.admin-table th {
    background-color: var(--gray);
    color: var(--purple);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-table td {
    color: var(--text-gray);
}

.admin-table tr:hover {
    background-color: var(--gray);
}

/* Action buttons in table */
.admin-table .btn-sm {
    padding: 6px 12px;
    font-size: 0.85em;
    margin: 0 4px;
    min-width: 60px;
}

.role-badge {
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 600;
}

.role-badge.owner {
    background-color: rgba(231, 76, 60, 0.2);
    color: var(--danger);
}

.role-badge.admin {
    background-color: rgba(243, 156, 18, 0.2);
    color: var(--warning);
}

.role-badge.premium {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

.role-badge.user {
    background-color: rgba(155, 89, 182, 0.2);
    color: var(--purple);
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Report UI Styles */
.report-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(168, 85, 247, 0.2);
}

.report-header h2 {
    font-size: 1.8em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #a855f7 0%, #e879f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.report-description {
    color: #999;
    font-size: 0.95em;
    margin: 0;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.label-icon {
    margin-right: 8px;
    font-size: 1.1em;
}

.input-modern,
.select-modern,
.textarea-modern {
    background: rgba(26, 26, 46, 0.6);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    padding: 14px 16px;
    color: white;
    font-size: 1em;
    width: 100%;
    transition: all 0.3s ease;
}

.input-modern:focus,
.select-modern:focus,
.textarea-modern:focus {
    outline: none;
    border-color: #a855f7;
    background: rgba(26, 26, 46, 0.8);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
    transform: translateY(-2px);
}

.input-hint {
    display: block;
    color: #888;
    font-size: 0.85em;
    margin-top: 6px;
}

.btn-modern {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-modern:hover::before {
    width: 300px;
    height: 300px;
}

.btn-icon {
    margin-right: 10px;
    font-size: 1.2em;
}

/* Premium Box Styling */
.premium-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-image-slice: 1;
    position: relative;
}

.premium-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

.premium-features {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.feature-badge {
    flex: 1;
    min-width: 150px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    color: #e879f9;
    font-size: 0.9em;
    font-weight: 500;
}

.feature-icon {
    display: block;
    font-size: 1.8em;
    margin-bottom: 6px;
}

.input-premium,
.select-premium {
    border-color: rgba(102, 126, 234, 0.5);
}

.input-premium:focus,
.select-premium:focus {
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.btn-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.file-input-modern {
    background: rgba(26, 26, 46, 0.6);
    border: 2px dashed rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    padding: 20px;
    color: white;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input-modern:hover {
    border-color: #a855f7;
    background: rgba(26, 26, 46, 0.8);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.api-status-section {
    margin-top: 30px;
}

.api-status-section h3 {
    color: var(--purple);
    margin-bottom: 15px;
}

.api-status-grid {
    display: grid;
    gap: 15px;
}

.api-status-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background-color: var(--gray);
    border-radius: 8px;
}

.status-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.success {
    background-color: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.status-indicator.error {
    background-color: var(--danger);
    box-shadow: 0 0 10px var(--danger);
}

.status-text.success {
    color: var(--success);
}

.logs-container {
    background-color: var(--black);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.9em;
}

.log-item {
    padding: 10px;
    border-bottom: 1px solid var(--gray);
    display: flex;
    gap: 15px;
}

.log-item:last-child {
    border-bottom: none;
}

.log-time {
    color: var(--light-gray);
    min-width: 180px;
}

.log-level {
    min-width: 80px;
    font-weight: bold;
}

.log-level.info {
    color: var(--purple);
}

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

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

.log-message {
    color: var(--text-gray);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--dark-gray);
    border: 2px solid var(--purple);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2em;
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--purple);
}

.modal-content h2 {
    color: var(--purple);
    margin-bottom: 25px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.modal-actions button {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    /* Login/Register Forms */
    .login-box, .register-box {
        padding: 25px;
        max-width: 100%;
        margin: 10px;
    }
    
    /* Grids */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Filters */
    .filters-section {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    /* History */
    .history-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .results-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Admin */
    .admin-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    /* Tables */
    .data-table {
        font-size: 14px;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: 14px;
        min-height: 44px; /* Touch-friendly */
    }
    
    .btn-sm {
        padding: 8px 16px;
        font-size: 12px;
        min-height: 36px;
    }
    
    /* Forms */
    input, textarea, select {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px;
    }
    
    /* Profile Dropdown */
    .profile-dropdown {
        right: 10px;
    }
    
    /* Main Content */
    .main-content {
        padding: 15px;
    }
    
    /* Cards */
    .stat-card, .action-card {
        padding: 15px;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .login-box, .register-box {
        padding: 20px;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Slide Up Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

/* Pulse Animation for Buttons */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.btn:active {
    animation: pulse 0.3s ease;
}

/* Glow Effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(155, 89, 182, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(155, 89, 182, 0.6);
    }
}

.action-card:hover {
    animation: glow 2s infinite;
}

/* Smooth Page Transitions */
.main-content {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Card Hover Effects */
.stat-card, .action-card, .activity-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Link Transitions */
a {
    transition: all 0.3s ease;
}

/* Button Scale on Click */
.btn:active {
    transform: scale(0.95);
}

/* Nav Menu Animations */
.nav-menu a {
    position: relative;
    overflow: hidden;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--purple);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

/* Form Input Focus Animation */
input:focus, textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

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

.loading {
    border: 3px solid var(--gray);
    border-top: 3px solid var(--purple);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
