/* Judge Dashboard – Premium SaaS-style UI (no admin tables) */

.gpmf-awards-dashboard--judge {
    max-width: 1120px;
    margin: 20px auto;
    padding: 0 16px 32px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
}

.gpmf-awards-dashboard--judge h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
}

.gpmf-awards-dashboard__intro {
    margin-bottom: 20px;
    color: #6b7280;
}

.gpmf-awards-messages {
    margin-bottom: 16px;
}

.gpmf-awards-messages .notice {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 6px;
    border-left-width: 4px;
}

.gpmf-awards-messages .notice-success {
    background: #ecfdf5;
    border-left-color: #10b981;
    color: #065f46;
}

.gpmf-awards-messages .notice-error {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

/* Summary metrics row */
.gpmf-judge-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 20px;
}

@media (max-width: 960px) {
    .gpmf-judge-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.gpmf-judge-summary-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.gpmf-judge-summary-card__label {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 4px;
}

.gpmf-judge-summary-card__value {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

/* Filters */
.gpmf-judge-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.gpmf-judge-filters label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.gpmf-judge-filters select {
    margin-left: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 16px;
    min-width: 140px;
}

/* Card grid (list) */
.gpmf-judge-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.gpmf-judge-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
    padding: 18px 20px;
    transition: box-shadow 0.15s ease;
}

.gpmf-judge-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.gpmf-judge-card__meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.gpmf-judge-card__updated {
    font-size: 12px;
    color: #9ca3af;
}

.gpmf-judge-card__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #111827;
}

.gpmf-judge-card__applicant {
    font-size: 15px;
    color: #4b5563;
    margin-bottom: 10px;
}

.gpmf-judge-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.gpmf-judge-card__action {
    margin-top: 12px;
}

.gpmf-judge-card__action .gpmf-btn-review {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    background: #2563eb;
    color: #fff;
}

.gpmf-judge-card__action .gpmf-btn-review:hover {
    background: #1d4ed8;
}

.gpmf-judge-card__action .gpmf-btn-view-only {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #4b5563;
    cursor: pointer;
    text-decoration: none;
}

.gpmf-judge-card__action .gpmf-btn-view-only:hover {
    background: #f3f4f6;
}

/* Badges */
.gpmf-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gpmf-badge--status-draft {
    background: #fef3c7;
    color: #92400e;
}

.gpmf-badge--status-submitted {
    background: #dcfce7;
    color: #166534;
}

.gpmf-badge--status-not-scored {
    background: #f3f4f6;
    color: #4b5563;
}

.gpmf-badge--status-under-review,
.gpmf-badge--status-finalist {
    background: #dbeafe;
    color: #1d4ed8;
}

.gpmf-badge--status-winner {
    background: #fef9c3;
    color: #854d0e;
}

.gpmf-badge--status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* Detail view */
.gpmf-judge-detail {
    margin-top: 0;
}

.gpmf-judge-detail__back {
    display: inline-flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 8px 0;
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
}

.gpmf-judge-detail__back:hover {
    text-decoration: underline;
}

.gpmf-judge-section {
    margin-top: 24px;
}

.gpmf-judge-section__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px;
    color: #111827;
}

.gpmf-judge-question-section {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.gpmf-judge-question-section__title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #374151;
}

.gpmf-judge-question {
    padding: 8px 0;
    border-top: 1px solid #e5e7eb;
}

.gpmf-judge-question:first-of-type {
    border-top: none;
}

.gpmf-judge-question__label {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.gpmf-judge-question__answer {
    font-size: 14px;
    color: #374151;
    margin-bottom: 2px;
}

.gpmf-judge-question__meta {
    font-size: 12px;
    color: #6b7280;
}

.gpmf-judge-detail__header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.gpmf-judge-detail__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #111827;
}

.gpmf-judge-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
}

.gpmf-judge-detail__meta .gpmf-badge {
    margin: 0;
}

/* Two-column layout: content + sticky scoring */
.gpmf-judge-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 960px) {
    .gpmf-judge-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.gpmf-judge-detail__content {
    min-width: 0;
}

.gpmf-judge-detail__sidebar {
    position: sticky;
    top: 24px;
}

/* Read-only sections */
.gpmf-judge-section {
    margin-bottom: 32px;
}

.gpmf-judge-section__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #374151;
}

