/* main container */
.ms-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ms-header h1 {
    color: #1e3c46;
    margin-bottom: 20px;
    font-size: 28px;
}


.ms-header h2 {
    margin-bottom: 0;
}
/* main wrapper */
.ms-calendar-wrapper {
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

/* double column: calendar + slots */
.ms-two-columns {
    display: flex;
    /*background: #ffffff;*/
}

/* left part: calendar */
.ms-calendar-section {
    background: #ffffff;
    overflow: hidden;
    min-width: 500px;
    max-width: 500px;
    padding: 16px;
    border-right: 1px solid #D5DDDC;
}

.ms-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #D5DDDC;
}

.ms-month-year-box {
    background: #D5DDDC;
    padding: 6px 20px;
    font-weight: 600;
    font-size: 20px;
    color: #1e3c46;
}

.ms-nav-btns {
    display: flex;
    gap: 10px;
}

.ms-nav-btn {
    background: #D5DDDC;
    border: none;
    width: 42px;
    height: 42px;
    cursor: pointer;
    transition: 0.2s;
    color: #1e3c46;
    font-size: 18px;
}

.ms-nav-btn:hover {
    background: #a0c814;
    color: #ffffff;
}

.ms-today-btn {
    background: #a0c814;
    color: white;
    border: none;
    padding: 0 18px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.ms-today-btn:hover {
    background: #8ab010;
}

.ms-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: #1e3c46;
    margin-bottom: 12px;
    font-size: 14px;
}

.ms-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.ms-day-cell {
    aspect-ratio: 1 / 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: 2px solid #D5DDDC;
    padding-top: 6px;
    position: relative;
}

.ms-day-cell.ms-today {
    color: #ffffff;
}

.ms-day-cell:hover {
    background: #D5DDDC;
    border-color: #D5DDDC;
}

