/**
 * WSJ Frontend CSS
 * 
 * Styling for user-facing forms
 * 
 * @package WSJ
 * @since 1.0.0
 */

/* Tab Navigation Styles */
.wsj-tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.wsj-tab-item {
    padding: 12px 24px;
    background: #f0f0f1;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wsj-tab-item:hover {
    background: var(--e-global-color-secondary, #00A0C6);
    color: #fff;
    border-color: var(--e-global-color-secondary, #00A0C6);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.wsj-tab-item.wsj-tab-active {
    background: var(--e-global-color-primary, #4DBFD7);
    color: #fff;
    border-color: var(--e-global-color-primary, #4DBFD7);
    box-shadow: 0 2px 8px rgba(77, 191, 215, 0.3);
}

.wsj-tab-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 4px;
}

.wsj-tab-status.wsj-status-draft {
    background-color: #ffc107;
}

.wsj-tab-status.wsj-status-submitted {
    background-color: #28a745;
}

.wsj-tab-status.wsj-status-edited {
    background-color: #17a2b8;
}

.wsj-tab-content {
    min-height: 400px;
}

/* Form Container */
.wsj-forms-container {
    max-width: 1200px;
    margin: 0 auto;
}

.wsj-form-container {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Form Action Buttons */
.wsj-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
}

.wsj-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.wsj-btn-primary {
    background: var(--e-global-color-primary, #4DBFD7);
    color: white;
}

.wsj-btn-primary:hover {
    background: var(--e-global-color-primary, #3aa9c1);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.wsj-btn-secondary {
    background: var(--e-global-color-secondary, #00A0C6);
    color: white;
}

.wsj-btn-secondary:hover {
    background: var(--e-global-color-secondary, #008aaa);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.wsj-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Footer Metadata */
.wsj-footer-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
    font-size: 13px;
    color: #666;
}

.wsj-footer-label {
    font-weight: 600;
}

.wsj-version-info-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
    margin-left: auto;
}

.wsj-version-info-btn:hover {
    opacity: 1;
    background: none !important;
    color: inherit !important;
}

.wsj-version-info-btn svg {
    width: 16px;
    height: 16px;
    fill: #666;
    display: block;
}

/* Form Feedback */
.wsj-form-feedback {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
}

.wsj-form-feedback.success {
    background: #d1e7dd;
    color: #0a3622;
}

.wsj-form-feedback.error {
    background: #f8d7da;
    color: #721c24;
}

/* Notices */
.wsj-notice {
    padding: 12px 16px;
    margin: 16px 0;
    border-left: 4px solid;
    border-radius: 4px;
}

.wsj-notice-info {
    background: #e7f3ff;
    border-color: #1e90ff;
    color: #004085;
}

.wsj-notice-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.wsj-notice-warning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Version Modal */
.wsj-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.wsj-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.wsj-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.wsj-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wsj-modal-header h3 {
    margin: 0;
}

.wsj-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #999;
}

.wsj-modal-close:hover {
    color: #333;
}

.wsj-modal-body {
    padding: 20px;
    overflow-y: auto;
}

.wsj-versions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wsj-version-item {
    padding: 12px;
    margin-bottom: 8px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.wsj-version-item:hover {
    background: #f8f9fa;
    border-color: var(--e-global-color-primary, #4DBFD7);
}

.wsj-version-item.latest {
    background: #e7f5f8;
    border-color: var(--e-global-color-primary, #4DBFD7);
}

/* Complete button is now visible and functional */
