.lvn-calendar-wrapper {
    max-width: 1000px;
    margin: 30px auto;
    padding: 25px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.lvn-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.lvn-calendar-header h2 {
    margin: 0;
    color: #1a3c34;
    font-size: 30px;
    font-weight: 700;
}

.lvn-calendar-nav {
    display: flex;
    gap: 12px;
}

.lvn-calendar-nav button {
    padding: 12px 24px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lvn-calendar-nav button:hover {
    background: #218838;
    transform: translateY(-2px);
}

.lvn-legend {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.lvn-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #495057;
}

.lvn-legend-color {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.lvn-good-day { background: linear-gradient(135deg, #fff3cd, #ffe066); }
.lvn-bad-day { background: linear-gradient(135deg, #f8d7da, #f5c6cb); }
.lvn-normal-day { background: #ffffff; }

.lvn-calendar {
    border: 1px solid #dee2e6;
    border-radius: 12px;
    overflow: hidden;
}

.lvn-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #28a745;
    color: white;
}

.lvn-weekday {
    padding: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    border-right: 1px solid #218838;
}

.lvn-weekday:last-child { border-right: none; }

.lvn-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.lvn-day {
    min-height: 120px;
    padding: 12px;
    border: 1px solid #dee2e6;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.25s ease;
}

.lvn-day:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 2;
}

.lvn-day.lvn-good-day {
    background: linear-gradient(135deg, #fffacd, #ffe066);
}

.lvn-day.lvn-bad-day {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
}

.lvn-day-number {
    font-size: 26px;
    font-weight: 700;
    color: #212529;
}

.lvn-chi {
    font-size: 13px;
    color: #6c757d;
}

.lvn-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white !important;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.lvn-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.lvn-modal-content {
    background: #ffffff;
    margin: 6% auto;
    padding: 35px;
    border-radius: 16px;
    width: 90%;
    max-width: 620px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.25);
    animation: slideDown 0.4s;
}

@keyframes slideDown {
    from { transform: translateY(-60px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.lvn-close {
    color: #6c757d;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

.lvn-close:hover { color: #212529; }

.lvn-btn-primary {
    padding: 14px 30px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: background 0.3s;
}

.lvn-btn-primary:hover { background: #218838; }

.lvn-ai-response {
    background: #e8f5e9;
    padding: 25px;
    border-radius: 12px;
    margin-top: 25px;
    border-left: 5px solid #28a745;
}

.lvn-loading { text-align: center; padding: 50px 0; }

.lvn-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #28a745;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .lvn-calendar-wrapper { padding: 15px; }
    .lvn-calendar-header { flex-direction: column; gap: 20px; text-align: center; }
    .lvn-day { min-height: 90px; padding: 8px; }
    .lvn-day-number { font-size: 20px; }
}