.input-actions,
.suggested-questions {
    gap: .5rem;
    display: flex
}

/* .card-header i,
.chatbot-header,
.github-cta,
.input-hint,
.stats-header {
    text-align: center
} */

:root {
    --color-primary: hsl(45, 100%, 72%);
    --color-primary-light: hsla(45, 100%, 72%, 0.1);
    --color-primary-medium: hsla(45, 100%, 72%, 0.2);
    --color-primary-dark: hsl(45, 90%, 65%);
    --color-bg-dark: hsl(240, 2%, 12%);
    --color-bg-darker: hsl(240, 2%, 10%);
    --color-bg-medium: hsl(240, 2%, 15%);
    --color-text-white: #ffffff;
    --color-text-light: hsl(0, 0%, 85%);
    --color-text-medium: hsl(0, 0%, 75%);
    --color-text-dark: hsl(0, 0%, 60%);
    --color-text-darker: hsl(0, 0%, 50%);
    --color-border: hsl(0, 0%, 22%);
    --color-border-light: hsla(0, 0%, 22%, 0.3);
    --color-border-lighter: hsla(0, 0%, 30%, 0.3);
    --color-shadow: hsla(0, 0%, 0%, 0.15);
    --color-shadow-dark: hsla(0, 0%, 0%, 0.25);
    --color-success: #4CAF50;
    --color-linkedin: #0a66c2;
    --color-whatsapp: #25D366
}

#chatbot.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--color-bg-dark);
    color: var(--color-text-light)
}

.chatbot-header {
    margin-bottom: 2.5rem
}

.chatbot-header .section-title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: .5rem;
    position: relative;
    display: inline-block
}

.chatbot-header .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px
}

.chatbot-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-medium);
    max-width: 600px;
    margin: 1.5rem
}

.chatbot-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem
}

.chatbot-interface {
    background-color: var(--color-bg-medium);
    border-radius: 12px;
    box-shadow: 0 10px 25px var(--color-shadow-dark);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 600px;
    width: 70%;
    max-width: 800px;
    border: 1px solid var(--color-border)
}

.chatbot-avatar-container {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--color-bg-darker);
    border-bottom: 1px solid var(--color-border)
}

.chatbot-avatar {
    position: relative;
    margin-right: 1rem
}

.chatbot-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, .3)
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--color-bg-darker)
}

.status-indicator.online {
    background-color: var(--color-success);
    box-shadow: 0 0 5px var(--color-success)
}

.message-bubble,
.question-chip:hover {
    box-shadow: 0 2px 5px var(--color-shadow)
}

.chatbot-intro h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--color-text-white)
}

.chatbot-intro .status {
    font-size: .85rem;
    color: var(--color-text-medium);
    margin: 0
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background-color: var(--color-bg-dark);
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) var(--color-bg-dark)
}

.stat-card,
.stat-item {
    position: relative;
    overflow: hidden
}

.chat-messages::-webkit-scrollbar {
    width: 6px
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--color-bg-dark)
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 6px
}

.message {
    margin-bottom: 1.5rem;
    max-width: 80%;
    display: flex;
    flex-direction: column;
    animation: .3s ease-in-out fadeIn
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.bot-message {
    align-self: flex-start
}

.user-message,
.user-message .message-time {
    align-self: flex-end
}

.message-bubble {
    padding: .8rem 1.2rem;
    border-radius: 18px;
    position: relative
}

.bot-message .message-bubble {
    background-color: var(--color-bg-medium);
    border: 1px solid var(--color-border-light);
    border-bottom-left-radius: 4px;
    color: var(--color-text-light)
}

.user-message .message-bubble {
    background-color: var(--color-primary-dark);
    color: var(--color-bg-dark);
    border-bottom-right-radius: 4px
}

.message-time {
    font-size: .7rem;
    color: var(--color-text-darker);
    margin-top: .3rem;
    align-self: flex-start
}

.message-bubble p {
    margin: 0;
    line-height: 1.5
}

.suggested-questions {
    flex-wrap: wrap;
    margin: 1rem 0;
    animation: .5s ease-in-out fadeIn
}

.question-chip {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid var(--color-primary-medium);
    border-radius: 16px;
    padding: .5rem 1rem;
    font-size: .85rem;
    cursor: pointer;
    transition: .2s
}

.question-chip:hover {
    background-color: var(--color-primary-medium);
    transform: translateY(-1px)
}

.chat-input-container {
    padding: 1rem 1.5rem;
    background-color: var(--color-bg-darker);
    border-top: 1px solid var(--color-border)
}

.input-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--color-bg-medium);
    border-radius: 24px;
    padding: .5rem 1rem;
    transition: .3s;
    border: 1px solid var(--color-border-light)
}

