.shiny_header {
    position: relative;
    overflow: hidden;
}

.shiny_header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.6),
            transparent);
    transform: skewX(-25deg);
    animation: shineLight 6s infinite;
    pointer-events: none;
}

@keyframes shineLight {
    0% {
        left: -100%;
    }

    50% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.ai-section {
    padding: 3rem 0;
    width: 100%;
    background: #fff;
}

.ai-container {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .ai-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .ai-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .ai-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .ai-container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .ai-container {
        max-width: 1320px;
    }
}

.ai-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0px 5px 10px -3px rgba(0, 0, 0, 0.41);
    -webkit-box-shadow: 0px 5px 10px -3px rgba(0, 0, 0, 0.41);
    -moz-box-shadow: 0px 5px 10px -3px rgba(0, 0, 0, 0.41);
    overflow: hidden;
}

.ai-header {
    background-color: #16a34a;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .ai-header {
        padding: 1.5rem;
    }
}

.ai-title {
    font-size: 16px;
    font-weight: bold;
    font-family: "Hind Siliguri", sans-serif;
    color: #ffffff;
    display: flex;
    align-items: center;
    margin: 0;
}

.ai-icon-emoji {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.ai-badge {
    background-color: #22c55e;
    font-size: 0.75rem;
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid #4ade80;
}

.ai-body {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .ai-body {
        padding: 2rem;
    }
}

.ai-description {
    font-size: 16px;
    font-weight: normal;
    font-family: "Hind Siliguri", sans-serif;
    color: #101828;
    margin-bottom: 1.5rem;
    margin-top: 0;
    line-height: 1.5;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-wrapper {
    margin-bottom: 1rem;
}

.ai-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #101828;
    margin-bottom: 0.5rem;
    font-family: "Hind Siliguri", sans-serif;
}

.ai-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    font-family: "Hind Siliguri", sans-serif;
    font-size: 16px;
    color: #101828;
    box-sizing: border-box;
}

.ai-textarea:focus {
    box-shadow: 0 0 0 2px #16a34a;
    border-color: #16a34a;
}

.btn-container {
    display: flex;
    justify-content: flex-end;
}

.btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.ai-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    min-width: 160px;
    font-family: "Hind Siliguri", sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #008732;
    background-color: #fff;
    border: 1px solid #008732;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 166, 62, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.ai-btn:hover {
    background-color: #008732;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 166, 62, 0.4);
    color: #fff;
}

.ai-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 166, 62, 0.3);
}

.btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.ai-btn:hover .btn-icon {
    transform: scale(1.2) rotate(10deg);
}

.ai-btn:hover .btn_txt {
    color: #fff;
}

.loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}

.hidden {
    display: none !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ai-response-area {
    margin-top: 1.5rem;
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 0.75rem;
    padding: 1.5rem;
    position: relative;
}

.ai-response-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0.25rem;
    height: 100%;
    background-color: #22c55e;
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}

.ai-response-title {
    font-size: 16px;
    font-weight: bold;
    font-family: "Hind Siliguri", sans-serif;
    color: #166534;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.response-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

.ai-response-text {
    font-size: 16px;
    font-weight: normal;
    font-family: "Hind Siliguri", sans-serif;
    color: #101828;
    line-height: 1.625;
    white-space: pre-wrap;
    margin: 0;
}

.hidden {
    display: none;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #16a34a;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ai-file-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 14px;
    font-family: "Hind Siliguri", sans-serif;
    color: #101828;
    background-color: #ffffff;
    box-sizing: border-box;
}

.ai-textarea:focus {
    box-shadow: 0 0 0 2px #16a34a;
    border-color: #16a34a;
}

.ai-response-area {
    margin-top: 1.5rem;
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 0.75rem;
    padding: 1.5rem;
    position: relative;
}

.ai-response-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 0.25rem;
    height: 100%;
    background-color: #22c55e;
    border-top-left-radius: 0.75rem;
    border-bottom-left-radius: 0.75rem;
}

.ai-response-title {
    font-size: 16px;
    font-weight: bold;
    font-family: "Hind Siliguri", sans-serif;
    color: #166534;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.response-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
}

.ai-response-text {
    font-size: 16px;
    font-weight: normal;
    font-family: "Hind Siliguri", sans-serif;
    color: #101828;
    line-height: 1.625;
    white-space: pre-wrap;
    margin: 0;
}

.hidden {
    display: none;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #16a34a;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}