/* Calculator.net Style CSS */

:root {
    --header-blue: #1e4a72;
    --bg-light: #e8e8e8;
    --calculator-bg: #f0f0f0;
    --button-bg: #ffffff;
    --button-hover: #e0e0e0;
    --operator-bg: #4682b4;
    --equals-bg: #ff6b35;
    --text-color: #333;
    --border-color: #ccc;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    line-height: 1.4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.main-header {
    background-color: var(--header-blue);
    color: white;
    padding: 15px 0;
    box-shadow: var(--shadow);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

/* Top Section Layout */
.top-section {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.calculator-wrapper {
    flex: 0 0 auto;
}

/* Scientific Calculator */
.scientific-calculator {
    background: var(--calculator-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: var(--shadow);
    display: inline-block;
}

.calculator-display {
    background: var(--header-blue);
    color: white;
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
}

.display-screen {
    padding: 15px;
    text-align: right;
    font-size: 24px;
    font-weight: bold;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 3px;
    width: 100%;
    max-width: 600px;
    min-width: 500px;
}

.calc-btn {
    padding: 8px 4px;
    border: 1px solid var(--border-color);
    background: var(--button-bg);
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s ease;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    outline: none;
}

.calc-btn:hover {
    background: var(--button-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.calc-btn:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.calc-btn.operator {
    background: var(--operator-bg);
    color: white;
}

.calc-btn.equals {
    background: var(--equals-bg);
    color: white;
}

.calc-btn.function {
    background: #f8f8f8;
}

.calc-btn.number {
    font-weight: bold;
}

.calc-btn.memory {
    background: #ffe4b5;
}

.calc-btn.clear {
    background: #ffcccb;
}

/* Radio buttons for Deg/Rad */
.angle-mode {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    font-size: 11px;
    background: var(--button-bg);
    border: 1px solid var(--border-color);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.angle-mode:hover {
    background: var(--button-hover);
}

.angle-mode input[type="radio"] {
    margin-right: 3px;
}

/* Search Section */
.search-section {
    flex: 1;
    min-width: 250px;
}

.search-section h2 {
    color: var(--header-blue);
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.search-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.search-box button {
    padding: 8px 20px;
    background: var(--operator-bg);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.search-box button:hover {
    background: #357abd;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.category-image {
    height: 120px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-placeholder {
    font-size: 48px;
    color: #999;
    opacity: 0.5;
}

.category-card h3 {
    padding: 15px 20px 10px;
    color: var(--header-blue);
    font-size: 16px;
    font-weight: bold;
    margin: 0;
}

.calculator-links {
    list-style: none;
    padding: 0 20px 20px;
    margin: 0;
}

.calculator-links li {
    margin-bottom: 5px;
}

.calculator-links a {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
}

.calculator-links a:hover {
    text-decoration: underline;
    color: #0052a3;
}

/* Header Navigation Styles */
.header-nav {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand a:hover {
    color: #0056b3;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-icon span {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 3px 0;
    transition: 0.3s;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 2rem;
}

.menu > li > a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.menu > li > a:hover,
.menu > li > a:focus {
    color: var(--primary-color);
    background: var(--light-color);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-trigger {
    cursor: pointer;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 0.375rem;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin: 0;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content li {
    margin: 0;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: #495057;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Search Box in Header */
.search-item {
    margin-left: 1rem;
}

.search-item .search-box {
    display: flex;
    border: 2px solid #e9ecef;
    border-radius: 0.375rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search-item .search-box:focus-within {
    border-color: var(--primary-color);
}

.search-item input {
    border: none;
    padding: 0.5rem;
    outline: none;
    width: 200px;
}

.search-item button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-item button:hover {
    background: #0056b3;
}


/* Calculator Cards */
.calculator-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 100%;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.calculator-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.calculator-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #212529;
}

.calculator-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    flex-grow: 1;
}

.calculator-card .card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Category Sections */
.category-section {
    background: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.category-section h3 {
    color: #212529;
    font-weight: 600;
}

/* Search Styles */
.search-container .input-group {
    box-shadow: var(--shadow);
    border-radius: 0.5rem;
    overflow: hidden;
}

.search-container .form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
}

.search-container .btn {
    border: none;
    padding: 0.75rem 1.5rem;
}

/* Tool Page Styles */
.tool-container {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin: 2rem 0;
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.tool-header h1 {
    color: #212529;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tool-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-calculate {
    background: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-calculate:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.result-container {
    background: var(--light-color);
    border-radius: 0.375rem;
    padding: 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid var(--success-color);
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.result-label {
    color: #6c757d;
    font-size: 1rem;
}

/* Ad Placeholders */
.ad-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    color: #6c757d;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Simple Footer Styles */
.simple-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: 3rem;
    padding: 1.5rem 0;
}

.simple-footer .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.simple-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.simple-footer .footer-bottom p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

.simple-footer .footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.simple-footer .footer-links a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.simple-footer .footer-links a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    
    .footer-links:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .top-section {
        flex-direction: column;
        align-items: center;
    }
    
    .calculator-wrapper {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .scientific-calculator {
        margin: 0 auto;
    }
    
    .search-section {
        width: 100%;
        max-width: 600px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .calculator-buttons {
        min-width: 500px;
        font-size: 10px;
    }
    
    .calc-btn {
        font-size: 10px;
        padding: 6px 2px;
        min-height: 30px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-card h3 {
        font-size: 14px;
        padding: 10px 15px 8px;
    }
    
    .calculator-links {
        padding: 0 15px 15px;
    }
    
    .calculator-links a {
        font-size: 12px;
    }
    
    /* Mobile Menu */
    .menu-icon {
        display: flex;
    }
    
    .menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 2rem 1rem;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }
    
    .menu-toggle:checked ~ .menu {
        left: 0;
    }
    
    .menu > li {
        width: 100%;
    }
    
    .menu > li > a {
        padding: 1rem;
        border-bottom: 1px solid #e9ecef;
    }
    
    .dropdown-content {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8f9fa;
        margin-top: 0.5rem;
        display: none;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .search-item {
        width: 100%;
        margin: 1rem 0;
    }
    
    .search-item .search-box {
        width: 100%;
    }
    
    .search-item input {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0 10px;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .calculator-wrapper {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .category-image {
        height: 80px;
    }
    
    .search-section h2 {
        font-size: 18px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 5px;
    }
    
    .search-box input,
    .search-box button {
        width: 100%;
    }
}


@media (max-width: 576px) {
    .search-container .input-group {
        flex-direction: column;
    }
    
    .search-container .form-control {
        border-radius: 0.375rem;
        margin-bottom: 0.5rem;
    }
    
    .search-container .btn {
        border-radius: 0.375rem;
    }
    
    .result-value {
        font-size: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .symbols-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .symbol-item .symbol {
        font-size: 2rem;
    }
    
    .symbol-item .symbol-name {
        font-size: 0.75rem;
    }
    
    .why-choose-section .section-title {
        font-size: 1.5rem;
    }
    
    /* Simple footer responsive */
    .simple-footer .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .simple-footer .footer-links {
        justify-content: center;
    }
}

/* Cursor Styles */
* {
    cursor: default;
}

button, 
input[type="button"], 
input[type="submit"], 
input[type="reset"],
.calc-btn,
.btn,
.button,
a,
label[for],
.dropdown-trigger,
.menu-icon,
.angle-mode {
    cursor: pointer !important;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    cursor: text !important;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    cursor: text !important;
}

.disabled,
:disabled {
    cursor: not-allowed !important;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* Calculators Directory Page Styles */
.page-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.calculators-directory {
    padding: 3rem 0;
}

.calculator-category {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    padding: 2rem;
}

.category-title {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.category-title i {
    font-size: 2rem;
    margin-right: 1rem;
}

.category-title .financial {
    color: var(--success-color);
}

.category-title .health {
    color: var(--danger-color);
}

.category-title .math {
    color: var(--info-color);
}

.category-title .other {
    color: var(--warning-color);
}

.category-title h2 {
    color: #212529;
    font-weight: 600;
    margin: 0;
}

.category-description {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.calculators-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.calculator-group {
    background: var(--light-color);
    border-radius: 0.375rem;
    padding: 1.5rem;
}

.calculator-group h3 {
    color: #495057;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.calculator-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.calculator-group li {
    margin-bottom: 0.75rem;
}

.calculator-group a {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    color: #495057;
    text-decoration: none;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    background: #fff;
    border: 1px solid #e9ecef;
}

.calculator-group a:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.calculator-group a i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}


/* Form Layout Styles */
.tool-main {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-column {
    flex: 1;
}

.form-column-offset {
    margin-left: 50%;
}

.input-group {
    display: flex;
    border: 2px solid #e9ecef;
    border-radius: 0.375rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--primary-color);
}

.input-prefix, .input-suffix {
    background: var(--light-color);
    border: none;
    padding: 0.75rem;
    color: #495057;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.input-group .form-control {
    border: none;
    flex: 1;
}

.form-select {
    border: none;
    background: #fff;
    padding: 0.75rem;
    min-width: 80px;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-clear {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-clear:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Advanced Options */
.advanced-options {
    margin: 1.5rem 0;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
}

.advanced-header {
    background: var(--light-color);
}

.advanced-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    color: #495057;
    transition: background 0.3s ease;
}

.advanced-toggle:hover {
    background: #e9ecef;
}

.advanced-content {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

/* Info Cards */
.info-section {
    margin: 3rem 0;
}

.info-card {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.info-header {
    background: var(--light-color);
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.info-header h3 {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

.info-content {
    padding: 1.5rem;
}

.info-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-content h4 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

.info-content ul {
    padding-left: 1.5rem;
}

.info-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.info-table th,
.info-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.info-table th {
    background: var(--light-color);
    font-weight: 600;
    color: #495057;
}

.info-table .underweight {
    background: rgba(23, 162, 184, 0.1);
}

.info-table .normal {
    background: rgba(40, 167, 69, 0.1);
}

.info-table .overweight {
    background: rgba(255, 193, 7, 0.1);
}

.info-table .obese {
    background: rgba(220, 53, 69, 0.1);
}

/* Alert Styles */
.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.2);
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 1rem;
    color: #0c5460;
}

.alert-info i {
    margin-right: 0.5rem;
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: var(--shadow) !important;
}

.shadow-lg-custom {
    box-shadow: var(--shadow-lg) !important;
}

/* Financial Calculators Page Styles */
.financial-calculators-page {
    background: #fff;
    min-height: 100vh;
}

.financial-calculators-page .container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Calculator columns layout */
.calculator-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.calculator-column {
    flex: 1;
}

/* Breadcrumb */
.breadcrumb {
    grid-column: 1 / -1;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Page Title */
.page-title {
    grid-column: 1 / -1;
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
}

.page-description {
    grid-column: 1 / -1;
    color: #666;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Calculator Categories */
.calculator-categories {
    grid-column: 1;
}

.calculator-section {
    margin-bottom: 2.5rem;
}

.calculator-section h2 {
    color: #333;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.calculator-list {
    list-style: none;
    padding: 0;
    margin: 0;
    column-count: 2;
    column-gap: 2rem;
}

.calculator-list li {
    margin-bottom: 0.5rem;
    break-inside: avoid;
}

.calculator-list a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.5;
}

.calculator-list a:hover {
    text-decoration: underline;
    color: #0052a3;
}

/* Search Section */
.calculator-search-section {
    grid-column: 1;
    margin: 2rem 0;
}

.calculator-search-section .search-box {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
}

.calculator-search-section input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.9rem;
}

.calculator-search-section button {
    padding: 0.5rem 1.5rem;
    background: #4682b4;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.calculator-search-section button:hover {
    background: #357abd;
}

/* Sidebar */
.calculator-sidebar {
    grid-column: 2;
    grid-row: 3 / span 3;
}

.sidebar-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-section h3 {
    color: #333;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sidebar-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-links li {
    margin-bottom: 0.5rem;
}

.sidebar-links a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.85rem;
}

.sidebar-links a:hover {
    text-decoration: underline;
}

/* Sidebar Tabs */
.sidebar-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-tabs a {
    display: block;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    color: #495057;
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.2s;
}

.sidebar-tabs a:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.sidebar-tabs a.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* Responsive */
@media (max-width: 992px) {
    .financial-calculators-page .container {
        grid-template-columns: 1fr;
    }
    
    .calculator-sidebar {
        grid-column: 1;
        grid-row: auto;
        order: -1;
    }
    
    .calculator-list {
        column-count: 1;
    }
}

@media (max-width: 576px) {
    .calculator-section h2 {
        font-size: 1.1rem;
    }
    
    .calculator-list a {
        font-size: 0.85rem;
    }
    
    .calculator-search-section .search-box {
        flex-direction: column;
    }
    
    .calculator-search-section input,
    .calculator-search-section button {
        width: 100%;
    }
}
