/**
 * Job Listing Manager - Styles
 * Save as: assets/css/style.css
 */

/* Main Container */
.jlm-wrapper {
    max-width: 1200px;
    margin: 0 auto;
/*     padding: 20px; */
    font-family: Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header */
.jlm-header {
/*     background: #287ff9 !important; */
    color: white;
/*     padding: 40px; */
    border-radius: 12px;
/*     margin-bottom: 30px; */
/*     box-shadow: 0 4px 15px rgba(0,0,0,0.1); */
}

.jlm-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.jlm-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #fff !important;
}

.jlm-subtitle {
    margin: 8px 0 0 0;
    opacity: 0.9;
    font-size: 16px;
}

/* Buttons */
.jlm-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.jlm-btn-primary {
    background: white;
    color: #667eea;
}

.jlm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.jlm-btn-large {
    width: 100%;
    justify-content: center;
    padding: 16px 32px;
    font-size: 18px;
}

.jlm-btn .icon {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}

/* Form Container */
.jlm-form-wrapper {
    margin-bottom: 30px;
}

.jlm-form-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 2px solid #287ff9 !important;
}

.jlm-form-box h2 {
    margin: 0 0 25px 0;
    color: #287ff9 !important;
    font-size: 24px;
}

.jlm-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Form Fields with Labels */
.jlm-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jlm-form-field label {
    font-size: 16px;
    font-weight: 600;
    color: #000 !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

.jlm-required {
    color:red !important;
    font-size: 16px;
    font-weight: bold;
}

.jlm-input,
.jlm-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.jlm-input:focus,
.jlm-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.jlm-input.jlm-error,
.jlm-textarea.jlm-error {
    border-color: #dc3232;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.jlm-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Job Listings Section */
.jlm-content {
    margin-top: 30px;
}

.jlm-section-title {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.jlm-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Job Card */
.jlm-job-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    position: relative;
    padding-bottom: 60px; /* Add padding for deadline badge */
}

.jlm-job-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* Deadline Badge - Bottom Left */
.jlm-deadline-badge {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 0 8px 0 12px;
    min-width: 180px;
}

.jlm-deadline-active {
    background: #46b450;
    color: white;
}

.jlm-deadline-expired {
    background: #dc3232;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.jlm-job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.jlm-job-info {
    flex: 1;
    min-width: 250px;
}

.jlm-job-title {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: #287ff9 !important;
    font-weight: 700;
    text-transform: capitalize;
}

.jlm-job-org {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.jlm-job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #888;
    font-size: 14px;
}

.jlm-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.jlm-meta-item svg {
    flex-shrink: 0;
}

.jlm-job-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.jlm-btn-details {
    background: #667eea;
    color: white;
    white-space: nowrap;
}

.jlm-btn-details:hover {
    background: #5568d3;
}

.jlm-chevron {
    transition: transform 0.3s ease;
}

.jlm-chevron.jlm-rotate {
    transform: rotate(180deg);
}

/* Job Details */
.jlm-job-details {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.jlm-detail-section {
    margin-bottom: 30px !important;
}

.jlm-detail-section:last-child {
    margin-bottom: 0 !important;
}

.jlm-detail-section h4 {
    margin: 0 0 10px 0;
    color: #287ff9;
    font-size: 16px;
    font-weight: 600;
}

.jlm-detail-section p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

.jlm-contact-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.jlm-contact-info p {
    margin: 5px 0;
}

/* Admin Controls */
.jlm-admin-controls {
    display: flex;
    gap: 8px;
}

.jlm-btn-icon {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jlm-btn-edit {
    color: #667eea;
}

.jlm-btn-edit:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.jlm-btn-delete {
    color: #dc3232;
}

.jlm-btn-delete:hover {
    background: #dc3232;
    color: white;
    border-color: #dc3232;
}

/* Empty State */
.jlm-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.jlm-empty-state svg {
    color: #ccc;
    margin-bottom: 20px;
}

.jlm-empty-title {
    font-size: 20px;
    color: #666;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.jlm-empty-subtitle {
    font-size: 16px;
    color: #999;
    margin: 0;
}

/* Loading State */
.jlm-loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 16px;
}

/* Error Message */
.jlm-error-message {
    background: #fff5f5;
    color: #dc3232;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #dc3232;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jlm-wrapper {
        padding: 15px;
    }
    
/*     .jlm-header {
        padding: 30px 20px;
    } */
    
    .jlm-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .jlm-header-right {
        width: 100%;
    }
    
    .jlm-btn {
        width: 100%;
        justify-content: center;
    }
    
    .jlm-form-grid {
        grid-template-columns: 1fr;
    }
    
    .jlm-form-box {
        padding: 20px;
    }
    
    .jlm-job-card {
        padding: 20px;
        padding-bottom: 55px;
    }
    
    .jlm-job-header {
        flex-direction: column;
    }
    
    .jlm-job-actions {
        width: 100%;
        flex-direction: column;
        margin-bottom: 15px !important;
    }
    
    .jlm-btn-details {
        width: 100%;
    }
    
    .jlm-admin-controls {
        width: 100%;
        justify-content: flex-end;
    }
    
    .jlm-deadline-badge {
        font-size: 12px;
        padding: 6px 12px;
        min-width: 150px;
    }
}

@media (max-width: 480px) {
/*     .jlm-header {
        padding: 25px 15px;
    }
     */
    .jlm-title {
        font-size: 24px;
    }
    
    .jlm-subtitle {
        font-size: 14px;
    }
    
    .jlm-form-box {
        padding: 15px;
    }
    
    .jlm-job-card {
        padding: 15px;
        padding-bottom: 50px;
    }
    
    .jlm-job-title {
        font-size: 18px;
    }
    
    .jlm-job-org {
        font-size: 14px;
    }
    
    .jlm-job-meta {
        font-size: 13px;
        gap: 10px;
    }
    
    .jlm-meta-item svg {
        width: 14px;
        height: 14px;
    }
    
    .jlm-deadline-badge {
        font-size: 11px;
        padding: 5px 10px;
        min-width: 140px;
    }
}

/* Additional utility classes */
.jlm-mb-0 { margin-bottom: 0 !important; }
.jlm-mt-0 { margin-top: 0 !important; }
.jlm-p-0 { padding: 0 !important; }

.jlm-inline-apply{margin-left:10px;font-weight:600;text-decoration:underline;}
.jlm-apply-now-link{display:inline-block;margin-top:10px;font-weight:600;text-decoration:underline;}
.jlm-optional{font-weight:400;color:#666;font-size:0.9em;}

/* Apply Now link/button */
.jlm-meta-item a{
  font-weight:600;
  text-decoration:underline;
}

.jlm-apply-btn{
  display:inline-block;
  padding:10px 16px;
  border-radius:10px;
  background:#2563eb;
  color:#fff !important;
  font-weight:600;
  text-decoration:none;
}
.jlm-apply-btn:hover{opacity:0.9;}


/* Full-width field support (Application URL) */
.jlm-span-full{
    grid-column: 1 / -1 !important;
}
.jlm-input-full{
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.jlm-error{
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
}
