/* style.css */
:root {
    --primary-dark: #1b4332;
    --primary: #2d6a4f;
    --primary-light: #40916c;
    --accent: #52b788;
    --light: #d8f3dc;
    --white: #ffffff;
    --black: #081c15;
    --gray: #95d5b2;
    --border: #b7e4c7;
    --text-dark: #081c15;
    --text-light: #f8f9fa;
    --shadow: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --header-bg: #2d6a4f;
    --footer-bg: #1b4332;
    --sidebar-bg: #f8f9fa;
    --ads-bg: #f1f8f5;
}

.dark-mode {
    --primary-dark: #0f2921;
    --primary: #1c3b2e;
    --primary-light: #2a5946;
    --accent: #3a7860;
    --light: #152b22;
    --white: #1a1f2c;
    --black: #d8f3dc;
    --gray: #2a4d3c;
    --border: #2a5946;
    --text-dark: #d8f3dc;
    --text-light: #f8f9fa;
    --shadow: rgba(0, 0, 0, 0.3);
    --card-bg: #1c3b2e;
    --header-bg: #1c3b2e;
    --footer-bg: #0f2921;
    --sidebar-bg: #152b22;
    --ads-bg: #152b22;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body {
    background-color: var(--light);
    color: var(--text-dark);
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* Remove text decoration from all a tags */
a {
    text-decoration: none;
}

/* Header Styles */
header {
    background-color: var(--header-bg);
    color: var(--text-light);
    padding: 1rem;
    box-shadow: 0 2px 10px var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-light);
    padding: 6px 10px;
    border-radius: 6px;
    transition: background-color 0.2s;
    font-size: 0.9rem;
}

.nav-menu a:hover {
    background-color: var(--primary-light);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 160px;
    box-shadow: 0 8px 16px var(--shadow);
    z-index: 1;
    border-radius: 6px;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 12px 16px;
    display: block;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background-color: var(--light);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary-light);
    color: var(--text-light);
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.lang-options {
    display: none;
    position: absolute;
    right: 0;
    background-color: var(--white);
    min-width: 140px;
    box-shadow: 0 8px 16px var(--shadow);
    z-index: 1;
    border-radius: 6px;
    overflow: hidden;
}

.lang-options a {
    color: var(--text-dark);
    padding: 10px 14px;
    display: block;
    text-align: left;
    font-size: 0.9rem;
}

.lang-options a:hover {
    background-color: var(--light);
}

.language-selector:hover .lang-options {
    display: block;
}

/* Theme Toggle */
.theme-toggle {
    margin-left: 10px;
}

.toggle-btn {
    background: var(--primary-light);
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

/* Main Container - FULL WIDTH */
.main-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    width: 100%;
}

/* Sidebar Styles */
.sidebar {
    background-color: var(--sidebar-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px var(--shadow);
    width: 100%;
}

.sidebar h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    font-size: 1.2rem;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s;
    font-size: 0.95rem;
}

.sidebar a:hover {
    background-color: var(--accent);
    color: var(--white);
}

.ads {
    background-color: var(--ads-bg);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    border: 1px dashed var(--primary);
    font-size: 0.9rem;
}

/* Content Area - FULL WIDTH */
.content {
    background-color: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px var(--shadow);
    width: 100%;
}

.card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px var(--shadow);
    border: 1px solid var(--border);
}

/* Hero Section */
.hero-section h2 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.hero-section p {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 1rem;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1rem;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 16px;
    background-color: var(--white);
    color: var(--text-dark);
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 140px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--accent);
    color: var(--white);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--primary-light);
}

/* Fancy Text Results */
.fancy-text-results {
    margin-top: 30px;
}

.fancy-text-results h3 {
    color: var(--primary-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    font-size: 1.3rem;
}

.fancy-text-item {
    background-color: var(--light);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
    scroll-margin-top: 100px;
}

.fancy-text-preview {
    font-size: 1.2rem;
    margin-bottom: 10px;
    padding: 10px;
    background-color: var(--white);
    border-radius: 6px;
    min-height: 50px;
    display: flex;
    align-items: center;
    overflow-x: auto;
}

.fancy-text-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-icon {
    padding: 8px 12px;
    font-size: 14px;
    flex: 1;
    min-width: 120px;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 15px;
}

/* Footer Styles - FULL WIDTH */
footer {
    background-color: var(--footer-bg);
    color: var(--text-light);
    padding: 2rem 1rem;
    text-align: center;
    width: 100%;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: left;
}

.footer-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--text-light);
    transition: color 0.2s;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--primary-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.footer-bottom a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 12px var(--shadow);
    display: none;
    z-index: 1000;
    max-width: 300px;
}

.toast.show {
    display: block;
    animation: fadeIn 0.5s, fadeOut 0.5s 2.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsive Design */
@media (min-width: 768px) {
    .main-container {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar {
        width: calc(50% - 10px);
    }
    
    .content {
        width: 100%;
    }
    
    .footer-content {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .footer-section {
        flex: 1;
        min-width: 200px;
    }
    
    .footer-bottom {
        flex-direction: row;
        gap: 15px;
    }
}

@media (min-width: 992px) {
    .main-container {
        flex-wrap: nowrap;
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .sidebar-left {
        width: 280px;
        order: 1;
    }
    
    .content {
        width: calc(100% - 580px);
        order: 2;
    }
    
    .sidebar-right {
        width: 280px;
        order: 3;
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 8px 12px;
    }
    
    .lang-btn, .toggle-btn {
        font-size: 1rem;
        padding: 8px 12px;
    }
    
    .footer-content {
        max-width: 1400px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    header {
        flex-wrap: wrap;
    }
    
    .logo {
        margin-bottom: 10px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--header-bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 12px var(--shadow);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .theme-toggle, .language-selector {
        margin: 5px 0;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .fancy-text-actions {
        flex-direction: column;
    }
    
    .btn-icon {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .hero-section h2 {
        font-size: 1.3rem;
    }
    
    .sidebar h3 {
        font-size: 1.1rem;
    }
    
    .fancy-text-results h3 {
        font-size: 1.1rem;
    }
    
    .fancy-text-preview {
        font-size: 1rem;
    }
    
    .toast {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}