* {
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.converter-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
}

.tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.tab-btn.active {
    color: #3498db;
    border-bottom: 3px solid #3498db;
    font-weight: bold;
}

.converter-panel {
    display: none;
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.converter-panel.active {
    display: block;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

input[type="text"], select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.input-hint {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 5px;
}

.conversion-options {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.conversion-options label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: normal;
}

.conversion-options input[type="checkbox"] {
    margin-right: 8px;
}

.conversion-options select {
    width: auto;
    display: inline-block;
    margin-left: 8px;
    padding: 8px 12px;
}

.convert-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin: 15px 0;
    transition: background 0.3s;
}

.convert-btn:hover {
    background: #2980b9;
}

.examples {
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

.examples h3 {
    margin-top: 0;
    color: #2c3e50;
    font-size: 16px;
}

.examples ul {
    padding-left: 20px;
    margin: 10px 0;
}

.examples li {
    margin-bottom: 5px;
}

.number-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.number-table th, .number-table td {
    padding: 8px 12px;
    text-align: center;
    border: 1px solid #ddd;
}

.number-table th {
    background-color: #f1f1f1;
    font-weight: 500;
}

@media (max-width: 768px) {
    .converter-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-bottom: none;
        border-left: 3px solid #3498db;
    }
    
    .number-table {
        font-size: 14px;
    }
    
    .number-table th, .number-table td {
        padding: 6px 8px;
    }
}