/* Rock Your Goal Challenge Core - Frontend Styles */

.ryg-core-dashboard {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ryg-core-login-prompt {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.ryg-core-login-prompt a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.ryg-core-lsp-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
}

.ryg-core-lsp-total {
    font-size: 2.5em;
    font-weight: 700;
    display: block;
    margin-top: 10px;
}

.ryg-core-challenge-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.ryg-core-challenge-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ryg-core-challenge-card h4 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.ryg-core-challenge-type {
    color: #888;
    font-size: 0.85em;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}

.ryg-core-progress-bar {
    background: #e0e0e0;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    margin: 10px 0;
}

.ryg-core-progress-bar > div {
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.ryg-core-progress-text {
    font-size: 0.9em;
    color: #555;
    margin: 5px 0;
}

.ryg-core-lsp-earned {
    color: #764ba2;
    font-weight: 600;
    margin: 5px 0 0 0;
}

.ryg-core-completed-badge {
    display: inline-block;
    background: #4caf50;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 600;
    margin-top: 5px;
}

.ryg-core-challenge-link {
    display: block;
    text-align: right;
    margin-top: 10px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
}

.ryg-core-challenge-link:hover {
    text-decoration: underline;
}

/* Entry Form */
.ryg-core-entry-form {
    max-width: 800px;
    margin: 0 auto;
}

.ryg-core-entry-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 10px;
    align-items: end;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.ryg-core-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9em;
}

.ryg-core-form-group select,
.ryg-core-form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
}

.ryg-core-form-actions {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.ryg-core-entry-messages .ryg-core-success {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
}

.ryg-core-entry-messages .ryg-core-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
}

/* Entries List */
.ryg-core-entries-list {
    max-width: 900px;
    margin: 0 auto;
}

.ryg-core-filter-bar {
    display: flex;
    gap: 10px;
    align-items: end;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.ryg-core-filter-bar label {
    font-weight: 600;
    font-size: 0.9em;
}

.ryg-core-status-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
    font-weight: 600;
}

.ryg-core-status-pending {
    background: #fff3cd;
    color: #856404;
}

.ryg-core-status-approved {
    background: #d4edda;
    color: #155724;
}

.ryg-core-status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.ryg-core-inline-edit {
    margin-top: 5px;
}

.ryg-core-inline-edit input {
    width: 80px;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* Admin Evaluation */
.ryg-core-eval-filters {
    display: flex;
    gap: 15px;
    align-items: end;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.ryg-core-eval-filters label {
    font-weight: 600;
}

.ryg-core-first-steps {
    background: #e8f5e9;
    padding: 15px 20px;
    border-radius: 6px;
    margin: 15px 0;
}

.ryg-core-first-steps h3 {
    margin-top: 0;
}

.ryg-core-recent-entries {
    margin: 20px 0;
}

.ryg-core-entry {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.ryg-core-links {
    margin: 20px 0;
}

.ryg-core-links .button {
    margin-right: 10px;
}

.ryg-core-ad-progress {
    background: #fff3cd;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ffc107;
    margin: 15px 0;
}

.ryg-core-row-error-border {
    border: 2px solid #dc3545 !important;
    background: #fff5f5 !important;
}

.ryg-core-row-error {
    color: #dc3545;
    font-size: 0.8em;
    font-weight: 600;
    margin-top: 4px;
    grid-column: 1 / -1;
}

.ryg-core-sortable {
    cursor: pointer;
    user-select: none;
}

.ryg-core-sortable:hover {
    background-color: #e9ecef;
}

.ryg-core-sort-arrow {
    font-size: 0.8em;
    color: #666;
}
