/* Chat Styles */
.chat-card {
    display: none;
    /* Initially hide chat cards */
    height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-card .chat-body {
    flex: 1;
    overflow-y: auto;
    background-color: #dee2c3;
}

.chat-card .chat-message {
    border-radius: 10px;
    margin-bottom: 10px;
    padding-bottom: 0px;
    max-width: 70%;
    word-break: break-word;
}

.chat-card .chat-bubble.left {
    background-color: #3b3b3b;
    color: #fafafa;
}

.chat-card .chat-bubble.right {
    background-color: #4b5320;
    color: #fafafa;
}

.chat-card .chat-bubble.left.incoming {
    align-self: flex-start;
}

.chat-card .chat-bubble.right.outgoing {
    align-self: flex-end;
}

.chat-card .chat-footer {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border-top: 1px solid #ccc;
}

.chat-card .chat-footer .input-group {
    width: 100%;
}

.chat-card .chat-footer input[type="text"] {
    flex: 1;
}

.chat-date-separator span {
    background-color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
    color: #555;
}

.btn-send {
    background-color: #7FA87F;
    border-color: 1px solid #7FA87F;
    color: #fff;
}

.btn-send:hover {
    background-color: #678a67;
    border-color: 1px solid #678a67;
    color: #fff;
}

.btn-send:active {
    background-color: #6B946B;
    color: #fff;
}

.btn-send:disabled {
    background-color: #B4D0B4;
    border-color: 1px solid #B4D0B4;
    color: #A0A0A0;
    cursor: not-allowed;
}

.truncate {
    max-width: 70px;
    /* Match the width of the profile image */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Student Profile Styles */
.student-profile {
    cursor: pointer;
}

.student-profile img {
    border: 2px solid #ccc;
    border-radius: 50%;
    width: 70px;
    height: 70px;
}

.student-profile p {
    margin-top: 10px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Modal Styles */
.modal-content {
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    background-color: #929a68;
    color: #fff;
    border-bottom: 1px solid #929a68;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
}

.alert-data {
    background-color: #d7dbc1;
}

.modal-footer .btn-send {
    background-color: #929a68;
    color: #fff;
}

.modal-footer .btn-send:hover {
    background-color: #6b7245;
    color: #fff;
}

.modal-footer .btn-send:active {
    background-color: #6b7245;
    color: #fff;
}

@media (max-width: 768px) {
    .chat-card {
        height: 400px;
    }
}

/* Turn On Camera */
.camera-controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.camera-btn {
    width: 40px;
    /* Set equal width and height to make it a perfect circle */
    height: 40px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    /* Adjust the size of the icon */
}

.camera-icon {
    margin: 0;
}

/* Todo Stepper */
.stepper-wrapper {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;

    @media (max-width: 768px) {
        font-size: 12px;
    }
}

.stepper-item::before {
    position: absolute;
    content: "";
    border-bottom: 2px solid #ccc;
    width: 100%;
    top: 20px;
    left: -50%;
    z-index: 2;
}

.stepper-item::after {
    position: absolute;
    content: "";
    border-bottom: 2px solid #ccc;
    width: 100%;
    top: 20px;
    left: 50%;
    z-index: 2;
}

.stepper-item .step-counter {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ccc;
    margin-bottom: 6px;
}

.stepper-item.active {
    font-weight: bold;
}

.stepper-item.completed .step-counter {
    background-color: #4bb543;
}

.stepper-item.completed::after {
    position: absolute;
    content: "";
    border-bottom: 2px solid #4bb543;
    width: 100%;
    top: 20px;
    left: 50%;
    z-index: 3;
}

.stepper-item:first-child::before {
    content: none;
}

.stepper-item:last-child::after {
    content: none;
}

#toggleMinimize {
    border-radius: 50%;
    border: 1px solid #ccc;
    z-index: 1;
}

@keyframes slideUp {
    from {
        opacity: 1;
        height: 100%;
    }

    to {
        opacity: 0;
        height: 0;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        height: 0;
    }

    to {
        opacity: 1;
        height: 100%;
    }
}

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.top-0 {
    top: 0;
}

.end-0 {
    right: 0;
}

.m-2 {
    margin: 0.5rem;
}

.border {
    border: 1px solid #ddd;
}