.ms-day-number {
    width: 30px;
    height: 30px;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ms-today .ms-day-number {
    background: #1e3c46;
    color: white;
    font-weight: bold;
}

.ms-selected-day.ms-today .ms-day-number {
    background: #1e3c46;
    color: #ffffff;
}

.ms-weekend-day {
    background: #a0c814 !important;
    border: 2px solid #a0c814 !important;
}

.ms-weekend-day .ms-day-number {
    color: #ffffff !important;
}

.ms-selected-day.ms-weekend-day {
    background: #a0c814 !important;
    border: 2px solid #828787 !important;
}

.ms-selected-day {
    background: #828787 !important;
    border: 2px solid #828787 !important;
}

.ms-selected-day .ms-day-number {
    color: #ffffff;
}

.ms-selected-day.ms-weekend-day .ms-day-number {
    color: #ffffff;
}

.ms-other-month {
    background: #D5DDDC;
    color: #000000;
    opacity: 0.1;
}

.ms-before-today {
    background: #D5DDDC;
    color: #000000;
    opacity: 0.4;
}

.ms-slot-indicator {
    width: 6px;
    height: 6px;
    background-color: #a0c814;
    border-radius: 10px;
    margin-top: 6px;
    margin-bottom: 6px;
    margin-left: 3px;
    margin-right: 3px;
}

.ms-slot-indicator-r {
    width: 6px;
    height: 6px;
    background-color: #00afc8;
    border-radius: 10px;
    margin-top: 6px;
    margin-bottom: 6px;
    margin-left: 3px;
    margin-right: 3px;
}

.ms-slot-indicator-unconfirmed {
    width: 6px;
    height: 6px;
    background-color: #af0000;
    border-radius: 10px;
    margin-top: 6px;
    margin-bottom: 6px;
    margin-left: 3px;
    margin-right: 3px;
}

/* right part: slots list */
.ms-slots-section {
    max-width: 300px;
    position: relative;
    flex: 1;
    background: white;
    padding: 16px;
    padding-bottom: 70px;
    display: flex;
    flex-direction: column;
}

.ms-selected-info {
    background: #D5DDDC;
    padding: 7px 12px;
    margin-bottom: 12px;
    text-align: center;
}

.ms-selected-date-big {
    font-weight: 600;
    font-size: 20px;
    color: #1e3c46;
}

.ms-free-slots-title {
    font-weight: 600;
    margin: 10px 0;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.ms-recruiter-controls {
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.ms-recruiter-btn {
    background: #a0c814;
    border: none;
    color: white;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    font-size: 14px;
}

.ms-recruiter-btn:hover {
    background: #8ab010;
}

.ms-slots-list {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 6px;
}

.ms-slot-card {
    background: #D5DDDC;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.ms-slot-time {
    font-weight: 700;
    font-size: 16px;
    background: #a0c814;
    padding: 4px 12px;
    color: #ffffff;
    width: 80px;
    text-align: center;
}

.ms-slot-time.ms-timebusy {
    opacity: 0.4;
}

.ms-slot-time.ms-timebusy.ms-timeunconfirmed {
    opacity: 0.8;
    background: #af0000;
    color: #ffffff;
}

.ms-slot-time.ms-timebusy.ms-timeconfirmed {
    opacity: 0.8;
    background: #00afc8;
    color: #ffffff;
}

.ms-slot-time:hover {
    background: #8ab010;
}

.ms-no-slots {
    text-align: center;
    padding: 24px 12px;
    width: 100%;
    background: #D5DDDC;
    color: #1e3c46;
    font-style: italic;
}

/* modal overlay */
.ms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s;
}

.ms-modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.ms-modal-card {
    background: white;
    width: 360px;
    max-width: 100%;
    padding: 24px;
    box-shadow: 0 30px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    overflow-y: auto;
    max-height: 100vh;
}

.ms-modal-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #1e3c46;
}

.ms-modal-card input,
.ms-modal-card textarea {
    width: 100%;
    padding: 8px 16px;
    margin: 8px 0;
    border: 1px solid #D5DDDC;
    font-size: 16px;
    outline: none;
}

.ms-modal-card textarea {
    min-height: 100px;
    resize: none;
}

.ms-modal-card button {
    background: #a0c814;
    border: none;
    padding: 9px 16px;
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.ms-modal-card button:hover {
    background: #8ab010;
}

.ms-success-msg {
    background: #d9f0ec;
    padding: 12px;
    margin-top: 16px;
    color: #1e6f5c;
}

/* recruiter modal */
.ms-recruiter-modal-card {
    max-width: 360px;
}

.ms-time-slots-input {
    margin: 8px 0;
}

.ms-time-slots-input label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #1e3c46;
}

.ms-time-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ms-time-input-group input {
    flex: 1;
    margin: 0;
}

.ms-add-time-btn {
    background: #1e3c46;
    color: white;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
}

.ms-time-tag {
    display: inline-block;
    background: #D5DDDC;
    padding: 4px 12px;
    font-size: 14px;
}

.ms-remove-time {
    cursor: pointer;
    margin-left: 8px;
    color: #d32f2f;
    font-weight: bold;
}

.ms-generate-link {
    padding: 8px 16px;
    cursor: pointer;
    background: #1e3c46;
    color: #ffffff;
    display: inline-block;
    font-weight: 500;
}

.ms-help-box {
    padding: 12px;
    border: 1px solid #D5DDDC;
    display: inline-block;
    margin-top: 16px;
    background: #f9f9f9;
}

.ms-error {
    background: #ffebee;
    color: #c62828;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    border-radius: 8px;
}



/* Unconfirmed meetings block */
.ms-unconfirmed-section {
    width: 490px;
    background: #ffffff;
    border-left: 2px solid #D5DDDC;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.ms-unconfirmed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #D5DDDC;
}

.ms-unconfirmed-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1e3c46;
    font-weight: 600;
}

.ms-unconfirmed-count {
    background: #a0c814;
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

.ms-unconfirmed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    max-height: 380px;
    overflow: auto;
}

.ms-unconfirmed-item {
    background: white;
    border: 1px solid #e0e0e0;
    padding: 12px;
    gap: 16px;
    transition: all 0.2s ease;
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.ms-unconfirmed-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #a0c814;
}

.ms-unconfirmed-date {
    font-size: 14px;
    font-weight: 600;
    color: #1e3c46;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
}

.ms-unconfirmed-time {
    background: #D5DDDC;
    padding: 2px 8px;
    font-size: 12px;
}

.ms-unconfirmed-candidate {
    width: 100%;
}

