* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.main-header {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;
}

.navbar.navbar-dark .navbar-nav .nav-link:hover,
.navbar.navbar-dark .navbar-nav .nav-link:focus,
.navbar.navbar-dark .navbar-nav .nav-link.active {
    color: #e0e0ff !important;
}

.navbar .dropdown-menu {
    background-color: #3f51b5;
    border: none;
    border-radius: 0.25rem;
}

.navbar .dropdown-item {
    color: #ffffff;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: #e0e0ff;
    background-color: rgba(255, 255, 255, 0.1);
}

.ad-banner-top {
    border-bottom: 1px solid #dee2e6;
}

.ad-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 5px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.ad-placeholder-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 5px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.search-container {
    max-width: 600px;
    margin: 30px auto;
}

.tools-section {
    padding: 40px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    color: #333;
}

.tool-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.tool-card h5 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.tool-card p {
    color: #666;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 15px;
}

.tool-card .btn {
    margin-top: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: opacity 0.3s ease;
}

.tool-card .btn:hover {
    opacity: 0.9;
}

.tool-page-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.tool-box {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.tool-box h2 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #333;
}

.form-control, .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    opacity: 0.9;
}

.result-box {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
    margin-top: 20px;
    min-height: 100px;
}

.result-box h4 {
    color: #667eea;
    margin-bottom: 15px;
}

.ad-sidebar {
    margin-top: 40px;
}

.ad-sidebar .ad-placeholder {
    margin-bottom: 20px;
}

.page-content {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 40px auto;
    max-width: 900px;
}

.page-content h1 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.page-content h2 {
    color: #333;
    margin-top: 30px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.page-content h3 {
    color: #555;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.page-content p {
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.8;
}

.page-content ul, .page-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.page-content li {
    margin-bottom: 10px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .tool-card {
        margin-bottom: 20px;
    }
    
    .tool-box {
        padding: 25px;
    }
    
    .page-content {
        padding: 25px;
    }
}

