:root {
    --bg-color: #0f1624;
    --card-bg: #1a2332;
    --card-hover: #212c3f;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --neon-color: #00e5ff;
    --neon-alt-color: #f953c6;
    --button-color: #2d2d2d;
    --highlight-color: rgba(0, 229, 255, 0.1);
    --danger-color: #ff3547;
    --success-color: #00c853;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    --gradient-bg: linear-gradient(135deg, #1a2332 0%, #131b29 100%);
    --gradient-accent: linear-gradient(90deg, var(--neon-color), var(--neon-alt-color));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-image: radial-gradient(circle at 10% 20%, rgba(0, 229, 255, 0.05) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(249, 83, 198, 0.05) 0%, transparent 20%);
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 900px;
    margin-bottom: 30px;
}

/* Adjust the spacing to move input area higher */
.app-header {
    margin-bottom: 20px; /* Reduced from likely 40px or more */
    padding-top: 20px;   /* Reduced padding */
}

/* Make the Gaali Detector heading smaller */
.app-header h1 {
    font-size: 2.2rem; /* Reduced from likely 3rem or more */
    margin-bottom: 10px; /* Reduced bottom margin */
}

/* Reduce spacing between elements */
.card {
    margin-bottom: 20px; /* Reduced from 30px */
}

/* Reduce padding in input container */
.input-container {
    padding: 15px; /* Reduced from 20px */
    gap: 15px;     /* Reduced from 20px */
}

/* Make textarea slightly smaller */
textarea {
    height: 120px; /* Reduced from 150px */
}

/* Reduce spacing in result container */
.result-container {
    margin-top: 15px; /* Reduced from 20px */
}

.app-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    position: relative;
}

.logo {
    font-size: 3rem;
    margin-bottom: 15px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.app-header h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    font-weight: 700;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Remove text shadow from neon text */
.neon-text {
    color: rgba(0, 200, 225, 0.8);
    text-shadow: none;
}

.neon-text-alt {
    color: rgba(200, 50, 180, 0.8);
    text-shadow: none;
}

.light-theme .neon-text {
    color: rgba(0, 100, 200, 0.9);
    text-shadow: none;
}

.light-theme .neon-text-alt {
    color: rgba(200, 30, 120, 0.9);
    text-shadow: none;
}

/* Make the header text smaller */
.app-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.card {
    background: var(--gradient-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--neon-color);
}

.card-header h3 {
    font-weight: 600;
    margin: 0;
}

.input-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

textarea {
    width: 100%;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    color: var(--text-color);
    font-size: 1rem;
    resize: none;
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--neon-color);
    border-color: var(--neon-color);
}

.button-container {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.glow-button, .secondary-button {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
}

.glow-button {
    background-color: var(--neon-color);
    color: #000;
    border: none;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.glow-button:hover {
    background-color: #33eaff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.6);
    transform: translateY(-2px);
}

.secondary-button {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.result-container {
    margin-top: 20px;
}

#resultBox {
    background: var(--gradient-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease, opacity 0.5s ease;
}

#resultBox.hidden {
    display: none;
    opacity: 0;
}

.result-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.result-header i {
    font-size: 1.5rem;
    color: var(--neon-alt-color);
}

.result-header h2 {
    font-weight: 600;
    margin: 0;
}

#resultContent {
    margin: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
}

.safe {
    background-color: rgba(0, 200, 83, 0.1);
    border-left: 4px solid var(--success-color);
}

.abusive {
    background-color: rgba(255, 53, 71, 0.1);
    border-left: 4px solid var(--danger-color);
}

#highlightedText {
    margin: 0 20px 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    line-height: 1.6;
}

.highlight {
    background-color: rgba(255, 53, 71, 0.3);
    padding: 2px 4px;
    border-radius: 3px;
    color: #fff;
}

.info-section {
    margin-top: 40px;
}