.input-wrapper:focus-within {
    background-color: var(--color-bg-dark);
    box-shadow: 0 0 0 2px var(--color-primary-medium);
    border-color: var(--color-primary)
}

.input-wrapper input {
    flex: 1;
    border: none;
    background: 0 0;
    padding: .5rem 0;
    font-size: .95rem;
    color: var(--color-text-light)
}

.input-wrapper input::placeholder {
    color: var(--color-text-darker)
}

.input-wrapper input:focus {
    outline: 0
}

.send-btn,
.voice-btn {
    background: 0 0;
    border: none;
    color: var(--color-text-darker);
    font-size: 1.1rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s
}

.stat-icon,
.stat-item {
    transition: .3s;
    display: flex
}

.send-btn:hover,
.voice-btn:hover {
    background-color: var(--color-bg-medium);
    color: var(--color-text-light)
}

.send-btn:hover,
.stat-item:hover .stat-number {
    color: var(--color-primary-dark)
}

.send-btn {
    color: var(--color-primary)
}

.send-btn:hover {
    transform: scale(1.1)
}

.input-hint {
    font-size: .8rem;
    color: var(--color-text-darker);
    margin: .5rem 0 0
}

.card-header i,
.github-link i:first-child {
    font-size: 1.2rem
}


.github-stats {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    color: var(--color-text-light)
}

.stats-header {
    margin-bottom: 3rem;
    position: relative
}

.stats-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
}

.stats-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-medium);
    max-width: 600px;
    margin: 1.5rem;
    line-height: 1.6
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 3rem
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem
}

.stat-card {
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    transition: .3s
}

.stat-card:hover::before {
    opacity: 1
}

.stat-card.full-width {
    grid-column: 1/-1
}

.card-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border-light)
}

.card-header i {
    color: var(--color-primary);
    width: 24px
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-white);
    margin: 0
}

.stat-icon i,
.stat-number {
    font-size: 1.5rem;
    color: var(--color-primary)
}

.stat-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform .3s
}

.stat-card:hover img {
    transform: scale(1.02)
}

.additional-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0
}

.stat-item {
    background: var(--color-bg-medium);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    border: 1px solid var(--color-border);
    align-items: center;
    gap: 1.5rem;
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary-light);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-primary-medium)
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: .25rem
}

.stat-number {
    font-weight: 700;
    line-height: 1;
    transition: color .3s
}

.stat-label {
    font-size: .9rem;
    color: var(--color-text-medium);
    font-weight: 500
}

.github-link,
.refresh-stats-btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    transition: .3s;
    position: relative;
    overflow: hidden;
    font-size: 1.1rem;
    gap: 1rem
}

.github-link {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-bg-dark);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px var(--color-primary-light)
}

.github-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--color-primary-medium)
}

.github-link:hover::before,
.refresh-stats-btn:hover::before {
    left: 100%
}

.github-link i:last-child {
    font-size: .9rem;
    transition: transform .3s
}

.github-link:hover i:last-child {
    transform: translateX(3px)
}

.stat-number:contains("Loading") {
    position: relative;
    color: var(--color-text-darker)
}

