/**
 * Plant Care Calendar Styles
 *
 * Suffix: cf3168c0
 */

.pcc-cf3168c0-widget-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    background: #fafdfa;
}

.pcc-cf3168c0-card {
    background: #ffffff;
    border: 1px solid #e1ebe1;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.04);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.pcc-cf3168c0-card:hover {
    box-shadow: 0 6px 18px rgba(46, 125, 50, 0.08);
}

/* Dashboard summary blocks */
.pcc-cf3168c0-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.pcc-cf3168c0-summary-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.pcc-cf3168c0-summary-info {
    display: flex;
    flex-direction: column;
}

.pcc-cf3168c0-summary-count {
    font-size: 2rem;
    font-weight: 700;
    color: #2e7d32;
    line-height: 1;
}

.pcc-cf3168c0-summary-label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

.pcc-cf3168c0-summary-icon {
    font-size: 1.5rem;
}

/* Header, selector, alerts */
.pcc-cf3168c0-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.pcc-cf3168c0-title {
    margin: 0 0 5px 0;
    font-weight: 800;
    color: #1b5e20;
}

.pcc-cf3168c0-subtitle {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

.pcc-cf3168c0-plant-selector-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pcc-cf3168c0-plant-selector-group label {
    font-weight: 600;
    font-size: 0.85rem;
    color: #2e7d32;
}

.pcc-cf3168c0-overdue-alert {
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 5px solid #d32f2f;
    background: #fff8f8;
}

.pcc-cf3168c0-overdue-icon {
    font-size: 1.5rem;
}

/* Main layouts */
.pcc-cf3168c0-main-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
}

/* Sidebar styling */
.pcc-cf3168c0-sidebar {
    display: flex;
    flex-direction: column;
}

.pcc-cf3168c0-progress-card {
    text-align: center;
}

.pcc-cf3168c0-progress-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #2e7d32;
}

.pcc-cf3168c0-progress-indicator {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 15px auto;
}

.pcc-cf3168c0-progress-circle {
    transform: rotate(-90deg);
}

.pcc-cf3168c0-progress-circle-bg {
    fill: none;
    stroke: #e8f5e9;
    stroke-width: 3.8;
}

.pcc-cf3168c0-progress-circle-bar {
    fill: none;
    stroke: #2e7d32;
    stroke-width: 3.8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease;
}

.pcc-cf3168c0-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pcc-cf3168c0-progress-pct {
    font-weight: 700;
    font-size: 1.4rem;
    color: #2e7d32;
}

.pcc-cf3168c0-progress-lbl {
    font-size: 0.65rem;
    color: #888;
}

.pcc-cf3168c0-category-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    text-align: left;
}

.pcc-cf3168c0-cat-bar-row {
    font-size: 0.8rem;
    color: #555;
}

.pcc-cf3168c0-cat-track {
    background: #e8f5e9;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 4px;
}

.pcc-cf3168c0-cat-fill {
    background: #2e7d32;
    height: 100%;
}

/* Forms & elements */
.pcc-cf3168c0-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pcc-cf3168c0-form-group {
    display: flex;
    flex-direction: column;
}

.pcc-cf3168c0-form-group.row-split {
    flex-direction: row;
    gap: 10px;
}

.pcc-cf3168c0-form-group.row-split > * {
    flex: 1;
}

.pcc-cf3168c0-input, .pcc-cf3168c0-select {
    border: 1px solid #c8dcd0;
    padding: 10px 14px;
    border-radius: 8px;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.pcc-cf3168c0-input:focus, .pcc-cf3168c0-select:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.1);
}

.pcc-cf3168c0-btn-primary {
    background: #2e7d32;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pcc-cf3168c0-btn-primary:hover {
    background: #1b5e20;
}

.pcc-cf3168c0-btn-secondary {
    background: #e8f5e9;
    color: #2e7d32;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pcc-cf3168c0-btn-secondary:hover {
    background: #c8e6c9;
}

/* Shop and recommendations */
.pcc-cf3168c0-shop-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pcc-cf3168c0-shop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #eee;
}

.pcc-cf3168c0-shop-img {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

.pcc-cf3168c0-shop-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pcc-cf3168c0-shop-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pcc-cf3168c0-shop-price {
    font-size: 0.8rem;
    color: #666;
}

.pcc-cf3168c0-shop-add-btn {
    border: none;
    background: #2e7d32;
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* Reminders Switch */
.pcc-cf3168c0-reminder-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.pcc-cf3168c0-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
}

.pcc-cf3168c0-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.pcc-cf3168c0-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 18px;
}

.pcc-cf3168c0-slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.pcc-cf3168c0-switch input:checked + .pcc-cf3168c0-slider {
    background-color: #2e7d32;
}

.pcc-cf3168c0-switch input:checked + .pcc-cf3168c0-slider:before {
    transform: translateX(16px);
}

