body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.hero-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 2rem;
}

.tool-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.feature-box {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
    height: 100%;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    border: none;
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

footer {
    margin-top: auto;
}

.font-monospace {
    font-family: 'Courier New', monospace;
}

pre {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    max-height: 400px;
    overflow: auto;
}

code {
    color: #e83e8c;
}

.alert {
    border-radius: 8px;
}

.btn {
    border-radius: 6px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.form-control, .form-select {
    border-radius: 6px;
}

.tool-icon i {
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-icon i {
    transform: scale(1.1);
}
/* Default Light Mode */
body {
    background: #ffffff;
    color: #111;
    transition: 0.3s ease;
}

/* Dark Mode */
body.dark {
    background: #121212;
    color: #e0e0e0;
}

/* Dark Mode for containers */
.container, .box {
    transition: 0.3s ease;
}

body.dark .container, body.dark .box {
    background: #1e1e1e;
    color: #e0e0e0;
}

/* Theme Button */
.theme-btn {
    position: fixed;
    top: 15px;
    right: 20px;
    font-size: 22px;
    background: none;
    border: none;
    cursor: pointer;
}

/* Footer styles */
.site-footer { font-size: 14px; }
.site-footer .footer-link { color: #ddd; text-decoration: none; }
.site-footer .footer-link:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-social { margin-right: 8px; color: #ddd; font-size: 1.1rem; }
.site-footer .footer-social:hover { color: #fff; }

/* theme: dark mode body.dark rules (if you use 'dark' class) */
body.dark {
    background: #0f1724;
    color: #e6eef8;
}
body.dark .card { background: #0b1220; color: #e6eef8; border-color: rgba(255,255,255,0.04); }
body.dark .site-footer { background: #07101c; color: #c9d7ea; }

