/* Base Variables */
:root {
    --primary-color: #3498db;
    --accent-color: #2980b9;
    --background-color: #f5f7fa;
    --text-color: #2c3e50;
    --card-bg: #ffffff;
    --success-color: #2ecc71;
    --header-footer-border: 1px solid #e2e8f0;
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Content Container */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    flex: 1;
}

.list{
margin-left: 1.5rem;

}
/* Header Styles */
header.site-header {
    background-color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-bottom: var(--header-footer-border);
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
    top: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    flex: 0 0 auto;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-container h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #ff7b25, #2e9d80);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientText 8s ease infinite;
    background-size: 200% 200%;
    display: inline-block;
    text-align: left;
}

.logo-container .subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin: 5px 0 0 0;
    text-align: left;
    display: block;
}

@keyframes gradientText {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* AI Badge */
.ai-badge {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
}

.pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4fc3a1;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 195, 161, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(79, 195, 161, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 195, 161, 0);
    }
}

/* Navigation */
.main-nav {
    margin-top: 0.5rem;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Main Content Styling */
.container header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.description {
    margin-bottom: 30px;
    text-align: center;
}

.converter-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    font-weight: 600;
}

button:hover {
    background-color: var(--accent-color);
}

.result-container {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.result {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: bold;
}

.steps {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
}

.steps h3 {
    margin-top: 0;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.step {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fff;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.explanation {
    margin-top: 30px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.explanation h2 {
    color: var(--primary-color);
    margin-top: 0;
}

.error {
    color: #e74c3c;
    margin-top: 8px;
    font-size: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 12px;
    text-align: center;
}

th {
    background-color: var(--primary-color);
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

.tip {
    background-color: #e8f4fd;
    border-left: 4px solid var(--primary-color);
    padding: 12px;
    margin: 20px 0;
    font-size: 15px;
}

/* Footer Styles */
.site-footer {
    background-color: white;
    padding: 3rem 0 1.5rem;
    border-top: var(--header-footer-border);
    width: 100%;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.footer-section p {
    color: #64748b;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }
    
    .logo-container {
        max-width: 100%;
        margin-bottom: 1rem;
        align-items: center;
    }
    
    .logo-container h2 {
        text-align: center;
    }
    
    .logo-container .subtitle {
        text-align: center;
    }
    
    .header-right {
        align-items: center;
        width: 100%;
    }
    
    .nav-links {
        justify-content: center;
        margin-top: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-links li:first-child {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 0;
    }
    
    .container {
        padding: 1.5rem;
        margin: 1rem auto;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 0.5rem 0.75rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    .site-header {
        padding: 0.5rem 0;
    }
    
    .container {
        padding: 1rem;
        margin: 0.5rem auto;
        border-radius: 6px;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .logo-container h2 {
        font-size: 1.4rem;
    }

    .logo-container .subtitle {
        font-size: 0.8rem;
    }

    .ai-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    input[type="text"] {
        padding: 10px;
    }
    
    button {
        padding: 10px 16px;
    }
    
    .result, .steps {
        padding: 12px;
    }
    
    table th, table td {
        padding: 8px 5px;
        font-size: 0.9rem;
    }
    
    .tip {
        padding: 10px;
        font-size: 0.9rem;
    }
}