.gpmf-judge-section p,
.gpmf-judge-section ul {
    margin: 0 0 8px;
    font-size: 15px;
    color: #4b5563;
}

.gpmf-judge-section ul {
    padding-left: 20px;
}

/* KPI table */
.gpmf-judge-kpi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.gpmf-judge-kpi-table th,
.gpmf-judge-kpi-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.gpmf-judge-kpi-table th {
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
}

.gpmf-judge-kpi-table td {
    color: #4b5563;
}

/* Attachments */
.gpmf-judge-attachments {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gpmf-judge-attachment {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 4px;
}

.gpmf-judge-attachment__name {
    flex: 1;
    font-size: 13px;
    color: #374151;
}

.gpmf-judge-attachment__download {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
}

.gpmf-judge-attachment__download:hover {
    background: #f9fafb;
}

/* Scoring panel */
.gpmf-judge-score-panel {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5e7eb;
    padding: 20px;
}

.gpmf-judge-score-panel__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #111827;
}

.gpmf-judge-score-panel__total {
    margin-bottom: 18px;
    padding: 12px 14px;
    background: #f0fdf4;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #166534;
}

.gpmf-judge-score-panel__actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.gpmf-judge-score-criterion {
    margin-bottom: 16px;
}

.gpmf-judge-score-criterion__label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #374151;
}

.gpmf-judge-score-criterion__meta {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
}

.gpmf-judge-comment-toggle {
    display: inline-block;
    margin-top: 4px;
    padding: 0;
    border: none;
    background: none;
    font-size: 12px;
    color: #2563eb;
    cursor: pointer;
}

.gpmf-judge-comment-toggle:hover {
    text-decoration: underline;
}

.gpmf-judge-comment {
    margin-top: 6px;
}

.gpmf-judge-comment textarea {
    width: 100%;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    box-sizing: border-box;
}

.gpmf-judge-score-criterion input[type="number"] {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 16px;
    box-sizing: border-box;
}

.gpmf-judge-score-criterion input:disabled {
    background: #f3f4f6;
    cursor: not-allowed;
}

.gpmf-judge-score-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.gpmf-judge-score-panel__actions .button {
    margin: 0;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
}

.gpmf-judge-score-panel__actions .button-primary {
    background: #2563eb;
    border-color: #2563eb;
}

.gpmf-judge-score-panel__actions .button-primary:hover {
    background: #1d4ed8;
}

.gpmf-judge-score-panel__locked,
.gpmf-judge-score-panel__view-only {
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
}

.gpmf-judge-score-panel__locked {
    background: #ecfdf5;
    color: #166534;
}

.gpmf-judge-score-panel__view-only {
    background: #f3f4f6;
    color: #4b5563;
}

.gpmf-judge-header-actions {
    margin-bottom: 12px;
    text-align: right;
}

.gpmf-judge-header-actions .gpmf-logout-link {
    font-size: 14px;
}

/* Auth card (logged-out state) */
.gpmf-auth-card {
    max-width: 420px;
    margin-top: 16px;
}

.gpmf-auth-card__logo {
    padding: 20px 20px 0;
    text-align: center;
}

.gpmf-auth-card__logo img {
    max-height: 56px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.gpmf-auth-card__intro {
    margin-bottom: 16px;
    color: #4b5563;
}

.gpmf-auth-card__actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gpmf-auth-card__fallback {
    margin-top: 16px;
    font-size: 13px;
}

.gpmf-auth-card__fallback a {
    color: #6b7280;
}

/* Auth form (login) */
.gpmf-auth-form__error {
    padding: 10px 12px;
    margin-bottom: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #b91c1c;
    font-size: 14px;
}

.gpmf-auth-form .gpmf-auth-form__field {
    margin-bottom: 14px;
}

.gpmf-auth-form__field label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.gpmf-auth-form__field input {
    width: 100%;
    padding: 8px 12px;
    font-size: 15px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-sizing: border-box;
}

.gpmf-auth-form__field input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.gpmf-auth-form button[type="submit"] {
    margin-top: 8px;
}

/* Loading / empty */
.gpmf-judge-loading,
.gpmf-judge-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.gpmf-judge-empty {
    background: #f9fafb;
    border-radius: 8px;
    border: 1px dashed #e5e7eb;
}
