/* Crop Schedule Calculator Plugin Styles */

#crop-schedule-calculator {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

#crop-schedule-calculator h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 10px;
}

#crop-schedule-calculator h4 {
    color: #34495e;
    margin: 25px 0 15px 0;
    font-size: 20px;
    font-weight: 500;
}

.csc-form {
    margin-bottom: 25px;
}

.csc-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

#crop-select {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fff;
    transition: border-color 0.3s ease;
}

#crop-select:focus {
    outline: none;
    border-color: #27ae60;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.climate-note {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-left: 4px solid #f39c12;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.climate-note p {
    margin: 0;
    color: #5d4e75;
    font-size: 14px;
    font-weight: 500;
}

#schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

#schedule-table thead {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

#schedule-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    font-size: 16px;
    letter-spacing: 0.5px;
}

#schedule-table th:first-child {
    width: 25%;
}

#schedule-table th:last-child {
    width: 75%;
}

#schedule-table tbody tr {
    transition: background-color 0.2s ease;
}

#schedule-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

#schedule-table tbody tr:hover {
    background-color: #e8f5e8;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#schedule-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: top;
    line-height: 1.6;
}

#schedule-table td:first-child {
    font-weight: 600;
    color: #2c3e50;
    background-color: rgba(39, 174, 96, 0.05);
    border-right: 2px solid #27ae60;
}

#schedule-table td strong {
    color: #34495e;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    #crop-schedule-calculator {
        padding: 15px;
        margin: 10px 0;
    }
    
    #crop-schedule-calculator h3 {
        font-size: 20px;
    }
    
    #crop-select {
        max-width: 100%;
    }
    
    #schedule-table {
        font-size: 14px;
    }
    
    #schedule-table th,
    #schedule-table td {
        padding: 12px 15px;
    }
    
    #schedule-table th:first-child,
    #schedule-table td:first-child {
        width: 30%;
    }
    
    .climate-note {
        padding: 12px 15px;
        margin: 15px 0;
    }
}

@media (max-width: 480px) {
    #schedule-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    #schedule-table thead,
    #schedule-table tbody,
    #schedule-table th,
    #schedule-table td,
    #schedule-table tr {
        display: block;
    }
    
    #schedule-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    #schedule-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 6px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    #schedule-table td {
        border: none;
        position: relative;
        padding: 8px 10px 8px 35%;
        white-space: normal;
        text-align: left;
    }
    
    #schedule-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 30%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: #2c3e50;
    }
}

/* Loading and transition effects */
#schedule-display {
    animation: fadeIn 0.3s ease-in;
}

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

/* Success and highlight colors */
.highlight-success {
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
}

.text-success {
    color: #155724 !important;
}

.text-warning {
    color: #856404 !important;
}

.text-info {
    color: #0c5460 !important;
}

/* Print styles */
@media print {
    #crop-schedule-calculator {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .csc-form {
        display: none;
    }
    
    #schedule-table {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    #schedule-table tbody tr:hover {
        background-color: transparent !important;
        transform: none !important;
        box-shadow: none !important;
    }
}