/********** Template CSS **********/
:root {
    --primary: #007bff;
    --light: #F6F7F8;
    --dark: #1A2A36;
    --primary-color: #007bff;
    --primary-dark: #2C097F;
    --secondary-color: #f8f9fc;
    --text-color: #5a5c69;
    --light-gray: #d1d3e2;
    --border-color: #e3e6f0;
    --danger-color: #2C097F;
    --success-color: #007bff;
    --warning-color: #17a2b8;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 15px;
    bottom: 105px;
    z-index: 99;
}

.border-color {
    border-color: var(--primary);
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
}

.btn-color,
.btn-back-to-top {
    background-color: var(--primary);
    color: #FFFFFF;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.bg-color {
    background-color: var(--primary);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 75px;
}

.nav-item button {
    color: var(--primary);
}

.nav-item button:hover {
    color: var(--primary-dark);
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: black;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .1);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 16px !important;
    }
}

.header-carousel .owl-dots {
    position: absolute;
    width: 60px;
    height: 100%;
    top: 0;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.headdername {
    color: var(--primary);
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(255, 255, 255, .9);
    border-radius: 45px;
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 60px;
    height: 60px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    border-radius: 45px;
    transition: .5s;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/banner.png) center center no-repeat;
    background-size: cover;
}

.text-color {
    color: var(--primary);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.table-service-cth th {
    padding: 12px 16px !important;
    /* tăng khoảng cách trong ô tiêu đề */
    vertical-align: middle;
    text-align: center;
    background-color: var(--primary);
}

.table-service-cth h2 {
    background-color: var(--primary);
}

.table-service-cth tbody td {
    text-align: justify;
    padding: 10px;
    color: var(--dark);
}

.frame-service-detail {
    color: var(--dark);
    font-size: 18px;
}

/*** Service-detail ***/
.modal-body {
    max-height: 80vh;
    overflow-y: auto;
}

/* Custom Modal CSS */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.custom-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-content {
    background-color: #fff;
    border-radius: 8px;
    width: 70%;
    max-width: 95vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-modal-header {
    background-color: #f8f9fa;
    padding: .75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-modal-title {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
}

.custom-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #e9ecef;
    color: #000;
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1;
}



.custom-modal-body {
    padding: 1.5rem;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.modalmap {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1050;
}

.modalmap:target {
    display: flex;
}

.modalmap-dialog {
    background: #fff;
    border-radius: .5rem;
    max-width: 900px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    animation: mm-fade-in .2s ease-out;
}

.modalmap-header {
    padding: .75rem 1rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modalmap-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.modalmap-body {
    padding: 0;
    background: #000;
    aspect-ratio: 16/9;
}

.modalmap-body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.modalmap-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #e9ecef;
    color: #000;
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1;
}

.modalmap-close:hover {
    background: #dee2e6;
}

@keyframes mm-fade-in {
    from {
        transform: translateY(6px);
        opacity: .85;
    }

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

/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service ***/
.service-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);

}



.service-item:hover a {
    color: #FFFFFF;
    background: var(--primary-dark);
}

.service-item a {
    background-color: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/*** Objecct ***/
.object {
    border-bottom: 5px solid var(--primary-dark);
    color: var(--dark);
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
    min-height: 60px;
}

.object a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--dark);
    text-decoration: none;
    transition: background 0.3s;
}



.object-items {
    background-color: rgb(245, 245, 245);
    margin: 10px 0;
    padding: 10px;
    transition: background-color 0.3s;
}

.object-items a:hover {
    background-color: #e8e0e0;
}

.object-items i {
    display: flex;
    align-items: center;
    margin: 0 10px;
    font-size: 20px;
    color: var(--primary);
}

.object-items a {
    color: var(--dark);
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/*** Project Portfolio ***/
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary);
    border-color: var(--primary);
}

.portfolio-img {
    position: relative;
}

.portfolio-img::before,
.portfolio-img::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    background: var(--dark);
    transition: .5s;
}

.portfolio-img::before {
    left: 50%;
}

.portfolio-img::after {
    right: 50%;
}

.portfolio-item:hover .portfolio-img::before {
    width: 51%;
    left: 0;
}

.portfolio-item:hover .portfolio-img::after {
    width: 51%;
    right: 0;
}

.portfolio-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 1;
    transition: .5s;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    transition-delay: .3s;
}


/*** Quote ***/
@media (min-width: 992px) {
    .container.quote {
        max-width: 100% !important;
    }

    .quote-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .quote-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .quote-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Team ***/
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.team-item img {
    border-radius: 8px 60px 0 0;
}

.team-item .team-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: #FFFFFF;
    transition: .5s;

}

