:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #10b981;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --gray-light: #e2e8f0;
    --danger: #ef4444;
    --warning: #f59e0b;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --rounded-sm: 0.25rem;
    --rounded: 0.5rem;
    --rounded-lg: 1rem;
    --rounded-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    color: var(--dark);
    background-color: #f1f5f9;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
   background-color:rgb(88, 88, 249);
    color: white;	
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
}	

.log {
    display: flex;
    align-items: center;
    margin: 0px;
}

.log img {
    height: 40px;
    margin-right: 10px;
    object-fit: cover;
    position: relative;
    top: 2px;
    filter: drop-shadow(0 0 3px rgb(255, 255, 255));
}

.log a span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: bolder;
    background: linear-gradient(to right,#aa00ff,#0015ff,#1b9400, #ffae00, #ff0000, #ffae00, #1b9400, #0015ff, #aa00ff);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}

@keyframes animate-gradient {
    to {
        background-position: 200%;
    }
}

.log a {
    text-decoration: none;
    color: white;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 1rem;
    font-weight: bold;
}

.nav-links a:hover {
    text-decoration: underline;
    color: aqua;
}

@media (min-width: 300px) and (max-width:370px) {
    .nav-links a{
        font-size: small;
        margin: 0 0 0 10px;
    }
    
    .site-header {
        padding: 5px 10px;
    }
}



.seo-section {
  max-width: 960px;
  margin: 40px auto;
  padding: 30px 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
  font-size: 1rem;
  color: #212529;
}

.seo-section h2 {
  font-size: 1.8rem;
  color: #4361ee;
  margin-bottom: 20px;
  border-bottom: 2px solid #4361ee;
  padding-bottom: 10px;
}

.seo-section h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #3f37c9;
}

.seo-section p {
  margin-bottom: 15px;
}

.seo-section ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.seo-section ul li {
  margin-bottom: 10px;
}

.seo-section ol {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
}

.seo-section ol li {
  margin-bottom: 10px;
}

.seo-section strong {
  color: #4361ee;
}

.seo-section a {
  color: #3f37c9;
  text-decoration: underline;
}

.seo-section a:hover {
  text-decoration: none;
}




.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.6s ease-out;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.75rem;
}

.logo i {
    font-size: 2rem;
}

.tagline {
    color: var(--gray);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Input Card */
.card {
    background: white;
    border-radius: var(--rounded-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-body {
    padding: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
}

.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: var(--rounded);
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.input-field::placeholder {
    color: var(--gray);
}

.select-field {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--rounded);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Results Card */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: white;
    border-radius: var(--rounded);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.result-label {
    font-size: 0.875rem;
    color: var(--gray);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.result-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
}

.result-value.primary {
    color: var(--primary);
}

.result-value.secondary {
    color: var(--secondary);
}

/* Chart */
.chart-container {
    height: 300px;
    margin-top: 2rem;
    position: relative;
}

/* Breakdown Table */
.breakdown-card {
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out;
}

.table-container {
    overflow-x: auto;
    border-radius: var(--rounded);
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

tr:hover {
    background-color: #f5f7ff;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: var(--rounded-full);
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--primary);
    color: white;
}

/* Footer */
footer {
    text-align: center;
    padding:0 40px 20px 40px;
    color: var(--gray);
    font-size: 0.875rem;
    border-top: 1px solid var(--gray-light);
}

footer p a {
    text-decoration: none;
    font-weight: bold;
    color: cornflowerblue;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.toggle-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: var(--transition);
    border-radius: var(--rounded-full);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: var(--primary);
}

input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

/* Dark Mode (optional) */
.dark body {
    background-color: #0f172a;
    color: #e2e8f0;
}

.dark .card,
.dark .result-card {
    background-color: #1e293b;
    border-color: #334155;
}

.dark .card-header {
    border-color: #334155;
}

.dark .card-title,
.dark .input-label,
.dark .result-value {
    color: #f8fafc;
}

.dark .input-field {
    background-color: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.dark th {
    background-color: #1e293b;
    color: #94a3b8;
}

.dark tr:hover {
    background-color: #1e293b;
}

/* Responsive Breakpoints */
/* Tablet (768px and up) */
@media (min-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

/* Laptop (1024px and up) */
@media (min-width: 1024px) {
    .container {
        padding: 2rem;
    }
}

/* Small devices (phones, 600px and down) */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    .logo {
        font-size: 1.5rem;
        gap: 0.5rem;
    }

    .logo i {
        font-size: 1.75rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .card-header,
    .card-body {
        padding: 1.25rem;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .result-card {
        padding: 1rem;
    }

    .result-value {
        font-size: 1.5rem;
    }

    .chart-container {
        height: 250px;
    }
}

/* Extra small devices (phones, 400px and down) */
@media (max-width: 400px) {
    .container {
        padding: 0.75rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .card-body {
        padding: 1rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .input-field {
        padding: 0.75rem;
    }

    .btn {
        padding: 0.875rem 1rem;
    }
}