/* ICKF Submission Page Styles */

.ickf-submit-page {
    max-width: 800px;
    margin: 0 auto;
}

.ickf-submit-page h1 {
    margin-bottom: 16px;
}

/* Flash messages */
.ickf-flash {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.95em;
}

.ickf-flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ickf-flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Scope notice */
.ickf-scope-notice {
    padding: 14px 18px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    margin-bottom: 24px;
    font-size: 0.9em;
    color: #856404;
    line-height: 1.6;
}

/* Auth tabs */
.ickf-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 2px solid #e0e0e0;
}

.ickf-tab-btn {
    padding: 10px 24px;
    border: none;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 1em;
    border-radius: 4px 4px 0 0;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    margin-bottom: -2px;
    color: #555;
}

.ickf-tab-btn.active {
    background: #fff;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #fff;
}

.ickf-tab-content {
    padding: 24px;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background: #fff;
    margin-bottom: 24px;
}

/* Login form overrides */
.ickf-tab-content .login-username,
.ickf-tab-content .login-password {
    margin-bottom: 12px;
}

.ickf-tab-content .login-username label,
.ickf-tab-content .login-password label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.ickf-tab-content .login-username input,
.ickf-tab-content .login-password input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.ickf-tab-content .login-submit .button-primary {
    padding: 8px 24px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

/* User greeting */
.ickf-user-greeting {
    margin-bottom: 24px;
    font-size: 0.95em;
    color: #555;
}

/* Action buttons */
.ickf-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.ickf-action-btn {
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #333;
    transition: border-color 0.2s, background 0.2s;
    text-align: center;
}

.ickf-action-btn:hover {
    border-color: #0073aa;
    background: #f0f7fc;
    color: #0073aa;
}

/* Form fields */
.ickf-form-field {
    margin-bottom: 16px;
}

.ickf-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9em;
    color: #333;
}

.ickf-form-field input[type="text"],
.ickf-form-field input[type="email"],
.ickf-form-field input[type="password"],
.ickf-form-field input[type="number"],
.ickf-form-field input[type="url"],
.ickf-form-field select,
.ickf-form-field textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95em;
}

.ickf-form-field input.small-input {
    width: 180px;
}

.ickf-form-field input[type="number"][min="1900"] {
    min-width: 140px;
    width: 100%;
}

.ickf-form-field textarea {
    resize: vertical;
}

/* Two-column rows */
.ickf-form-row {
    display: flex;
    gap: 16px;
}

.ickf-form-row .ickf-form-field {
    flex: 1;
}

/* Captcha */
.ickf-captcha-field {
    background: #f7f7f7;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.ickf-captcha-field label {
    font-weight: 700;
    color: #0073aa;
}

/* Buttons */
.ickf-submit-btn {
    padding: 10px 28px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
}

.ickf-submit-btn:hover {
    background: #005a87;
}

.ickf-link-btn {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: underline;
    padding: 0;
}

.ickf-link-btn:hover {
    color: #005a87;
}

.ickf-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

/* Search dropdown */
.ickf-search-dropdown {
    position: relative;
}

.ickf-search-dropdown .ickf-results-list {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ickf-search-dropdown .ickf-result-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.ickf-search-dropdown .ickf-result-item:hover {
    background: #f0f7fc;
}

.ickf-search-dropdown .ickf-result-item:last-child {
    border-bottom: none;
}

/* CSV instructions */
.ickf-csv-instructions {
    margin-bottom: 24px;
    padding: 18px 20px;
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.ickf-csv-instructions h3 {
    margin: 0 0 10px;
    font-size: 1em;
}

.ickf-csv-instructions ol {
    margin: 0 0 16px 20px;
    padding: 0;
    font-size: 0.9em;
    line-height: 1.7;
    color: #444;
}

.ickf-csv-instructions code {
    background: #e8e8e8;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.9em;
}

.ickf-ref-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88em;
    margin-bottom: 12px;
}

.ickf-ref-table th,
.ickf-ref-table td {
    padding: 6px 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.ickf-ref-table th {
    background: #e8e8e8;
    font-weight: 600;
}

.ickf-ref-table tr:nth-child(even) td {
    background: #fafafa;
}

.ickf-csv-example {
    margin-top: 8px;
    font-size: 0.88em;
}

.ickf-csv-example summary {
    cursor: pointer;
    color: #0073aa;
    font-weight: 600;
}

.ickf-csv-example pre {
    margin: 8px 0 0;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.92em;
    line-height: 1.5;
}

/* Register form */
.ickf-register-form .ickf-form-field {
    max-width: 400px;
}

@media (max-width: 600px) {
    .ickf-action-buttons {
        grid-template-columns: 1fr;
    }

    .ickf-form-row {
        flex-direction: column;
        gap: 0;
    }
}