.info-card {
    background: var(--gradient-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card i {
    font-size: 2rem;
    color: var(--neon-color);
    margin-bottom: 15px;
}

.info-card h3 {
    margin-bottom: 15px;
    font-weight: 600;
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

footer {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: auto;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.footer-logo {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo i {
    color: var(--neon-color);
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--neon-color);
}

@media (max-width: 768px) {
    .app-header h1 {
        font-size: 2.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .button-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .app-header h1 {
        font-size: 2rem;
    }
    
    .card-header, .result-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Add these styles at the top of your CSS file, after the :root section */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    padding: 15px 20px;
    z-index: 1000;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-color);
    background: rgba(10, 15, 25, 0.7);
    padding: 8px 15px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.site-logo i {
    color: var(--neon-color);
}

/* Adjust the body padding to account for the fixed header */
body {
    padding-top: 60px;
}

/* Review section styles - properly outside body */
.review-section {
    margin-top: 40px;
}

.review-card {
    background: var(--gradient-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
}

.review-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.review-header i {
    font-size: 1.5rem;
    color: var(--neon-alt-color);
}

.review-header h3 {
    font-weight: 600;
    margin: 0;
}

.reviews-container {
    padding: 20px;
}

.review-item {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.review-item:last-child {
    margin-bottom: 0;
}

.review-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 10px;
}

.review-author i {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.review-author span {
    font-weight: 500;
}

.rating {
    margin-left: auto;
}

.rating i {
    color: #FFD700;
    font-size: 0.9rem;
}

.review-item p {
    margin: 0;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
}

/* Add this for review date */
.review-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 8px;
    text-align: right;
}

/* Add these styles for the review form */
.review-form-container {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--neon-color);
    border-color: var(--neon-color);
}

.star-rating {
    display: flex;
    gap: 5px;
    font-size: 1.5rem;
    cursor: pointer;
}

.star-rating i {
    color: #FFD700;
    transition: all 0.2s ease;
}

.star-rating i:hover {
    transform: scale(1.2);
}

.reviews-container h4 {
    margin: 0 0 15px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-color);
}

.empty-reviews {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}
/* Theme toggle button styles */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
}

.theme-toggle button {
    background: rgba(10, 15, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.theme-toggle button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: var(--neon-color);
}

/* Light theme variables */
:root.light-theme {
    --bg-color: #f5f7fa;
    --gradient-bg: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
    --text-color: #333;
    --text-secondary: #666;
    --neon-color: #0066cc;
    --neon-alt-color: #ff6b6b;
    --success-color: #00c853;
    --danger-color: #ff3547;
    --border-radius: 12px;
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

/* Adjust some elements for light theme */
.light-theme .card,
.light-theme .review-card,
.light-theme .info-card,
.light-theme #resultBox {
    background: var(--gradient-bg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.light-theme .site-logo,
.light-theme .theme-toggle button {
    background: rgba(245, 247, 250, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.light-theme textarea,
.light-theme .form-group input[type="text"],
.light-theme .form-group textarea,
.light-theme .review-item,
.light-theme #highlightedText {
    background-color: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme footer {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Add notification styles */
.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

/* Improve notification styles */
.notification {
    background: var(--gradient-bg);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    animation: slide-in 0.3s ease;
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 280px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding-right: 10px;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
    transition: color 0.2s ease;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.notification-close:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.notification.fade-out {
    opacity: 0;
    transform: translateX(30px);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification.success i {
    color: var(--success-color);
}

.notification.error i {
    color: var(--danger-color);
}

.notification.info i {
    color: var(--neon-color);
}

@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Add transition to body and all elements for smooth theme switching */
body, * {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease, 
                box-shadow 0.3s ease,
                background 0.3s ease;
}

/* Adjust the site header transition to be smoother */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    transition: all 0.4s ease;
}

/* Make theme toggle button transition smoother */
.theme-toggle button {
    background: rgba(10, 15, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1.2rem;
    transition: all 0.4s ease, transform 0.2s ease;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}