.em-form-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9; /* Light gray background like the image seems to have */
    border-radius: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.em-form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
    margin-bottom: 15px;
}

.em-col {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .em-col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .em-col-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

.em-form-group {
    margin-bottom: 1rem;
}

.em-form-control {
    display: block;
    width: 100%;
    padding: 0.4em 1.5em;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057 !important;
    background-color: #fff !important;
    background-clip: padding-box;
    border: 1px solid #ced4da !important;
    border-radius: 0 !important;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    box-sizing: border-box;
}

.em_titre{
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

select.em-form-control {
    height: 44px;
}

.em-form-control:focus {
    color: #495057 !important;
    background-color: #fff !important;
    border-color: #c4161c !important;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(196, 22, 28, 0.25);
}

.em-btn {
    display: inline-block !important;
    font-weight: 400;
    color: #fff !important;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: #c4161c !important;
    border: 1px solid #c4161c !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 1rem;
    line-height: 1.5;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    cursor: pointer;
    width: 100% !important; /* Make full width on mobile */
    border-radius: 0 !important;
}

@media (min-width: 768px) {
    .em-btn {
        width: auto;
        float: right;
    }
    .em-btn-block {
        width: 100%;
        display: block;
    }
}

.em-btn:hover {
    background-color: #a01217 !important;
    border-color: #941115 !important;
}

.em-btn-sm {
    padding: 4px 10px !important;
    font-size: 0.85rem !important;
    width: auto !important;
    float: none !important;
    display: inline-block !important;
    line-height: 1.2 !important;
}

.em-btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

.em-btn-danger:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

.em-file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.em-required {
    color: #c4161c !important;
}

.em-alert {
    padding: 0.75rem 1.25rem !important;
    margin-bottom: 1rem !important;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
}

.em-alert-success {
    color: #155724 !important;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.em-alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Tabs Styling */
.em-tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #ddd;
}

.em-tab-item {
    margin-bottom: -2px;
    margin-right: 5px;
}

.em-tab-link {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #555;
    border: 2px solid transparent;
    border-bottom: none;
    border-radius: 0 !important;
    font-weight: bold;
    cursor: pointer;
    background: #f1f1f1;
}

.em-tab-link:hover {
    background: #e9e9e9;
    color: #c4161c;
}

.em-tab-link.active {
    background: #fff;
    color: #c4161c;
    border-color: #ddd;
    border-bottom-color: #fff;
}

.em-tab-content {
    display: none;
}

.em-tab-content.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Styling */
.em-modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
}

.em-modal-content {
    background-color: #fefefe;
    margin: 15% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 600px;
    border-radius: 0 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.em-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.em-close:hover,
.em-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.em-modal-header {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.em-modal-title {
    margin: 0;
    color: #c4161c;
}

.em-detail-label {
    font-weight: bold;
    color: #555;
    min-width: 80px;
    display: inline-block;
}

.em-status-pending {
    color: orange;
    font-weight: bold;
}
.em-status-publish {
    color: green;
    font-weight: bold;
}
.em-status-other {
    color: #777;
}

/* Table Styling */
.em-table-responsive {
    overflow-x: auto;
}
.em-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
    color: #212529;
}
.em-table th,
.em-table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    text-align: left;
}
.em-table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}

/* ========== Co-Author Section ========== */
.em-coauthor-section {
    margin-top: 25px;
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border: 2px dashed #ced4da;
    border-radius: 0 !important;
}

.em-coauthor-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.em-coauthor-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.em-coauthor-section-header h3 small {
    font-weight: 400;
    color: #888;
    font-size: 0.85rem;
}

.em-coauthor-count {
    background: #c4161c;
    color: #fff;
    padding: 3px 10px;
    border-radius: 0 !important;
    font-size: 0.8rem;
    font-weight: 600;
}

.em-coauthor-item {
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 0 !important;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
}

.em-coauthor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.em-coauthor-legend {
    font-weight: 600;
    color: #c4161c;
    font-size: 0.95rem;
}

.em-btn-remove-coauthor {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 0 !important;
    width: 28px;
    height: 28px;
    font-size: 18px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.em-btn-remove-coauthor:hover {
    background: #a71d2a;
}

.em-btn-add-coauthor {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
    width: auto !important;
    float: none !important;
    margin-top: 5px;
    font-size: 0.9rem !important;
    padding: 8px 18px !important;
}

.em-btn-add-coauthor:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

/* ========== CAPTCHA Section ========== */
.em-captcha-section {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 0 !important;
}

.em-captcha-section label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
    font-size: 0.9rem;
    text-align: center;
}

.em-captcha-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.em-captcha-question {
    font-size: 1rem;
    font-weight: 700;
    color: #c4161c;
    background: #fff;
    padding: 4px 10px;
    border-radius: 0 !important;
    border: 1px solid #ced4da;
    white-space: nowrap;
}

.em-captcha-input {
    max-width: 180px !important;
    text-align: center;
    font-size: 1rem !important;
    font-weight: 600;
    height: 38px;
}
