/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header - Full Width */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: #4285f4;
}

.logo img {
    height: auto;
    width: auto;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #4285f4;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}

/* Main Content Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Page Title and Subtitle */
h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #333;
    font-size: 2.2rem;
}

.subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Converter Box */
.converter-box {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Tabs */
.tab-container {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.tab {
    padding: 12px 20px;
    cursor: pointer;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s ease;
}

.tab.active {
    color: #4285f4;
    border-bottom-color: #4285f4;
}

.tab:hover {
    color: #4285f4;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Form Elements */
textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 15px;
}

textarea:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

/* Statistics */
.stats {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    color: #666;
    font-size: 14px;
    flex-wrap: wrap;
}

/* Controls */
.controls {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.controls > div {
    display: flex;
    gap: 10px;
}

/* Buttons */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

button:not(.secondary) {
    background: #4285f4;
    color: white;
}

button:not(.secondary):hover {
    background: #3367d6;
}

button.secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

button.secondary:hover {
    background: #e9ecef;
}

/* Font Selector */
.font-selector {
    margin-bottom: 15px;
}

.font-selector label {
    font-weight: 500;
    margin-right: 10px;
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-container input {
    margin-right: 10px;
}

/* Preview Control */
.preview-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.preview-control input[type="range"] {
    flex-grow: 1;
}

/* Output Container */
.output-container {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 20px;
    min-height: 100px;
    background: #fff;
    margin-bottom: 20px;
    word-break: break-word;
    line-height: 1.5;
}

.wingdings-output {
    font-family: Wingdings, sans-serif;
}

.wingdings-2-output {
    font-family: "Wingdings 2", sans-serif;
}

.webdings-output {
    font-family: Webdings, sans-serif;
}

/* Reference Chart */
.reference-chart {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    display: none;
}

.reference-chart.visible {
    display: block;
}

.reference-chart h3 {
    margin-bottom: 20px;
    color: #333;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.chart-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.chart-item:hover {
    background-color: #f8f9fa;
}

.chart-symbol {
    font-size: 24px;
    margin-bottom: 8px;
}

.chart-code {
    font-size: 12px;
    color: #666;
}

/* Copy Message */
.copy-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    display: none;
    z-index: 1000;
}

/* Content Sections */
h2 {
    /* Base styling */
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 20px 0;
    padding: 20px;
    
    

}

h3 {
    color: #333;
    margin: 30px 0 15px 0;
    font-size: 1.3rem;
}

p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
   
}

/* Footer - Full Width */
.site-footer {
    background: #ffffff;
    color: #000000;
    padding: 40px 0;
    margin-top: 60px;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-links a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4285f4;
}

.separator {
    color: #666;
}

.footer-copyright {
    color: #999;
    font-size: 14px;
}

.footer-copyright a {
    color: #4285f4;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #5a9df7;
}

/* Mobile Menu Styles */
.nav-menu.mobile-active {
    display: flex !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 1px solid #eee;
    gap: 15px;
}

.nav-menu.mobile-active a {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.nav-menu.mobile-active a:last-child {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
        position: relative;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .container {
        padding: 15px;
    }
    
    .converter-box {
        padding: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .controls > div {
        justify-content: center;
    }
    
    .stats {
        justify-content: center;
        text-align: center;
    }
    
    .chart-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .converter-box {
        padding: 15px;
    }
    
    .tab {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .chart-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats {
        flex-direction: column;
        gap: 10px;
    }
}