/* COMMON STYLES FOR ALL ROLES */
.oes-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.oes-card {
    background: #fff;
    padding: 25px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.oes-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

.oes-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

/* Tabs */
.oes-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0;
}

.oes-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    transition: all 0.3s;
}

.oes-tab-btn:hover {
    color: #007bff;
}

.oes-tab-btn.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

.oes-tab-pane {
    display: none;
}

.oes-tab-pane.active {
    display: block;
}

/* Forms */
.oes-form {
    margin-top: 20px;
}

.oes-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.oes-form-group {
    flex: 1;
    min-width: 250px;
}

.oes-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.oes-select, .oes-input, .oes-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.15s ease-in-out;
}

.oes-select:focus, .oes-input:focus, .oes-textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.oes-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Buttons */
.oes-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.oes-btn-primary {
    background: #007bff;
    color: white;
}

.oes-btn-primary:hover {
    background: #0056b3;
}

.oes-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Tables */
.oes-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.oes-table th, .oes-table td {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    text-align: left;
}

.oes-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.oes-table tr:hover {
    background: #f8f9fa;
}

/* Modal */
.oes-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.oes-modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.oes-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

.oes-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #007bff;
}

.oes-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}

.oes-modal-body {
    margin-bottom: 20px;
}

.oes-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

/* Icons */
.oes-icon {
    font-size: 1.2em;
    vertical-align: middle;
}

/* Status Badges */
.oes-status-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.oes-status-draft {
    background: #ffc107;
    color: #212529;
}

.oes-status-pending {
    background: #17a2b8;
    color: white;
}

.oes-status-approved {
    background: #28a745;
    color: white;
}

.oes-status-published {
    background: #007bff;
    color: white;
}