:root {
    --black: #000000;
    --white: #ffffff;
    --dark-gray: #1a1a1a;
    --medium-gray: #555555;
    --light-gray: #dddddd;
    --border-gray: rgba(255, 255, 255, 0.1);
    --background-light: rgba(255, 255, 255, 0.05);
    --background-dark: #111111;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--white);
    background: var(--background-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--background-dark), var(--black));
    z-index: -1;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.nav-logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: transparent;
    border: 1px solid transparent;
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
    color: var(--white);
    border-color: var(--white);
    outline: none;
}

.dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle i,
.nav-item.dropdown:focus-within .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    min-width: 220px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-gray);
    border-radius: 0.5rem;
    display: none;
    flex-direction: column;
    padding: 0.5rem 0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu {
    display: flex;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-link i {
    color: var(--white);
}

.dropdown-link:hover {
    color: var(--white);
    padding-left: 1.5rem;
    background: var(--background-light);
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--white);
    border-color: var(--white);
}

.nav-donate-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    margin-left: 1rem; /* Add some spacing */
}

.nav-donate-btn:hover {
    background: var(--white);
    color: var(--black);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.3);
}

.card-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-gray);
    padding-bottom: 1rem;
}

.card-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.card-header p {
    color: var(--light-gray);
    font-size: 1.1rem;
}

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

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.card-icon-small {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.fas, .fab {
    transition: transform 0.3s ease, color 0.3s ease;
}

a:hover .fas, a:hover .fab, button:hover .fas, button:hover .fab {
    transform: scale(1.2);
    color: var(--light-gray);
}

.mt-1 {
    margin-top: 1rem;
}


/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--white);
    transition: all 0.3s ease;
}

.floating-label .form-control {
    padding-top: 1.5rem;
}

.floating-label .form-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    pointer-events: none;
    color: var(--medium-gray);
}

.floating-label .form-control:focus + .form-label,
.floating-label .form-control:not(:placeholder-shown) + .form-label {
    top: 0.5rem;
    left: 1rem;
    font-size: 0.8rem;
    color: var(--white);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-gray);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-gray);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--background-light);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

.btn-success {
    border-color: #ffffff;
    color: #ffffff;
}

.btn-success:hover {
    background: #ffffff;
    color: var(--black);
}

.btn-outline {
    border-color: var(--white);
    color: var(--white);
}

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

/* Progress Bar */
.progress-container {
    margin: 1.5rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--white);
    border-radius: 4px;
    transition: width 0.4s ease-in-out;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: var(--light-gray);
    margin-top: 0.5rem;
}

/* Results */
.result-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border-left: 4px solid var(--white);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.result-title {
    font-weight: 600;
    color: var(--white);
}

/* Security Badges */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid;
}

.badge-low {
    border-color: #aaaaaa;
    color: #aaaaaa;
}

.badge-medium {
    border-color: #cccccc;
    color: #cccccc;
}

.badge-high {
    border-color: var(--white);
    color: var(--white);
}

/* File Upload */
.file-upload {
    border: 2px dashed var(--border-gray);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
}

.file-upload:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.file-upload.dragover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.file-input {
    display: none;
}

.upload-icon {
    font-size: 3rem;
    color: var(--light-gray);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.file-upload:hover .upload-icon {
    color: var(--white);
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    border: 1px solid var(--border-gray);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

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

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    border-left: 4px solid;
    background: rgba(255, 255, 255, 0.1);
}

.alert-success {
    border-color: #ffffff;
    color: #ffffff;
}

.alert-error {
    border-color: var(--white);
    color: var(--white);
}

.alert-warning {
    border-color: #cccccc;
    color: #cccccc;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-gray);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: var(--light-gray);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-gray);
    color: var(--light-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-item.dropdown {
        width: 100%;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-top: 1px solid var(--border-gray);
        padding: 2rem 0;
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: center;
        border-color: var(--border-gray);
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        background: var(--background-light);
        border: 1px solid var(--border-gray);
        border-radius: 0.5rem;
        margin-top: 0.75rem;
        box-shadow: none;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .card-header h1 {
        font-size: 2rem;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

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

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

.blurry {
    filter: blur(5px);
    pointer-events: none;
}


/* Submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
}

.dropdown-submenu:hover .dropdown-menu {
    display: flex;
}

.dropdown-submenu .dropdown-toggle i.fa-chevron-right {
    transition: transform 0.3s ease;
}

.dropdown-submenu:hover .dropdown-toggle i.fa-chevron-right {
    transform: rotate(180deg);
}

@media (max-width: 768px) {
    .dropdown-submenu .dropdown-menu {
        left: 0;
        margin-top: 0.75rem;
        padding-left: 1rem;
    }
    .dropdown-submenu:hover .dropdown-toggle i.fa-chevron-right {
        transform: rotate(90deg);
    }
}

/* Adblocker detection styles */
#adblock-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

#adblock-canvas {
    width: 80%;
    height: 80%;
}

/* Input Group for Copy Button */
.input-group {
    position: relative;
    display: flex;
    width: 100%;
    align-items: stretch;
}

.input-group .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group .form-control:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group .btn {
    position: relative;
    z-index: 2;
}

.input-group .btn:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin-left: -1px;
}