/**
 * Production Planning v2.0 Styles - Calendar Interface
 * Стилі для календарного інтерфейсу планування виробництва
 */

/* ===== СТАТИСТИЧНІ КАРТКИ ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.3;
}

/* ===== ПЛАНУВАННЯ DASHBOARD ===== */
.planning-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.demand-analysis-card,
.capacity-widget-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.demand-analysis-card h3,
.capacity-widget-card h3 {
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    font-size: 1.25rem;
}

.demand-indicators {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.indicator {
    text-align: center;
    flex: 1;
}

.indicator-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.indicator-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== ВИРОБНИЧІ ПОТУЖНОСТІ ===== */
.capacity-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        var(--capacity-color, #27ae60) 0deg, 
        var(--capacity-color, #27ae60) calc(var(--capacity-percent, 0%) * 3.6deg),
        #e9ecef calc(var(--capacity-percent, 0%) * 3.6deg),
        #e9ecef 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    position: relative;
}

.capacity-circle::before {
    content: '';
    width: 80%;
    height: 80%;
    background-color: white;
    border-radius: 50%;
    position: absolute;
}

.capacity-value {
    position: relative;
    z-index: 2;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
}

.capacity-details {
    text-align: left;
    margin-top: 1rem;
}

.capacity-details > div {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* ===== КАЛЕНДАР ПЛАНУВАННЯ ===== */
.planning-calendar-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-nav h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    min-width: 200px;
    text-align: center;
}

.calendar-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggles {
    display: flex;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 2px;
}

.view-toggle {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.view-toggle.active {
    background: #3498db;
    color: white;
}

.view-toggle:hover:not(.active) {
    background: #e9ecef;
}

.calendar-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 1px;
}

.weekday {
    background: #3498db;
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

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

.calendar-day {
    background: white;
    border: 1px solid #e9ecef;
    min-height: 80px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-day:hover {
    background: #f8f9fa;
    border-color: #3498db;
}

.calendar-day.today {
    background: #e3f2fd;
    border-color: #2196f3;
    font-weight: 600;
}

.calendar-day.selected {
    background: #3498db;
    color: white;
}

.calendar-day.other-month {
    color: #adb5bd;
    background: #f8f9fa;
}

.calendar-day.has-plan {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

/* Кольорове кодування завантаженості календарних днів */
.calendar-day.normal {
    background: linear-gradient(135deg, #d4f7dc 0%, #a8e6aa 100%);
    border-color: #28a745;
    color: #155724;
}

.calendar-day.normal:hover {
    background: linear-gradient(135deg, #c3f2c6 0%, #90e094 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

.calendar-day.busy {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-color: #ffc107;
    color: #856404;
}

.calendar-day.busy:hover {
    background: linear-gradient(135deg, #ffecb3 0%, #ffe082 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.calendar-day.overloaded {
    background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    border-color: #dc3545;
    color: #721c24;
    font-weight: 600;
}

.calendar-day.overloaded:hover {
    background: linear-gradient(135deg, #f5c6cb 0%, #ea868f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Додаткові індикатори завантаженості */
.calendar-day.overloaded::after {
    content: '⚠️';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.7rem;
}

.day-number {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.day-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
}

.day-plans {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* ===== ВКЛАДКИ ===== */
.tabs-container {
    margin: 2rem 0;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
    gap: 0;
}

.tab {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-size: 1rem;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab:hover {
    color: #3498db;
    background: #f8f9fa;
}

.tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
    background: #f8f9fa;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== ПЛАН НА ДАТУ ===== */
.plan-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.plan-header h3 {
    margin: 0;
    color: #2c3e50;
}

.plan-controls {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.date-input {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9rem;
}

.loading-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

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

.plan-timeline {
    /* Стилі для відображення плану будуть додані в JS */
}

/* ===== АВТОПЛАНУВАННЯ ===== */
.auto-plan-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auto-plan-section h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
}

.section-description {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.auto-plan-form {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

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

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.form-control {
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.range-input {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.range-input input[type="range"] {
    flex: 1;
}

.range-input span {
    font-weight: 600;
    color: #3498db;
    min-width: 40px;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
}

.auto-plan-result {
    background: #e8f5e8;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1.5rem;
}

/* ===== АНАЛІТИКА ===== */
.analytics-section {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.recommendations-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.recommendations-card h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
}

.recommendations-list {
    /* Стилі для рекомендацій */
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.analytics-card {
    background: linear-gradient(135deg, var(--card-color, #3498db) 0%, white 100%);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.analytics-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.analytics-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.analytics-trend {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    opacity: 0.7;
}

.detailed-analytics {
    margin-top: 2rem;
}

.analytics-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1rem;
}

.analytics-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.analytics-tab:hover {
    color: #3498db;
}

.analytics-tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.analytics-tab-content {
    display: none;
    padding: 1rem 0;
}

.analytics-tab-content.active {
    display: block;
}

/* ===== МОДАЛЬНІ ВІКНА ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    justify-content: flex-end;
}

/* ===== АДАПТИВНІСТЬ ===== */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .planning-dashboard {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .calendar-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .calendar-nav {
        justify-content: center;
        order: 2;
    }
    
    .calendar-controls {
        justify-content: center;
        order: 1;
    }
    
    .calendar-day {
        min-height: 60px;
        font-size: 0.8rem;
    }
    
    .plan-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .plan-controls {
        justify-content: center;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .analytics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .demand-indicators {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .stat-card,
    .demand-analysis-card,
    .capacity-widget-card,
    .planning-calendar-section,
    .plan-section,
    .auto-plan-section,
    .analytics-section {
        padding: 1rem;
    }
    
    .calendar-weekdays,
    .calendar-grid {
        font-size: 0.8rem;
    }
    
    .calendar-day {
        min-height: 50px;
        padding: 0.25rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .analytics-value {
        font-size: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* ===== TOOLTIP ===== */

.calendar-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s ease;
    max-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.calendar-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.tooltip-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #fff;
}

.tooltip-content {
    line-height: 1.4;
}

.tooltip-capacity {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* ===== МОДАЛЬНЕ ВІКНО ПЛАНУ ===== */

#day-plan-modal .modal-content {
    max-width: 900px;
    width: 95%;
}

.plan-stats-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.plan-stat {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.plan-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.plan-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    position: relative;
    background: #e9ecef;
    border-radius: 10px;
    height: 30px;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #28a745, #20c997);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
    z-index: 2;
}

.plan-items-section h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.no-plan-message {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.no-plan-message p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.plan-items-list {
    max-height: 400px;
    overflow-y: auto;
}

.plan-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
    position: relative;
}

.plan-item:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.plan-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.plan-item-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.plan-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
}

.plan-item-code {
    font-size: 0.8rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.plan-item-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.plan-item-priority.urgent {
    background: #f8d7da;
    color: #721c24;
}

.plan-item-priority.high {
    background: #fff3cd;
    color: #856404;
}

.plan-item-priority.medium {
    background: #cce7ff;
    color: #004085;
}

.plan-item-priority.low {
    background: #d4edda;
    color: #155724;
}

.plan-item-details {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.plan-item-quantities {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
}

.quantity-info {
    text-align: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.quantity-value {
    display: block;
    font-weight: 600;
    color: #2c3e50;
}

.quantity-label {
    font-size: 0.75rem;
    color: #6c757d;
}

.plan-item-progress {
    width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.item-progress-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(
        #28a745 0deg, 
        #28a745 calc(var(--progress-percent, 0%) * 3.6deg),
        #e9ecef calc(var(--progress-percent, 0%) * 3.6deg),
        #e9ecef 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    position: relative;
}

.item-progress-circle::before {
    content: '';
    width: 75%;
    height: 75%;
    background-color: white;
    border-radius: 50%;
    position: absolute;
}

.progress-percent {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c3e50;
}

/* ===== ФОРМА ШВИДКОГО ДОДАВАННЯ ===== */

.quick-add-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.quick-add-section h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
}

.quick-add-form .form-row {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.quick-add-form .form-group {
    flex: 1;
}

.quick-add-form .form-group:last-child {
    flex: 0 0 auto;
}

/* ===== АДАПТИВНІСТЬ ДЛЯ МОДАЛЬНОГО ВІКНА ===== */

@media (max-width: 768px) {
    .plan-stats-row {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .plan-item-details {
        flex-direction: column;
        gap: 1rem;
    }
    
    .plan-item-progress {
        width: 100%;
        flex-direction: row;
        justify-content: center;
    }
    
    .quick-add-form .form-row {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==========================================
   PLAN ITEM ACTIONS (CRUD BUTTONS)
========================================== */

/* Plan Item Actions */
.plan-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e5e5e5;
    justify-content: flex-end;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.btn-edit {
    color: #2196F3;
    border-color: #2196F3;
}

.btn-edit:hover {
    background: #2196F3;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.btn-delete {
    color: #f44336;
    border-color: #f44336;
}

.btn-delete:hover {
    background: #f44336;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.btn-small:active {
    transform: translateY(1px);
    box-shadow: none;
}

.btn-small:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive for actions */
@media (max-width: 768px) {
    .plan-item-actions {
        justify-content: center;
        gap: 12px;
    }
    
    .btn-small {
        flex: 1;
        justify-content: center;
        max-width: 120px;
    }
}