/* JVR User Job Submission Styles */

.jvr-job-submission-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* User Info Section */
.jvr-user-info {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #10b981;
}

.jvr-user-info p {
    margin: 5px 0;
    font-size: 14px;
}

.jvr-user-info .user-email {
    color: #6c757d;
    font-size: 13px;
}

.jvr-user-info .jobs-count {
    color: #10b981;
    font-weight: 600;
}

/* Notice Messages */
.jvr-submit-notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border-left: 4px solid;
}

.jvr-submit-notice.success {
    background: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.jvr-submit-notice.error {
    background: #fee2e2;
    border-color: #ef4444;
    color: #991b1b;
}

.jvr-submit-notice p {
    margin: 0;
}

/* Form Styles */
.jvr-submit-form {
    margin-top: 25px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
    font-size: 14px;
}

.form-group .required {
    color: #ef4444;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #6c757d;
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

textarea.form-control {
    font-family: inherit;
    resize: vertical;
    min-height: 200px;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 40px;
    /* Fixed: Better height and line-height for readability */
    min-height: 48px;
    line-height: 1.6;
    padding-top: 12px;
    padding-bottom: 12px;
}

select.form-control option {
    padding: 10px;
    line-height: 1.8;
    min-height: 40px;
}

/* Multi-select tag field */
select.form-control[multiple] {
    min-height: 120px;
    padding: 8px;
    background-image: none; /* Remove dropdown arrow for multi-select */
}

select.form-control[multiple] option {
    padding: 8px 12px;
    border-radius: 4px;
    margin: 2px 0;
    cursor: pointer;
}

select.form-control[multiple] option:hover {
    background: #f3f4f6;
}

select.form-control[multiple] option:checked,
select.form-control[multiple] option:selected {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    font-weight: 500;
}

/* Form Rows (2 columns) */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group.half {
    flex: 1;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-group.half {
        margin-bottom: 20px;
    }
}

/* Checkbox */
.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.form-group label:has(input[type="checkbox"]) {
    display: inline-flex;
    align-items: center;
    font-weight: 400;
    cursor: pointer;
}

/* Submit Button */
.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn-submit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%; /* Full width on all screens */
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

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

.btn-submit .icon {
    font-size: 18px;
}

.notice-text {
    margin-top: 15px;
    color: #6c757d;
    font-size: 13px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .jvr-job-submission-wrapper {
        padding: 20px 15px;
        border-radius: 0;
    }
}

/* Loading State */
.jvr-submit-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.jvr-submit-form.loading .btn-submit::after {
    content: "...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}

/* Focus Styles for Accessibility */
.form-control:focus,
.btn-submit:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Error State */
.form-control.error {
    border-color: #ef4444;
}

.form-control.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* WordPress TinyMCE Editor Styling */
.jvr-submit-form .wp-editor-wrap {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.jvr-submit-form .wp-editor-wrap:focus-within {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* TinyMCE Toolbar - Make it clearly visible */
.jvr-submit-form .mce-toolbar-grp {
    background: #f8f9fa !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 8px !important;
}

.jvr-submit-form .mce-btn {
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    margin: 2px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.jvr-submit-form .mce-btn:hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
}

.jvr-submit-form .mce-btn.mce-active,
.jvr-submit-form .mce-btn.mce-active:hover {
    background: #10b981 !important;
    border-color: #059669 !important;
    color: #fff !important;
}

.jvr-submit-form .mce-btn button {
    color: #374151 !important;
    padding: 6px 8px !important;
}

.jvr-submit-form .mce-btn.mce-active button {
    color: #fff !important;
}

/* TinyMCE Icons - Make them more visible */
.jvr-submit-form .mce-ico {
    font-size: 16px !important;
    color: #374151 !important;
}

.jvr-submit-form .mce-btn.mce-active .mce-ico {
    color: #fff !important;
}

/* TinyMCE Editor Content Area */
.jvr-submit-form .mce-edit-area {
    border: none !important;
}

.jvr-submit-form .mce-edit-area iframe {
    background: #fff !important;
}

.jvr-submit-form .mce-container-body {
    background: #fff !important;
}

/* WordPress Editor Tabs (Visual/Text) */
.jvr-submit-form .wp-editor-tabs {
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
}

.jvr-submit-form .wp-editor-tabs .wp-switch-editor {
    background: transparent;
    border: none;
    color: #6c757d;
    padding: 8px 16px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.jvr-submit-form .wp-editor-tabs .wp-switch-editor:hover {
    color: #10b981;
}

.jvr-submit-form .wp-editor-tabs .wp-switch-editor.switch-tmce,
.jvr-submit-form .wp-editor-tabs .wp-switch-editor.switch-html {
    background: #fff;
    color: #10b981;
    border-bottom-color: #10b981;
}

/* Text editor (HTML mode) */
.jvr-submit-form .wp-editor-container textarea {
    border: none !important;
    padding: 15px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    background: #fff !important;
}

/* Quicktags toolbar (HTML mode) */
.jvr-submit-form .quicktags-toolbar {
    background: #f8f9fa !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 8px !important;
}

.jvr-submit-form .quicktags-toolbar input.ed_button {
    background: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    margin: 2px !important;
    padding: 6px 10px !important;
    color: #374151 !important;
    cursor: pointer !important;
    font-size: 13px !important;
}

.jvr-submit-form .quicktags-toolbar input.ed_button:hover {
    background: #f3f4f6 !important;
    border-color: #9ca3af !important;
}

.jvr-submit-form .quicktags-toolbar input.ed_button:active {
    background: #10b981 !important;
    border-color: #059669 !important;
    color: #fff !important;
}

/* ========================================
   EMPLOYER DASHBOARD THEME INTEGRATION
   ======================================== */

/* Dashboard wrapper - NO extra containers, page.php already provides them */
.jvr-employer-dashboard {
    /* Let theme handle background, padding via page.php's col-lg-8 mx-auto */
    width: 100%;
}

/* Dashboard Header */
.jvr-employer-dashboard .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.jvr-employer-dashboard .dashboard-header h1 {
    margin: 0;
    font-size: 28px;
    color: #1f2937;
    font-weight: 700;
}

.jvr-employer-dashboard .dashboard-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Stat Cards */
.jvr-employer-dashboard .dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.jvr-employer-dashboard .stat-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.jvr-employer-dashboard .stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.jvr-employer-dashboard .stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Job Cards */
.jvr-employer-dashboard .job-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.jvr-employer-dashboard .job-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Buttons */
.jvr-employer-dashboard .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.jvr-employer-dashboard .btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.jvr-employer-dashboard .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .jvr-employer-dashboard {
        padding: 20px 15px;
        border-radius: 0;
    }
    
    .jvr-employer-dashboard .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .jvr-employer-dashboard .dashboard-header h1 {
        font-size: 24px;
    }
    
    .jvr-employer-dashboard .dashboard-stats {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .jvr-employer-dashboard .stat-number {
        font-size: 28px;
    }
}