.pcc-cf3168c0-subtext {
    font-size: 0.75rem;
    color: #777;
    margin: 5px 0 0 0;
}

/* Calendar controls & weather banner */
.pcc-cf3168c0-controls-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.pcc-cf3168c0-month-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pcc-cf3168c0-month-nav h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.pcc-cf3168c0-nav-btn {
    border: 1px solid #e1ebe1;
    background: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
}

.pcc-cf3168c0-view-switcher {
    display: flex;
    border: 1px solid #c8dcd0;
    border-radius: 8px;
    overflow: hidden;
}

.pcc-cf3168c0-switch-btn {
    border: none;
    background: #fff;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pcc-cf3168c0-switch-btn.active {
    background: #2e7d32;
    color: #fff;
}

.pcc-cf3168c0-weather-banner {
    padding: 12px;
    font-size: 0.85rem;
    border-left: 4px solid #0288d1;
    background: #e1f5fe;
    color: #01579b;
    margin-bottom: 15px;
}

/* Monthly Calendar styling */
.pcc-cf3168c0-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.pcc-cf3168c0-calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.pcc-cf3168c0-calendar-day {
    aspect-ratio: 1;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #f0f6f0;
    padding: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80px;
}

.pcc-cf3168c0-calendar-day.empty {
    background: #fafdfa;
    border: none;
}

.pcc-cf3168c0-day-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: #888;
}

.pcc-cf3168c0-calendar-day.today .pcc-cf3168c0-day-number {
    color: #2e7d32;
}

.pcc-cf3168c0-day-tasks {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 52px;
    overflow-y: auto;
}

.pcc-cf3168c0-mini-task {
    font-size: 0.7rem;
    padding: 2px 4px;
    border-radius: 4px;
    background: #e8f5e9;
    color: #2e7d32;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}

.pcc-cf3168c0-mini-task.type-water { background: #e3f2fd; color: #1565c0; }
.pcc-cf3168c0-mini-task.type-fertilize { background: #fef3c7; color: #d97706; }
.pcc-cf3168c0-mini-task.type-prune { background: #f5f5f5; color: #616161; }
.pcc-cf3168c0-mini-task.type-pest { background: #fce4ec; color: #c2185b; }

/* Weekly and List views */
.pcc-cf3168c0-weekly-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.pcc-cf3168c0-week-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.pcc-cf3168c0-week-day-header {
    width: 100px;
    display: flex;
    flex-direction: column;
}

.pcc-cf3168c0-week-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
}

.pcc-cf3168c0-week-num {
    font-size: 1.5rem;
    font-weight: 700;
}

.pcc-cf3168c0-week-tasks-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Task cards */
.pcc-cf3168c0-task-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fcfdfc;
    border: 1px solid #e1ebe1;
    border-radius: 10px;
    gap: 15px;
}

.pcc-cf3168c0-task-card.completed {
    opacity: 0.6;
    background: #f5f5f5;
}

.pcc-cf3168c0-task-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pcc-cf3168c0-task-icon {
    font-size: 1.25rem;
}

.pcc-cf3168c0-task-details {
    display: flex;
    flex-direction: column;
}

.pcc-cf3168c0-task-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.pcc-cf3168c0-task-plant-lbl {
    font-size: 0.75rem;
    color: #666;
}

.pcc-cf3168c0-task-sub-info {
    font-size: 0.7rem;
    color: #888;
}

.pcc-cf3168c0-task-action {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Modal details */
.pcc-cf3168c0-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcc-cf3168c0-modal.hidden {
    display: none;
}

.pcc-cf3168c0-modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
}

.pcc-cf3168c0-modal-content {
    position: relative;
    z-index: 2;
    background: #fff;
    width: 400px;
    max-width: 90%;
    padding: 25px;
}

.pcc-cf3168c0-modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: none; border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.pcc-cf3168c0-modal-header-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.pcc-cf3168c0-modal-avatar {
    width: 48px;
    height: 48px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.pcc-cf3168c0-badge-active {
    display: inline-block;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
}

.pcc-cf3168c0-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.pcc-cf3168c0-profile-action-box {
    text-align: center;
}

/* Utilities */
.hidden { display: none !important; }
.text-water { color: #2196f3; }
.text-green { color: #4caf50; }
.text-orange { color: #ff9800; }
.text-danger { color: #f44336; }

/* Responsive adjustments */
@media (max-width: 991px) {
    .pcc-cf3168c0-main-grid {
        grid-template-columns: 1fr;
    }
    .pcc-cf3168c0-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pcc-cf3168c0-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .pcc-cf3168c0-calendar-weekdays {
        font-size: 0.65rem;
    }
    .pcc-cf3168c0-calendar-day {
        min-height: 50px;
    }
    .pcc-cf3168c0-mini-task {
        font-size: 0.55rem;
    }
}
