/* css/common.css - Shared base styles (no tool-specific styles) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* Header and Navigation Styles (shared) */
.site2info-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site2info-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site2info-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    padding: 20px 0;
}

.site2info-logo span {
    color: #3498db;
}

.site2info-nav-menu {
    display: flex;
    list-style: none;
}

.site2info-nav-item {
    position: relative;
}

.site2info-nav-link {
    display: block;
    padding: 20px 15px;
    color: #34495e;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.site2info-nav-link:hover,
.site2info-nav-link.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.site2info-mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2c3e50;
}

/* Container (shared) */
.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Page header styles (shared) */
.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5eb;
}

.page-header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.page-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Tool wrapper (shared layout) */
.tool-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.input-container,
.output-container {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

.section-title {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-size: 1.5rem;
}

/* Input group (shared) */
.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: white;
    resize: vertical;
    min-height: 200px;
}

textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Button groups (shared) */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.btn {
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 600;
    letter-spacing: 0.5px;
    flex: 1;
    text-align: center;
}

.btn-primary {
    background-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-success {
    background-color: #27ae60;
}

.btn-success:hover {
    background-color: #219a52;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-warning {
    background-color: #f39c12;
}

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-dark {
    background-color: #2c3e50;
}

.btn-dark:hover {
    background-color: #1a252f;
}

/* Result boxes (shared) */
.result-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #3498db;
}

.result-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Action buttons in output */
.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Info section (shared) */
.info-section {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.info-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.info-card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-size: 1.5rem;
}

.info-card h3 {
    color: #2c3e50;
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.info-card ul, .info-card ol {
    margin-left: 20px;
    color: #5a6268;
}

.info-card li {
    margin-bottom: 8px;
}

/* FAQ styles (shared) */
.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #e1e5eb;
    padding-bottom: 15px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: #3498db;
}

.faq-answer {
    color: #5a6268;
    padding-left: 20px;
    border-left: 3px solid #3498db;
    margin-top: 10px;
    display: none;
}

.faq-answer.show {
    display: block;
}

/* Method box (shared) */
.method-box {
    background-color: #f1f9ff;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.step-number {
    display: inline-block;
    background-color: #3498db;
    color: white;
    border-radius: 30px;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 28px;
    font-weight: bold;
    margin-right: 10px;
}

/* Footer (shared) */
.footer-note {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5eb;
}

/* Status messages (shared) */
.status-success {
    color: #27ae60;
    font-weight: bold;
}

.status-error {
    color: #e74c3c;
    font-weight: bold;
}

/* Responsive (shared) */
@media (max-width: 992px) {
    .site2info-mobile-toggle {
        display: block;
    }

    .site2info-nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .site2info-nav-menu.active {
        left: 0;
    }

    .site2info-nav-item {
        width: 100%;
    }

    .site2info-nav-link {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
}

@media (max-width: 768px) {
    .tool-wrapper {
        flex-direction: column;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .button-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }

    .info-section {
        grid-template-columns: 1fr;
    }
    
    .output-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    
    .output-header .action-buttons {
        width: 100%;
        display: flex;
        flex-direction: row !important;
        justify-content: space-between;
        gap: 10px;
    }
    
    .output-header .action-buttons .btn {
        flex: 1;
        margin: 0;
        white-space: nowrap;
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .input-container,
    .output-container {
        padding: 20px;
    }

    .site2info-header-container {
        padding: 0 15px;
    }
    
    .output-header .action-buttons {
        flex-direction: column !important;
    }
    
    .output-header .action-buttons .btn {
        width: 100%;
    }
}


/*For Mobile Menu Responsive */

/* Mobile menu icon toggle */
.menu-icon {
    cursor: pointer;
    font-size: 1.5rem;
    color: #2c3e50;
    display: block;
}

#menuToggle:checked + .menu-icon .fa-bars {
    display: none;
}

#menuToggle:checked + .menu-icon .fa-times {
    display: inline-block !important;
}

@media (max-width: 992px) {
    #menuToggle:checked ~ .site2info-nav-menu {
        left: 0;
    }
}

