/* Frontend styles for LearnPress Instructor Hours Tracker */
.lp-hours-instructor-shortcode {
    max-width: 900px;
    margin: 30px auto;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: 'Inter', sans-serif;
}

.lp-instructor-rate {
    margin-bottom: 25px;
    padding: 15px;
    background: #e9f4ff;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.lp-instructor-rate p {
    margin: 0;
    font-size: 16px;
    color: #1a1a1a;
    font-weight: 500;
}

.lp-instructor-rate strong {
    color: #0073aa;
    font-weight: 700;
}

.lp-hours-form-wrapper {
    margin-bottom: 40px;
    padding: 25px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.lp-hours-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.lp-form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.lp-form-group {
    flex: 1;
    min-width: 220px;
}

.lp-form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.lp-form-group select,
.lp-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.lp-form-group select:focus,
.lp-form-group input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.lp-form-note {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
    font-style: italic;
}

.lp-form-actions {
    margin-top: 15px;
}

.lp-btn,
.edit-log-btn,
.save-log-btn,
.cancel-log-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.lp-btn-primary {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
}

.lp-btn-primary:hover {
    background: linear-gradient(135deg, #005a87, #003d5b);
    transform: translateY(-2px);
}

.edit-log-btn {
    background: #0073aa;
    color: white;
}

.save-log-btn {
    background: #2ecc71;
    color: white;
}

.cancel-log-btn {
    background: #6b7280;
    color: white;
}

.edit-log-btn:hover,
.save-log-btn:hover,
.cancel-log-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.hours-input {
    width: 100px;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
}

.lp-hours-history-wrapper,
.lp-hours-summary,
.lp-hours-full-history,
.lp-monthly-summary-grid {
    margin-top: 30px;
}

.lp-recent-logs,
.lp-full-history,
.monthly-summary {
    margin-top: 15px;
}

.lp-logs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.lp-logs-table th,
.lp-logs-table td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
}

.lp-logs-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #1a1a1a;
}

.lp-logs-table tr:last-child td {
    border-bottom: none;
}

.hours-badge {
    background: #e9f4ff;
    color: #0073aa;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.lp-message-container {
    margin-top: 20px;
}

.lp-message {
    padding: 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.lp-message-success {
    background: #d1fae5;
    color: #065f46;
}

.lp-message-error {
    background: #fee2e2;
    color: #991b1b;
}

.lp-hours-error,
.lp-no-logs,
.lp-no-data,
.lp-loading {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    color: #6b7280;
    font-size: 16px;
}

.lp-hours-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding: 20px;
    background: #f1f5f9;
    border-radius: 8px;
}

.course-detail-section {
    margin-bottom: 25px;
}

.course-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.course-detail-header h3 {
    margin: 0;
    color: #1a1a1a;
    font-size: 18px;
}

.course-total-hours {
    font-weight: 600;
    color: #4b5563;
    font-size: 14px;
}

.logs-detail-table table {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
}

.monthly-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.monthly-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    padding: 20px;
    transition: transform 0.3s ease;
}

.monthly-card:hover {
    transform: translateY(-4px);
}

.monthly-card-header {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-size: 16px;
}

.monthly-card-stats {
    display: flex;
    gap: 20px;
}

.monthly-stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #0073aa;
}

.monthly-stat-label {
    font-size: 12px;
    color: #6b7280;
}

.total-summary-card {
    margin-top: 25px;
    padding: 20px;
    background: #e9f4ff;
    border-radius: 8px;
    text-align: center;
}

.total-hours-display {
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
}