/* Submittable Reviewer Interface Styles */

#submittable-reviewer-interface {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 40px 20px;
}

.login-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 40px;
    max-width: 440px;
    width: 100%;
    animation: slideUp 0.4s ease-out;
}

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

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
}

.login-subtitle {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 24px;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.login-form input[type="email"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.field-description {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #718096;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
}

.btn-login {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.forgot-password-link {
    text-align: center;
    color: #667eea;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-password-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Dashboard Section */
.reviewer-section {
    background: #fff;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    max-width: 100%;
    resize: vertical;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Navigation Tabs */
#submittable-reviewer-interface .nav-tabs {
    border-bottom: 1px solid #ccd0d4;
    margin-bottom: 20px;
}

#submittable-reviewer-interface .nav-tab {
    background: none !important;
    border: none !important;
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent !important;
    font-size: 14px;
    color: #555 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

#submittable-reviewer-interface .nav-tab:hover {
    color: #0073aa !important;
    background: none !important;
    border-bottom-color: transparent !important;
}

#submittable-reviewer-interface .nav-tab.active {
    color: #0073aa !important;
    border-bottom-color: #0073aa !important;
    background: none !important;
}

/* Tab Content */
#submittable-reviewer-interface .tab-content {
    display: none !important;
}

#submittable-reviewer-interface .tab-content.active {
    display: block !important;
}

/* Submissions List */
.submissions-list {
    min-height: 200px;
}

.submission-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.submission-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.submission-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.submission-meta {
    font-size: 14px;
    color: #666;
    margin-top: 6px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.meta-line {
    margin-bottom: 4px;
}

.meta-line.email-line a {
    color: #0073aa;
    text-decoration: none;
}

.meta-line.email-line a:hover {
    text-decoration: underline;
}

.submission-excerpt {
    color: #555;
    margin-bottom: 15px;
    font-size: 13px;
}

.submission-actions {
    display: flex;
    gap: 10px;
}

/* Status Badges */
.status-badge {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

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

.status-assigned {
    background-color: #d1ecf1;
    color: #0c5460;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

/* AI Status Colors */
.ai-status-accepted {
    color: #28a745;
    font-weight: 600;
}

.ai-status-review {
    color: #ffb900;
    font-weight: 600;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.modal-content {
    background: #fff;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 80vh;
    overflow-y: auto;
}

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

.modal-header h3 {
    margin: 0;
}

.close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.modal-body h4:first-child {
    margin-top: 0;
}

/* File List */
.file-list {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.file-item:last-child {
    border-bottom: none;
}

.file-name {
    font-weight: 500;
    font-size: 13px;
}

.file-size {
    color: #666;
    font-size: 12px;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.file-actions .button {
    margin: 0 !important;
}

.file-summary {
    border-radius: 4px;
}

.file-summary .summary-section {
    margin-bottom: 15px;
}

.file-summary .summary-section:last-child {
    margin-bottom: 0;
}

.file-summary .summary-section strong {
    display: block;
    margin-bottom: 5px;
    color: #2271b1;
}

.file-summary .summary-section p {
    margin: 0;
    line-height: 1.6;
}

/* AI Evaluation */
.ai-evaluation {
    background: #e8f4f8;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    font-size: 13px;
}

.ai-score {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.ai-score.score-1 { color: #dc3545; }
.ai-score.score-2 { color: #ffc107; }
.ai-score.score-3 { color: #28a745; }

/* Messages */
.message {
    margin: 20px 0 0 0;
}

.login-card .message {
    margin-top: 24px;
}

.message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

.message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

.message-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

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

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f7f7f7;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
}

.button:hover {
    background: #e7e7e7;
    border-color: #999;
    color: #333;
}

.button-primary {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.button-primary:hover {
    background: #005a87;
    border-color: #005a87;
    color: #fff;
}

.button-secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.button-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
    color: #fff;
}

.button-link-delete {
    color: #dc3545;
    border-color: transparent;
    background: transparent;
}

.button-link-delete:hover {
    color: #c82333;
    background: transparent;
}

/* Pagination */
.pagination-container {
    margin-top: 20px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    color: #666;
    font-size: 14px;
}

.pagination-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 40px;
    padding: 6px 10px;
    font-size: 13px;
}

.pagination-current {
    pointer-events: none;
}

.pagination-ellipsis {
    padding: 6px 4px;
    color: #666;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    #submittable-reviewer-interface {
        padding: 10px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .submission-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .submission-actions {
        flex-wrap: wrap;
    }

    .modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }

    .nav-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
}