/* Converter Tools Page Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

h2 {
    color: #2c3e50;
    margin-top: 30px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
}

h3 {
    color: #3498db;
    margin-top: 20px;
}

h4 {
    color: #2c3e50;
    margin-top: 15px;
    margin-bottom: 10px;
}

.converter-section {
    margin-bottom: 40px;
}

.category-description {
    margin-bottom: 30px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.tool-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.tool-item {
    flex: 1;
    min-width: 300px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tool-item a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.tool-item a:hover {
    background-color: #2980b9;
}

.navigation-links {
    margin: 20px 0;
    padding: 10px;
    background-color: #f0f7fc;
    border-left: 4px solid #3498db;
    border-radius: 3px;
}

.navigation-links a {
    text-decoration: none;
    color: #3498db;
    margin-right: 10px;
    padding: 5px;
    transition: color 0.3s;
}

.navigation-links a:hover {
    color: #2980b9;
    text-decoration: underline;
}

code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f8f8f8;
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid #e1e1e1;
    font-size: 0.9em;
}

.example {
    background-color: #f8f8f8;
    padding: 15px;
    border-left: 4px solid #3498db;
    margin: 15px 0;
}

.note {
    background-color: #fff8dc;
    padding: 15px;
    border-left: 4px solid #f0ad4e;
    margin: 15px 0;
}

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

#back-to-top:hover {
    opacity: 1;
}

/* Input/Output styles for tool pages */
.input-group, .output-group {
    margin-bottom: 20px;
}

.input-group label, .output-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.input-group textarea, .output-group textarea {
    width: 100%;
    min-height: 150px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    resize: vertical;
}

.buttons {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.buttons button, #copyBtn {
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.buttons button:hover, #copyBtn:hover {
    background-color: #2980b9;
}

#clearBtn {
    background-color: #e74c3c;
}

#clearBtn:hover {
    background-color: #c0392b;
}

#copyBtn {
    margin-top: 5px;
}

.explanation {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .tool-list {
        flex-direction: column;
    }

    .tool-item {
        min-width: auto;
    }

    .buttons {
        flex-direction: column;
    }

    .buttons button, #copyBtn {
        width: 100%;
        margin-bottom: 5px;
    }
}