.appointment-calendar-body{
    padding-top: 3rem;
}
.appointment-calendar-body .calendar-options-wrapper{
    padding-top: 20px;
    display: flex;
    justify-content: space-between;

}
.appointment-calendar-body .collapsible-item{
    width: 40rem;
    max-width: 100%;
}
.appointment-calendar-form{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 40rem;
    max-width: 100%;
}
.appointment-calendar-body .calendar-options{
    max-width: 100%;
}
.appointment-calendar-form .form-field{
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.nav-tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex;
    border-bottom: 2px solid #ccc;
}

.nav-tabs li {
    margin-right: 5px;
}

.nav-tabs li a {
    display: block;
    position: relative;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border: 1px solid transparent;
    border-radius: 4px 4px 0 0;
}
.nav-tabs li a .inbox-badge{
    position: absolute;
    right: -10px;
    top: -10px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #007BFF;
    color: #fffcf7;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
}
.nav-tabs li a.active {
    border-color: #ccc #ccc #fff;
    background-color: #f9f9f9;
    font-weight: bold;
}

.tab-content {
    padding: 15px;
    background-color: #fff;
}

.tab-pane {
    display: none;
}
.appointment-calendar-body label,
.appointment-calendar-form label {
    display: block;
    margin: 10px 0 4px;
    font-weight: bold;
}
.appointment-calendar-body input[type="text"],
.appointment-calendar-body textarea,
.appointment-calendar-body select,
.appointment-calendar-form input[type="text"],
.appointment-calendar-form textarea,
.appointment-calendar-form select
{
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.appointment-calendar-body textarea,
.appointment-calendar-form textarea {
    height: 100px;
    resize: vertical;
}

.appointment-calendar-body .grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.appointment-calendar-body .form-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    background: #fafafa;
}

.appointment-calendar-body .form-section h3 {
    margin-top: 0;
    font-size: 16px;
    color: #333;
}

.appointment-calendar-body .vars {
    background: #f0f0f0;
    padding: 8px;
    font-family: monospace;
    font-size: 13px;
    margin-bottom: 20px;
}

.appointment-calendar-body .checkbox-section {
    margin-top: 30px;
}

.appointment-calendar-body .checkbox-section input[type="text"] {
    margin-top: 5px;
    width: 50%;
}

/*inbox tab*/
.appointment-calendar-body #inbox .card-list{
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
}
.appointment-calendar-body #inbox .card-list .card{
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 600px;
    cursor: pointer;
    max-width: 80%;
    transition: box-shadow 0.2s;
}
.appointment-calendar-body #inbox .card-list .card:hover{
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.appointment-calendar-body #inbox .card-list .card .card-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.appointment-calendar-body #inbox .card-list .card .card-header .card-header__name,
.appointment-calendar-body #inbox .card-list .card .card-header .card-header__calendar-name
{
    font-weight: bold;
    font-size: 16px;
}
.appointment-calendar-body #inbox .card-list .card .card-header .header-link{
    color: #666;
    font-size: 14px;
}
.appointment-calendar-body #inbox .card-list .card .card-header .card-header__date-time{
    color: #444;
    font-size: 14px;
}
.appointment-calendar-body #inbox .card-list .card .card-body{
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.appointment-calendar-body #inbox .card-list .card .card-body .card-body__message{
    background: #f9f9f9;
    padding: 12px;
    border-left: 4px solid #007BFF;
    border-radius: 6px;
    font-size: 14px;
    white-space: pre-line;
}
.appointment-calendar-body #inbox .card-list .card .card-body .appointment_datetime .appointment_datetime__label{
    font-weight: bold;
}


/*collapse*/
.appointment-calendar-body .collapsible-content {
    display: none;
    padding: 10px;
    border: 1px solid #ccc;
    border-top: none;
    background-color: #f9f9f9;
}

.appointment-calendar-body .collapsible-header {
    cursor: pointer;
    background-color: #eee;
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 5px;
}

.appointment-calendar-body .collapsible-header:hover {
    background-color: #ddd;
}

.appointment-calendar-body .collapsible-header.active {
    background-color: #ddd;
    border-bottom: none;
}

/*dialog  */
.add-calendar-dialog{
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 20px;
}
.add-calendar-dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}
.close-dialog{
    width: 30px;
    height: 30px;
    margin-left: auto;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 12px;
    background-color: red;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}
.close-dialog:hover {
    background-color: darkred;
}
@media (max-width: 600px) {
    .appointment-calendar-body #inbox .card-list .card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .calendar-options-wrapper{
        flex-direction: column;
        gap: 10px;
    }
    .appointment-calendar-body .calendar-options{
      order: 1;
    }

    .appointment-calendar-body .add-new-calendar{
        order: 0;
    }
}