/* Main Calendar Wrapper */
#mpc-calendar-wrapper {
    position: relative;
    max-width: 900px;
    margin: 20px auto;
    font-family: sans-serif;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Header: Navigation and Title */
.mpc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.mpc-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #333;
}
.mpc-nav-btn {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.mpc-nav-btn:hover {
    background-color: #005a87;
}

/* Controls section for timezone */
.mpc-controls {
    text-align: right;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.mpc-controls label {
    margin-right: 10px;
    font-size: 0.9em;
    color: #555;
}

#mpc-timezone-select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
}

/* Calendar Table */
.mpc-calendar {
    width: 100%;
    border-collapse: collapse;
}
.mpc-calendar th {
    background-color: #f9f9f9;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    color: #555;
    border-bottom: 2px solid #ddd;
}
.mpc-calendar td {
    border: 1px solid #eee;
    width: 14.28%;
    height: 120px;
    vertical-align: top;
    padding: 5px;
    text-align: center;
}
.mpc-calendar td.mpc-empty {
    background-color: #fafafa;
}

/* Day Cell Content */
.mpc-day-number {
    font-weight: bold;
    font-size: 0.9em;
    color: #666;
    text-align: right;
}
.mpc-moon-image {
    max-width: 40px;
    height: auto;
    margin: 5px auto;
    display: block;
}
.mpc-phase-name {
    font-size: 0.7em;
    color: #888;
}
.mpc-comment {
    font-size: 0.75em;
    margin-top: 8px;
    padding: 4px;
    background-color: #fffbe6;
    border: 1px solid #fdecab;
    border-radius: 3px;
    text-align: left;
    line-height: 1.3;
}

/* Loading Indicator */
.mpc-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 10;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mpc-header h2 {
        font-size: 1.2em;
    }
    .mpc-controls {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    #mpc-timezone-select {
        margin-top: 5px;
        width: 100%;
    }
    .mpc-calendar td {
        height: 100px;
        padding: 2px;
    }
    .mpc-phase-name, .mpc-comment {
        font-size: 0.65em;
    }
    .mpc-moon-image {
        max-width: 30px;
    }
}

