/* ================================================
   ENHANCED UI/UX IMPROVEMENTS - DO NOT MODIFY TOOL LOGIC
   ================================================ */

/* Global Header Styles */
.global-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

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

.global-header .logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.global-header .logo-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.global-header .logo-text {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.global-header .nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.global-header .nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.global-header .nav-menu a:hover {
    opacity: 0.8;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* Search Bar Styles */
.search-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 20px;
}

.search-results-count {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 14px;
}

.no-results-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 18px;
}

/* Back Button Styles */
.back-button-container {
    margin-bottom: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.back-button:hover {
    background: #5568d3;
    transform: translateX(-3px);
}

.back-button-icon {
    font-size: 18px;
}

/* Content Sections Styles */
.tool-content-sections {
    margin-top: 50px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 40px;
}

.content-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-section h3 {
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 12px;
    font-size: 20px;
}

.content-section p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
}

.content-section ul,
.content-section ol {
    color: #555;
    line-height: 1.8;
    padding-left: 25px;
}

.content-section li {
    margin-bottom: 10px;
}

/* FAQ Section Styles */
.faq-section {
    background: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-section h2 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

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

.faq-question {
    color: #2c3e50;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.faq-question-icon {
    color: #667eea;
    flex-shrink: 0;
    margin-top: 2px;
}

.faq-answer {
    color: #555;
    line-height: 1.8;
    padding-left: 30px;
}

/* Global Footer Styles */
.global-footer {
    background: #2c3e50;
    color: white;
    margin-top: 80px;
    padding: 50px 0 30px 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.7;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 25px;
    text-align: center;
    color: #bdc3c7;
}

.footer-bottom p {
    margin: 5px 0;
}

/* Mobile Responsive Styles */
@media (max-width: 992px) {
    .global-header .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #667eea;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .global-header .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tool-content-sections {
        padding: 25px;
    }
    
    .content-section {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .global-header .header-container {
        padding: 12px 20px;
    }
    
    .global-header .logo-text {
        font-size: 20px;
    }
    
    .global-header .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .search-container {
        margin: 25px auto;
    }
    
    .tool-content-sections {
        padding: 20px;
    }
    
    .content-section h2 {
        font-size: 20px;
    }
    
    .faq-question {
        font-size: 16px;
    }
}

/* Hide old row headers (DO NOT MODIFY GRID LAYOUT) */
.row-header {
    display: none !important;
}

/* Preserve all existing tool functionality */
.tool-card,
.tools-grid-10,
.tool-container,
.input-section,
.output-section,
.button-group,
.btn-primary,
.btn-secondary {
    /* All existing tool styles remain unchanged */
}
