:root {
    --company-red: #f8d7da;
    --hover-red: #E74C3C;
    --company-darkRed: #BD2224;
    --company-gray: #6b7280;
}

.job-card {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.job-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    background-color: white;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--company-darkRed);
}

.card-description {
    color: var(--company-gray);
    font-size: 0.875rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid var(--company-red);
    background-color: #eff6ff;
    color: var(--company-red);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.job-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .job-meta-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.75rem;
        margin-bottom: 1rem;
        font-size: 0.875rem;
        line-height: 1.25rem;
        color: var(--company-gray);
        display: grid;
    }
}

.job-meta-item {
    display: flex;
    align-items: center;
    color: var(--company-gray);
}

.job-meta-item svg {
    margin-right: 0.5rem;
    color: var(--company-darkRed);
    width: 1rem;
    height: 1rem;
}

.job-description {
    color: var(--company-gray);
    margin-bottom: 1rem;
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: #f9fafb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-details {
    display: inline-flex;
    align-items: center;
    color: var(--company-darkRed);
    font-weight: 500;
    padding: 0rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-details:hover {
    background-color: var(--company-red);
}

.btn-apply {
    background-color: var(--company-darkRed);
    color: white;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    padding: 0rem 0.5rem;
}

.btn-apply:hover {
    background-color: var(--hover-red);
    color: white;
}

.bg-success-subtle {
    background-color: #d1fae5;
    color: #065f46;
}

.tagg{
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #065f46; /* Dark green color */
    height: 30px;
}

/* Style cho phần mô tả công việc ẩn/hiện */
.job-full-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.job-full-description.expanded {
    max-height: 2000px; /* Giá trị đủ lớn để chứa nội dung */
}

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

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

/* Custom Modal Styles */
.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.custom-modal-dialog {
    background-color: white;
    border-radius: 0.5rem;
    width: 90%;
    max-width: 800px;
    height: 70vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.custom-modal.show .custom-modal-dialog {
    transform: scale(1);
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--company-red);
}

.custom-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--company-darkRed);
}

.custom-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--company-darkRed);
    cursor: pointer;
}

.custom-modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.custom-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

/* Form styles for compact modal */
.form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #374151;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    transition: border-color 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--company-darkRed);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(189, 34, 36, 0.2);
}

.text-danger {
    color: var(--company-darkRed);
}

.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.d-none {
    display: none;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
    cursor: pointer;
}

.btn-secondary {
    color: #fff;
    background-color: #6b7280;
    border: 1px solid #6b7280;
}

.btn-secondary:hover {
    background-color: #4b5563;
    border-color: #4b5563;
}

.mb-3 {
    margin-bottom: 1rem;
}

/* Enhanced form container styles */
.forms-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 4rem auto;
    max-width: 1200px;
}

.application-form,
.lookup-form {
    flex: 1;
    min-width: 0;
}

.lookup-form {
    display: flex;
    flex-direction: column;
}

.lookup-form .form-group {
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .forms-container {
        flex-direction: column;
        gap: 3rem;
    }
    
    .application-form,
    .lookup-form {
        width: 100%;
    }
}

/* Consistent form styling */
.application-form,
.lookup-form {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* Remove mt-16 from application form since we're using container margin */
.application-form {
    margin-top: 0;
}