.stat-number:contains("Loading")::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-top: 2px solid var(--color-primary);
    border-radius: 50%;
    animation: 1s linear infinite spin
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0)
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg)
    }
}

.github-link,
.stat-card,
.stat-item {
    will-change: transform
}

.github-link:focus,
.refresh-stats-btn:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px
}

.stat-item:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-light)
}

.refresh-stats-btn {
    background: var(--color-bg-medium);
    color: var(--color-text-light);
    border: 2px solid var(--color-border);
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    margin-left: 1rem
}

.refresh-stats-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--color-primary-light), transparent);
    transition: left .5s
}

.refresh-stats-btn:hover {
    background: var(--color-bg-darker);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--color-shadow-dark)
}

.refresh-stats-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px var(--color-shadow)
}

.refresh-stats-btn i {
    font-size: 1rem;
    transition: transform .3s
}

.refresh-stats-btn:hover i {
    transform: rotate(180deg);
    color: var(--color-primary)
}

.refresh-stats-btn span {
    font-weight: 500;
    letter-spacing: .5px
}

.refresh-stats-btn.loading {
    pointer-events: none;
    opacity: .7;
    background: var(--color-bg-darker);
    border-color: var(--color-primary-medium)
}

.refresh-stats-btn.loading i {
    animation: 1s linear infinite refreshSpin;
    color: var(--color-primary)
}

.refresh-stats-btn.loading span {
    color: var(--color-text-medium)
}

@keyframes refreshSpin {
    0% {
        transform: rotate(0)
    }

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

.github-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem
}



/* Personal Assistant (PA) Section Media Queries */

