/**
 * Newbeings 1619 Calendar - Public Styles
 * Version: 2.0.0
 */

/* Test Box */
.nb-test-box {
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
}

/* Current Date Display */
.nb-current-date {
    margin: 20px 0;
    font-size: 1.1em;
}

/* Date Converter Container */
.nb-date-converter {
    margin: 20px 0;
    border-radius: 8px;
}

.nb-date-converter h3 {
    margin-top: 0;
}

.nb-date-converter input[type="date"] {
    padding: 8px;
    border-radius: 4px;
    margin-right: 10px;
    font-size: 14px;
}

.nb-date-converter button {
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.nb-date-converter button:hover {
    opacity: 0.9;
}

.nb-conversion-result {
    margin-top: 15px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    display: none;
}

.nb-conversion-result.show {
    display: block;
}

/* Calendar Container */
.nb-calendar-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.nb-calendar-wrapper {
    max-width: 700px;
    width: 100%;
    font-family: Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

/* Calendar Navigation */
.nb-calendar-nav {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nb-calendar-nav button {
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.nb-calendar-nav button:hover {
    opacity: 0.9;
}

.nb-calendar-nav span {
    color: white;
    font-weight: bold;
}

/* Calendar Header */
.nb-calendar-header {
    color: white;
    padding: 20px;
    text-align: center;
}

.nb-calendar-header h2 {
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: white;
}

/* Calendar Grid */
.nb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #ddd;
}

.nb-calendar-day-header {
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9em;
}

.nb-calendar-day {
    padding: 15px 10px;
    text-align: center;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #333;
}

.nb-calendar-day strong {
    font-size: 1.3em;
}

.nb-calendar-day.today {
    border-width: 3px;
    border-style: solid;
}

.nb-calendar-day.regular {
    border: 1px solid #e0e0e0;
}

/* Single Day Layout (Balance/Alignment) */
.nb-single-day-container {
    padding: 40px;
    text-align: center;
}

.nb-single-day-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin: 20px auto;
    max-width: 300px;
    position: relative;
}

.nb-single-day-box.today {
    border-width: 3px;
    border-style: solid;
}

.nb-single-day-box.regular {
    border-width: 2px;
    border-style: solid;
}

.nb-single-day-box h3 {
    margin: 0;
    font-size: 1.8em;
}

/* Historical Event Indicator */
.nb-event-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    cursor: pointer;
}

.nb-single-day-box .nb-event-indicator {
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
}

/* Calendar Footer */
.nb-calendar-footer {
    padding: 15px;
    text-align: center;
    font-size: 0.9em;
    color: #666;
    border-top: 1px solid #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nb-calendar-wrapper {
        max-width: 100%;
    }
    
    .nb-calendar-day {
        min-height: 50px;
        padding: 10px 5px;
    }
    
    .nb-calendar-day strong {
        font-size: 1.1em;
    }
    
    .nb-calendar-day-header {
        padding: 8px 4px;
        font-size: 0.8em;
    }
    
    .nb-date-converter input[type="date"],
    .nb-date-converter button {
        display: block;
        width: 100%;
        margin: 5px 0;
    }
}