.ms-unconfirmed-candidate strong {
    font-size: 14px;
    color: #072431;
    display: block;
}

.ms-unconfirmed-contacts {
    font-size: 12px;
    color: #666;
}

.ms-unconfirmed-contacts a {
    color: #1e3c46;
    text-decoration: none;
}

.ms-unconfirmed-contacts a:hover {
    text-decoration: underline;
}

.ms-unconfirmed-phone {
    display: block;
}

.ms-unconfirmed-actions {
    display: flex;
}

.ms-confirm-booking-btn {
    background: #a0c814;
    border: none;
    padding: 6px 12px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
}

.ms-confirm-booking-btn:hover {
    background: #8ab010;
}

.ms-reject-booking-btn {
    background: #d32f2f;
    border: none;
    padding: 6px 12px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
}

.ms-reject-booking-btn:hover {
    background: #b71c1c;
}

.ms-no-unconfirmed {
    text-align: center;
    padding: 30px 16px;
    color: #999;
    font-style: italic;
    background: white;
    border: 1px dashed #ddd;
}

/* Notification styles */
.ms-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    color: white;
    font-size: 14px;
    z-index: 10000;
    animation: slideIn 0.3s ease;
}

.ms-notification-success {
    background: #4caf50;
}

.ms-notification-error {
    background: #f44336;
}

.ms-notification-info {
    background: #2196f3;
}

.ms-generate-block{
    display: flex;
    flex-wrap: wrap;
    align-items: center;

}
.ms-copy-link-success{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 42px;
    margin-left: 12px;
}

.ms-timezone-line {
    font-size: 16px;
    color: #666;
    margin-top: 4px;
    margin-bottom: 8px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Responsive */

@media (max-width: 1400px) {
    .ms-two-columns {
        flex-wrap: wrap;
        width: 800px;
    }
    .ms-slots-section,
    .ms-calendar-section {
        margin-bottom: 12px;
    }

    .ms-unconfirmed-section{
        width: 100%;
        border: none !important;
    }
}
@media (max-width: 1100px) {
    .ms-unconfirmed-section {
        border-left: none;
        max-height: 400px;
    }

    .ms-calendar-section {
        min-width: auto;
        flex: 2;
    }

    .ms-slots-section {
        flex: 1;
    }
}


@media (max-width: 991px) {
    .ms-calendar-section {
        min-width: 435px;
    }
    .ms-two-columns{
        width: 100% !important;
    }
    
    .ms-slot-indicator,
    .ms-slot-indicator-r,
    .ms-slot-indicator-unconfirmed {
        margin-top: 3px;
        margin-bottom: 3px;
    }
}

@media (max-width: 767px) {
    .ms-slots-section {
        width: 100%;
    }
    .ms-calendar-section {
        min-width: none;
    }
    .ms-slots-section,
    .ms-calendar-section {
        padding: 12px;
        width: 100%;
        max-width: 100%;
        min-width: stretch !important;
    }
    
    .ms-slots-section {
        padding-bottom: 64px;
        width: 100%;
        max-width: 100%;
    }
    .ms-unconfirmed-section {
        order: 3;
    }
    
    .ms-recruiter-controls {
        left: 12px;
        right: 12px;
    }
    
    .ms-calendar-grid {
        gap: 3px;
    }
    
    .ms-day-cell {
        padding-top: 3px;
        font-size: 12px;
    }
    
    .ms-day-number {
        height: 24px;
        width: 24px;
    }
}

@media (max-width: 550px) {
    .ms-calendar-section {
        min-width: 100%;
    }
}

@media (max-width: 425px) {
    .ms-day-cell {
        padding-top: 3px;
        font-size: 12px;
    }
    
    .ms-day-number {
        height: 20px;
        width: 20px;
    }
    .ms-unconfirmed-item{
        flex-wrap: wrap;
        gap: 0;
    }
    .ms-unconfirmed-date{
        flex-direction: row;
        gap: 12px;
    }
}

@media (max-width: 360px) {
    .ms-day-cell {
        padding-top: 1px;
    }
    
    .ms-calendar-grid {
        gap: 1px;
    }
    
    .ms-slot-indicator,
    .ms-slot-indicator-r,
    .ms-slot-indicator-unconfirmed {
        margin: 1px;
    }
}