/* Chat bot ai - Modern Premium Design (Blue Theme) */
.chat-toggle-button {
    font-size: 24px;
    position: fixed;
    bottom: 45px;
    right: 15px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
    }

    50% {
        box-shadow: 0 8px 32px rgba(0, 123, 255, 0.6);
    }
}

.chat-toggle-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(0, 123, 255, 0.6);
}

.chatwindow {
    position: fixed;
    bottom: 30px;
    right: 70px;
    border: none;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    width: 380px;
    height: 600px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: slideInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.chat-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.chat-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate-gradient 10s linear infinite;
}

@keyframes rotate-gradient {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.chat-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.chat-header .btn-close {
    position: relative;
    z-index: 1;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.chat-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.chatwindow .chat {
    display: flex;
    flex-direction: column;
    justify-content: start;
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    gap: 16px;
    background: linear-gradient(to bottom, #f0f7ff 0%, #ffffff 100%);
}

.chatwindow .chat::-webkit-scrollbar {
    width: 6px;
}

.chatwindow .chat::-webkit-scrollbar-track {
    background: transparent;
}

.chatwindow .chat::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 3px;
}

.chatwindow .chat::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
}

.chatwindow .chat .model {
    animation: slideInLeft 0.3s ease-out;
}

.chatwindow .chat .user {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

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

.chatwindow .chat .model p {
    background: linear-gradient(135deg, #f0f2f5 0%, #e1e4ea 100%);
    width: 85%;
    margin: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

.chatwindow .chat .model p::before {
    content: '🤖';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.chatwindow .chat p {
    border-radius: 18px;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    word-wrap: break-word;
    transition: all 0.2s ease;
}

.chatwindow .chat p:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.chatwindow .chat .user {
    display: flex;
    justify-content: flex-end;
}

.chatwindow .chat .user p {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    width: 85%;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    font-weight: 500;
}

.inputarea {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 20px 20px;
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 20px;
    background: white;
}

.inputarea input {
    flex: 1;
    border: 2px solid #e8ecf1;
    border-radius: 28px;
    background: #f8f9fd;
    padding: 14px 22px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.inputarea input:focus {
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    transform: translateY(-1px);
}

.inputarea input::placeholder {
    color: #a0aec0;
}

.inputarea button {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    width: 48px;
    height: 48px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.inputarea button:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.5);
}

.inputarea button:active {
    transform: scale(0.95);
}

.inputarea button i {
    color: white;
    font-size: 18px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #f0f2f5 0%, #e1e4ea 100%);
    border-radius: 18px;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #007bff;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Responsive design */
@media (max-width: 480px) {
    .chatwindow {
        width: calc(100vw - 20px);
        right: 10px;
        height: calc(100vh - 80px);
        bottom: 10px;
    }

    .chat-toggle-button {
        right: 10px;
        bottom: 20px;
    }
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

@media (min-width: 992px) {

    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 300px;
    }
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 45px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

.testimonial-carousel .testimonial-img img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .testimonial-img .btn-square {
    position: absolute;
    bottom: -19px;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-carousel .owl-item .testimonial-text {
    margin-bottom: 30px;
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    transform: scale(.8);
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact {
        max-width: 100% !important;
    }

    .contact-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    color: #9B9B9B;
    border: 1px solid #9B9B9B;
    border-radius: 38px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
    border-color: var(--light);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #9B9B9B;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: #FFFFFF;
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .copyright a:hover {
    color: var(--primary);
}

.app-container {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    width: 1400px;
    margin: 0 auto;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);

}

.app-container {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    width: 1400px;
    margin: 0 auto;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);

}

.app-header {
    background-color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.app-header h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.35rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
}

#today-btn {
    background-color: var(--secondary-color);
    color: var(--text-color);
}

#today-btn:hover {
    background-color: var(--light-gray);
    transform: translateY(-1px);
}

.view-options {
    display: flex;
    background-color: var(--secondary-color);
    border-radius: 0.35rem;
    overflow: hidden;
}

.view-option {
    background-color: transparent;
    color: var(--text-color);
    border-radius: 0;
    padding: 0.5rem 1.25rem;
}

.view-option.active {
    background-color: var(--primary-color);
    color: white;
}

.view-option:not(.active):hover {
    background-color: var(--light-gray);
}

.date-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.date-navigation h2 {
    font-size: 1.25rem;
    min-width: 120px;
    text-align: center;
}

.date-navigation button {
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-main {
    display: flex;
    flex: 1;
    padding: 1.5rem;
    gap: 1.5rem;
}

.calendar-view {
    flex: 1;
    background-color: white;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    padding: 1.5rem;
    overflow: auto;
}

.sidebar {
    width: 400px;
    background-color: white;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sidebar-header h3 {
    font-size: 1.1rem;
    color: var(--text-color);
}

#add-event-btn {
    padding: 0.5rem;
    height: 2.5rem;
    width: 120px;

}

#add-event-btn2 {
    padding: 0.5rem;
    height: 2.5rem;
    width: 120px;

}

.events-list {
    flex: 1;
    overflow-y: auto;
}

.event-item {
    padding: 1rem;
    border-left: 4px solid var(--primary-color);
    background-color: var(--secondary-color);
    border-radius: 0.35rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.event-item:hover {
    transform: translateX(5px);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.event-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-time {
    font-size: 0.85rem;
    color: #6c757d;
}

.event-description {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Month View */
.month-view {
    width: 100%;
}

.month-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
}

.month-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.day-header {
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-color);
}

.day-cell {
    aspect-ratio: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.35rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.form-control input {
    border: 1px solid var(--primary-color);
}

.day-cell:hover {
    background-color: var(--secondary-color);
}

.day-number {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.day-events {
    overflow-y: auto;
    max-height: calc(100% - 1.5rem);
}

.day-event {
    font-size: 0.75rem;
    padding: 0.15rem 0.25rem;
    border-radius: 0.15rem;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.other-month {
    opacity: 0.5;
    background-color: var(--secondary-color);
}

.current-day {
    background-color: rgba(78, 115, 223, 0.1);
    border-color: var(--primary-color);
}

/* Week View */
.week-view {
    width: 100%;
}

.week-header {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    margin-bottom: 1rem;
}

.week-day-header {
    text-align: center;
    font-weight: 600;
    padding: 0.5rem;
}

.week-day-header.current-day {
    color: var(--primary-color);
}

.week-grid {
    display: grid;
    grid-template-columns: 80px repeat(7, 1fr);
    grid-template-rows: repeat(24, 60px);
}

.hour-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: right;
    padding-right: 0.5rem;
    position: relative;
    top: -0.5rem;
}

.week-cell {
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    position: relative;
}

.week-cell:last-child {
    border-right: none;
}

.week-event {
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    padding: 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: white;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

/* Day View */
.day-view {
    width: 100%;
}

.day-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-rows: repeat(24, 60px);
}

.day-hour {
    border-top: 1px solid var(--border-color);
    position: relative;
}

.day-hour-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: right;
    padding-right: 0.5rem;
    position: relative;
    top: -0.5rem;
}

.day-time-block {
    border-top: 1px solid var(--border-color);
    position: relative;
}

.day-event {
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    padding: 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    color: white;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
}

/* Modal Styles */
#event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.35rem;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}




.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
}

.close-btn:hover {
    color: var(--text-color);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.35rem;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.time-group {
    display: flex;
    gap: 1rem;
}

.time-group>div {
    flex: 1;
}

.save-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    margin-top: 1rem;
}

.event-details {
    margin: 1.5rem 0;
}

.event-details p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.event-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

#delete-event-btn {
    background-color: var(--danger-color);
}

#edit-event-btn {
    background-color: var(--warning-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .app-main {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .header-controls {
        width: 100%;
        justify-content: space-between;
    }

    .date-navigation h2 {
        min-width: auto;
    }

    .week-header,
    .week-grid {
        grid-template-columns: 60px repeat(7, 1fr);
    }

    .day-grid {
        grid-template-columns: 60px 1fr;
    }
}

@media (max-width: 576px) {

    .app-header,
    .app-main {
        padding: 1rem;
    }

    .calendar-view,
    .sidebar {
        padding: 1rem;
    }

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

    .month-days {
        gap: 0.25rem;
    }

    .day-cell {
        padding: 0.25rem;
    }
}

.calendar-view2 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    flex: 1;
    background-color: white;
    border-radius: 0.35rem;

    padding: 1.5rem;
    overflow: auto;
}

.calendar-view2 .day-cell {

    text-align: center;
    border: 1px solid #ccc;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
}

.calendar-view2 .day-cell.selected {
    background-color: var(--primary);
    color: #fff;
}

.calendar-view2 .day-header {
    font-weight: bold;
    text-align: center;
}

/* ====== REMOVE GREEN / FORCE BLUE THEME ====== */
.btn-success,
.btn-outline-success {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}

.btn-success:hover,
.btn-outline-success:hover {
    background-color: #0056b3 !important;
    /* Darker Blue */
    border-color: #0056b3 !important;
    color: #fff !important;
}

.alert-success {
    background-color: #e3f2fd !important;
    /* Light Blue */
    border-color: #b8daff !important;
    color: #004085 !important;
    /* Dark Blue Text */
}

.text-success {
    color: var(--primary) !important;
}

.bg-success {
    background-color: var(--primary) !important;
}

.badge.bg-success {
    background-color: var(--primary) !important;
}

.border-success {
    border-color: var(--primary) !important;
}