:root {
    --primary-color: #2563eb;
    --secondary-color: #06bcf9;
    --danger-color: #dc2626;
    --warning-color: #d97706;
    --success-color: #059669;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    background-color: #f1f5f9;
    color: var(--dark-color);
    line-height: 1.6;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-buttons {
    display: flex;
    gap: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Dashboard Styles */
.dashboard {
    padding: 2rem 0;
}

.dashboard h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--dark-color);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}


.tool-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
              0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Default icon color (gray) */
.tool-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #06bcf9;
}

/* Change icon color when parent card is hovered */
.tool-card:hover .tool-icon {
  color: var(--primary-color);
}




.tool-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/* Tool Page Styles */
.tool-page {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.tool-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.tool-header h2 {
    font-size: 1.8rem;
    color: var(--dark-color);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007bff;
    text-decoration: none;
    margin-bottom: 20px;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background-color: #f8f9fa;
    text-decoration: none;
    color: #0056b3;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.input-group textarea {
    min-height: 120px;
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
}

.loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

 .results-container {
    display: none;
    margin-top: 2rem;
}

.chart-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Login Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 400px;
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    color: var(--dark-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-page {
        padding: 1.5rem;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    margin-top: auto;
    border-top: 1px solid #2d3748;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 3rem 0 2rem;
}

.footer-section:first-child {
    max-width: 300px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    /* -webkit-text-fill-color: transparent; */
    background-clip: text;
}

.footer-description {
    color: #cbd5e0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #cbd5e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #0060df;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 96, 223, 0.3);
}

.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, #0060df, #004db5);
    border-radius: 2px;
}

.links {
    text-decoration: underline;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '▸';
    color: #0060df;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    transform: translateX(3px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #2d3748;
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    color: #a0aec0;
    font-size: 0.9rem;
    margin: 0;
}

.footer-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #cbd5e0;
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-item i {
    color: #0060df;
    font-size: 0.9rem;
}

/* Security Badge */
.security-badge {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 96, 223, 0.1);
    border: 1px solid rgba(0, 96, 223, 0.3);
    color: #0060df;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    animation: pulse 2s infinite;
}

.badge-content i {
    font-size: 0.9rem;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 96, 223, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 96, 223, 0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-section:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        max-width: none;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-stats {
        justify-content: center;
    }
    
    .security-badge {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .badge-content {
        font-size: 0.7rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .footer {
        background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    }
}

/* Print styles */
@media print {
    .footer {
        display: none;
    }
    
    .security-badge {
        display: none;
    }
}


/* Navigation Styles */
.main-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-bottom: 1px solid #2d3748;;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

/* Logo Section */
.logo-section {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 4rem;
    height: 4rem;
    display: flex;
    font-size: 1.25rem;
}

.logo-text {
    line-height: 1.2;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: #cbd5e0;
    margin: 0;
    font-weight: 500;
}

/* Main Navigation */
.main-nav {
    flex: 1;
    margin: 0 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-link i {
    font-size: 1rem;
    width: 1rem;
    text-align: center;
    color: #e2e8f0;
}

/* Dropdown Menu */
/* .dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
}

.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
    color: #e2e8f0;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a2e;
    border: 1px solid #2d3748;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    min-width: 500px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 2rem;
    width: 12px;
    height: 12px;
    background: #1a1a2e;
    border-left: 1px solid #2d3748;
    border-top: 1px solid #2d3748;
    transform: rotate(45deg);
}

.dropdown-column {
    flex: 1;
}

.dropdown-column h4 {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0060df;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    text-decoration: none;
    color: #e2e8f0;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
}

.dropdown-link:hover {
    background: rgba(0, 96, 223, 0.2);
    color: #ffffff;
    transform: translateX(5px);
}

.dropdown-link i {
    width: 1rem;
    text-align: center;
    color: #0060df;
} */

/* Auth Section */
.auth-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn {
    
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-outline {
    background: transparent;
    border: 1px solid #0060df;
    color: #0060df;
}

.btn-outline:hover {
    background: #0060df;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 96, 223, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #0060df, #004db5);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 96, 223, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: #e2e8f0;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* ensure full viewport height */
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999; /* make sure it's above everything else */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    position: fixed; /* change from absolute */
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh; /* full height */
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* scroll if content exceeds height */
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
}

.mobile-nav.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #2d3748;
}

.mobile-logo i {
    color: #0060df;
    font-size: 1.25rem;
}

.mobile-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
}

.mobile-nav-links {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #4a5568;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(0, 96, 223, 0.05);
    color: #0060df;
    border-left-color: #0060df;
}

.mobile-nav-link i {
    width: 1.25rem;
    text-align: center;
}

.mobile-nav-group {
    border-bottom: 1px solid #e2e8f0;
}

.mobile-nav-submenu {
    padding-left: 2rem;
}

.mobile-nav-link.sublink {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.mobile-auth-buttons {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== RESPONSIVE MEDIA QUERIES ===== */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-section:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .dual-column-container {
        flex-direction: column;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        flex-direction: column;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .dual-column-container {
        gap: 30px;
    }
    
    .cta-matrix {
        padding: 40px 20px;
    }
    
    .cta-matrix h2 {
        font-size: 1.8rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        max-width: none;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-stats {
        justify-content: center;
    }
    
    .security-badge {
        bottom: 1rem;
        right: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 40px 0;
    }
    
    .service-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .badge-content {
        font-size: 0.7rem;
        padding: 0.5rem 0.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-btn-primary, .cta-btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
}

/* Prevent horizontal scrolling */
html, body {
    /* overflow-x: hidden;
    max-width: 100%; */
    scroll-behavior: smooth;
    
}
