:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

[data-bs-theme="dark"] {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #5a5c69;
    --dark-color: #f8f9fc;
}

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] body {
    background-color: #2a3042;
    color: #f8f9fc;
}

/* Header & Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .navbar {
    background-color: #343a40 !important;
}

.logo-text {
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

.nav-link:hover, .nav-link:focus {
    background-color: rgba(78, 115, 223, 0.1);
}

.theme-toggle {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--dark-color);
}

[data-bs-theme="dark"] .theme-toggle {
    color: var(--light-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(78, 115, 223, 0.1) 0%, rgba(28, 200, 138, 0.1) 100%);
}

/* Tool Cards */
.tool-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 0.5rem;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.bg-primary-light { background-color: rgba(78, 115, 223, 0.1); }
.bg-success-light { background-color: rgba(28, 200, 138, 0.1); }
.bg-danger-light { background-color: rgba(231, 74, 59, 0.1); }
.bg-warning-light { background-color: rgba(246, 194, 62, 0.1); }
.bg-info-light { background-color: rgba(54, 185, 204, 0.1); }
.bg-secondary-light { background-color: rgba(133, 135, 150, 0.1); }

/* How to Use Section */
.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ Section */
.accordion-button:not(.collapsed) {
    background-color: rgba(78, 115, 223, 0.1);
    color: var(--primary-color);
}

/* Footer */
footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .logo-text {
        font-size: 1.5rem;
    }
    
    .hero-section .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-section .btn:last-child {
        margin-bottom: 0;
    }
}