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

.container {
    flex: 1;
    max-width: 1400px;
}

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

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

.tool-page-header {
    margin-bottom: 20px;
}

.tool-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.tool-page-desc {
    color: #666;
    font-size: 1rem;
}

.tool-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.tool-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
    box-sizing: border-box;
}

.tool-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}

.tool-output {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    background: #f8f9fa;
    resize: vertical;
    box-sizing: border-box;
}

.tool-output:focus {
    border-color: #007bff;
    background: #fff;
}

.btn-tool {
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 500;
}

.btn-copy {
    background: #28a745;
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.btn-copy:hover {
    background: #218838;
}

.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
}

.jumbotron .btn-primary {
    background: white;
    color: #667eea;
    border: none;
}

.jumbotron .btn-primary:hover {
    background: #f0f0f0;
    color: #764ba2;
}

footer {
    margin-top: auto;
}

.nav-item a {
    font-weight: 500;
}

.nav-item a:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

section h2 {
    font-size: 1.5rem;
}
section .card-title {
    font-size: 1.1rem;
}
section .card-text {
    font-size: 0.9rem;
    color: #666;
}