/* Global Styles */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

/* Header Styles */
.header {
    background-color: #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    padding: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #000;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.logo-container {
    width: 180px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: transparent;
    margin-right: 1.5rem;
}

.site-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.2));
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 0.5rem;
}

.site-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

.site-tagline {
    font-size: 0.85rem;
    color: #fff;
    margin: 0;
    font-weight: 400;
    line-height: 1.2;
    opacity: 0.9;
}

/* Navigation Styles */
.navbar {
    padding: 0;
    background-color: #000;
}

.navbar-light {
    background-color: #000 !important;
}

.navbar-light .navbar-toggler {
    background-color: #fff;
    border-color: #fff;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: #fff;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #4a90e2;
}

.dropdown-menu {
    background-color: #000;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    color: #fff;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: #333;
    color: #4a90e2;
}

/* Footer Styles */
.footer {
    background-color: #000;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand .tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #4a90e2;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: #4a90e2;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #4a90e2;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-brand {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .logo-container {
        width: 150px;
        height: 50px;
        margin: 0 auto;
    }

    .brand-text {
        text-align: center;
        margin-left: 0;
    }

    .site-title {
        font-size: 1.1rem;
    }

    .site-tagline {
        font-size: 0.8rem;
    }

    .navbar {
        margin-top: 1rem;
    }

    .footer {
        text-align: center;
    }

    .footer-brand,
    .footer-links,
    .footer-contact {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .logo-container {
        width: 120px;
        height: 40px;
    }
}

/* Tool Container Styles */
.tool-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.tool-header {
    text-align: center;
    margin-bottom: 3rem;
}

.tool-header h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.tool-header p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

/* Ad Section Styles */
.ad-section {
    margin: 2rem 0;
    padding: 1rem;
    background-color: var(--light-gray);
    border-radius: 4px;
}

.ad-container {
    text-align: center;
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #357abd;
    border-color: #357abd;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Tool Card Styles */
.tool-card {
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    box-shadow: var(--card-shadow);
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-card .card-body {
    padding: 1.5rem;
}

.tool-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.tool-card .card-text {
    color: var(--secondary-color);
}

/* Search Bar Styles */
#toolSearch {
    border-radius: 25px;
    padding: 10px 20px;
}

.input-group .btn {
    border-radius: 0 25px 25px 0;
}

/* Category Button Styles */
.category-btn {
    border-radius: 20px;
    padding: 8px 16px;
    margin: 5px;
}

.category-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Ad Container Styles */
.ad-container {
    min-height: 90px;
    background-color: #f1f1f1;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tool-card {
        margin-bottom: 15px;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}

/* Animation for tool cards */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    animation: fadeIn 0.5s ease-out;
}

/* Tool Page Side Banners */
.tool-page-container {
    display: flex;
    gap: 20px;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 15px;
}

.tool-side-banner {
    width: 160px;
    min-height: 600px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 100px;
}

.tool-main-content {
    flex: 1;
    min-width: 0;
}

@media (max-width: 1200px) {
    .tool-side-banner {
        display: none;
    }
    
    .tool-page-container {
        padding: 0;
    }
} 