body {
    font-family: 'Inter', sans-serif;
}
.calculator-card-item {
    background-color: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.calculator-card-item: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);
}
.calculator-card-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}
 .calculator-card-item p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    flex-grow: 1;
}
.nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}
.nav-link.active {
    background-color: #4f46e5;
    color: white;
}
.nav-link:not(.active):hover {
    background-color: #e0e7ff;
}
.form-input, .form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}
.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}
.calc-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #4f46e5;
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.calc-button:hover {
    background-color: #4338ca;
}
.gemini-button {
    margin-top: 1rem;
    background-color: #10b981;
}
.gemini-button:hover {
    background-color: #059669;
}
.gemini-button:disabled {
    background-color: #6ee7b7;
    cursor: not-allowed;
}
.result-box {
    background-color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1.5rem;
    text-align: center;
    word-wrap: break-word;
}
.gemini-result {
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    text-align: left;
}
.gemini-result h4 {
    font-weight: 600;
    color: #065f46;
    margin-bottom: 0.5rem;
}
.gemini-result p {
    font-size: 0.9rem;
    line-height: 1.4;
}
.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid #fff;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
#search-container {
    position: relative;
}
#search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}
#search-calculator {
    padding-left: 3rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 1.125rem;
}
.category-header {
    cursor: pointer;
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
    transition: background-color 0.2s ease;
}
.category-header:hover {
    background-color: #f9fafb;
}
.category-content {
    max-height: 2000px; /* Adjust as needed */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, margin-top 0.5s ease-in-out;
}
.category-container.collapsed .category-content {
    max-height: 0;
    margin-top: 0 !important;
}
.toggle-icon {
    transition: transform 0.3s ease;
}
.category-container.collapsed .toggle-icon {
     transform: rotate(-90deg);
}
.calculator-card-page {
    background-color: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