@media screen and (max-width: 768px) {
    #chatbot.page {
        padding: 1.5rem;
    }

    .chatbot-header .section-title {
        font-size: 2rem;
    }

    .chatbot-subtitle {
        font-size: 0.95rem;
        max-width: 450px;
    }

    .chatbot-interface {
        width: 95%;
        height: 500px;
    }

    .chatbot-avatar img {
        width: 45px;
        height: 45px;
    }

    .chatbot-intro h3 {
        font-size: 1rem;
    }

    .chatbot-intro .status {
        font-size: 0.8rem;
    }

    .message {
        max-width: 90%;
    }

    .message-bubble {
        padding: 0.7rem 1rem;
    }

    .question-chip {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .chat-input-container {
        padding: 0.8rem 1rem;
    }

    .input-wrapper {
        padding: 0.4rem 0.8rem;
    }

    .input-wrapper input {
        font-size: 0.9rem;
    }

    .send-btn,
    .voice-btn {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .input-hint {
        font-size: 0.75rem;
    }

    /* GitHub Stats */
    .stats-header {
        margin-bottom: 2rem;
    }

    .stats-title {
        font-size: 1.8rem;
    }

    .stats-subtitle {
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .card-header h3 {
        font-size: 1rem;
    }

    .additional-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-item {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 576px) {
    #chatbot.page {
        padding: 1rem;
    }

    .chatbot-header {
        margin-bottom: 2rem;
    }

    .chatbot-header .section-title {
        font-size: 1.8rem;
    }

    .chatbot-subtitle {
        font-size: 0.9rem;
        max-width: 350px;
    }

    .chatbot-interface {
        width: 100%;
        height: 450px;
        border-radius: 8px;
    }

    .chatbot-avatar-container {
        padding: 0.8rem 1rem;
    }

    .chatbot-avatar img {
        width: 40px;
        height: 40px;
    }

    .chatbot-intro h3 {
        font-size: 0.95rem;
    }

    .chatbot-intro .status {
        font-size: 0.75rem;
    }

    .chat-messages {
        padding: 1rem;
    }

    .message {
        margin-bottom: 1rem;
        max-width: 95%;
    }

    .message-bubble {
        padding: 0.6rem 0.9rem;
        font-size: 0.9rem;
    }

    .message-time {
        font-size: 0.65rem;
    }

    .suggested-questions {
        gap: 0.4rem;
        margin: 0.8rem 0;
    }

    .question-chip {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .chat-input-container {
        padding: 0.7rem 0.8rem;
    }

    .input-wrapper {
        padding: 0.35rem 0.7rem;
        border-radius: 20px;
    }

    .input-wrapper input {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }

    .send-btn,
    .voice-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .input-hint {
        font-size: 0.7rem;
    }

    /* GitHub Stats */
    .stats-title {
        font-size: 1.6rem;
    }

    .stats-subtitle {
        font-size: 0.85rem;
    }

    .stat-card {
        padding: 0.8rem;
        border-radius: 8px;
    }

    .card-header {
        margin-bottom: 0.8rem;
    }

    .card-header h3 {
        font-size: 0.9rem;
    }

    .card-header i {
        font-size: 1rem;
    }

    .stat-item {
        padding: 0.8rem;
        border-radius: 8px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .github-link {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    #chatbot.page {
        padding: 0.8rem;
    }

    .chatbot-header .section-title {
        font-size: 1.5rem;
    }

    .chatbot-subtitle {
        font-size: 0.9rem;
        max-width: 300px;
    }

    .chatbot-interface {
        height: 400px;
    }

    .chatbot-avatar-container {
        padding: 0.6rem 0.8rem;
    }

    .chatbot-avatar {
        margin-right: 0.8rem;
    }

    .chatbot-avatar img {
        width: 35px;
        height: 35px;
    }

    .status-indicator {
        width: 10px;
        height: 10px;
    }

    .chatbot-intro h3 {
        font-size: 0.9rem;
    }

    .chat-messages {
        padding: 0.8rem;
    }

    .message-bubble {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        border-radius: 16px;
    }

    .question-chip {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        border-radius: 12px;
    }

    .chat-input-container {
        padding: 0.6rem;
    }

    .input-wrapper {
        padding: 0.3rem 0.6rem;
        border-radius: 18px;
    }

    .input-wrapper input {
        font-size: 0.8rem;
    }

    .send-btn,
    .voice-btn {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .input-hint {
        font-size: 0.65rem;
    }

    /* GitHub Stats */
    .stats-title {
        font-size: 1.4rem;
    }

    .stats-subtitle {
        font-size: 0.9rem;
    }

    .stat-card {
        padding: 0.6rem;
    }

    .card-header h3 {
        font-size: 0.85rem;
    }

    .stat-item {
        padding: 0.6rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .github-link {
        font-size: 0.85rem;
        padding: 0.7rem 1.2rem;
    }
}

@media screen and (max-width: 400px) {
    #chatbot.page {
        padding: 0.6rem;
    }

    .chatbot-header .section-title {
        font-size: 1.4rem;
    }

    .chatbot-subtitle {
        font-size: 0.8rem;
        max-width: 280px;
    }

    .chatbot-interface {
        height: 350px;
    }

    .chatbot-avatar img {
        width: 32px;
        height: 32px;
    }

    .chatbot-intro h3 {
        font-size: 0.85rem;
    }

    .chatbot-intro .status {
        font-size: 0.7rem;
    }

    .chat-messages {
        padding: 0.6rem;
    }

    .message-bubble {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }

    .message-time {
        font-size: 0.6rem;
    }

    .question-chip {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }

    .input-wrapper input {
        font-size: 0.75rem;
    }

    .send-btn,
    .voice-btn {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }

    .input-hint {
        font-size: 0.6rem;
    }

    /* GitHub Stats */
    .stats-title {
        font-size: 1.2rem;
    }

    .stats-subtitle {
        font-size: 0.75rem;
    }

    .stat-card {
        padding: 0.5rem;
    }

    .card-header h3 {
        font-size: 0.8rem;
    }

    .card-header i {
        font-size: 0.9rem;
    }

    .stat-item {
        padding: 0.5rem;
    }

    .stat-number {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .github-link {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
}