/* Daya Collaboration Form Styles */
.daya-collab-form {
    max-width: 720px;
    margin: 0 auto;
    font-family: inherit;
    direction: rtl;
}

/* Progress Steps */
.daya-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    position: relative;
}

.daya-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.daya-step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.daya-step.active .daya-step-num {
    background: #0d9488;
    color: #fff;
}

.daya-step.completed .daya-step-num {
    background: #059669;
    color: #fff;
}

.daya-step-title {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

.daya-step.active .daya-step-title {
    color: #0d9488;
    font-weight: 600;
}

.daya-step-line {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    margin: 0 -20px;
    position: relative;
}

.daya-step-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #0d9488;
    width: 0%;
    transition: width 0.3s ease;
}

.daya-step.completed + .daya-step-line::before {
    width: 100%;
}

/* Form Steps */
.daya-form-step {
    display: none;
    animation: dayaFadeIn 0.3s ease;
}

.daya-form-step.active {
    display: block;
}

@keyframes dayaFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.daya-form-step h3 {
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
    color: #1f2937;
    font-size: 20px;
}

/* Field Groups */
.daya-field-group {
    margin-bottom: 20px;
}

.daya-field-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.daya-field-group label .required {
    color: #dc2626;
}

.daya-field-group input[type="text"],
.daya-field-group input[type="tel"],
.daya-field-group input[type="email"],
.daya-field-group input[type="url"],
.daya-field-group textarea,
.daya-field-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s;
    box-sizing: border-box;
}

.daya-field-group input:focus,
.daya-field-group textarea:focus,
.daya-field-group select:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.daya-field-group input.error,
.daya-field-group textarea.error {
    border-color: #dc2626;
}

.daya-field-group textarea {
    min-height: 120px;
    resize: vertical;
}

.daya-error {
    display: none;
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
}

.daya-error.visible {
    display: block;
}

/* Checkbox & Radio Groups */
.daya-checkbox-group legend,
.daya-radio-group legend {
    margin-bottom: 12px;
    font-weight: 600;
    color: #1f2937;
}

.daya-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.daya-checkbox-item,
.daya-radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.daya-checkbox-item:hover,
.daya-radio-item:hover {
    border-color: #0d9488;
    background: rgba(13, 148, 136, 0.05);
}

.daya-checkbox-item input,
.daya-radio-item input {
    width: 18px;
    height: 18px;
    accent-color: #0d9488;
    flex-shrink: 0;
}

.daya-checkbox-item span,
.daya-radio-item span {
    font-size: 14px;
    color: #374151;
}

.daya-radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

/* File Upload */
.daya-dropzone {
    position: relative;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.daya-dropzone:hover,
.daya-dropzone.drag-over {
    border-color: #0d9488;
    background: rgba(13, 148, 136, 0.05);
}

.daya-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.daya-dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.daya-dropzone-content .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #9ca3af;
}

.daya-dropzone-content p {
    margin: 0;
    color: #374151;
    font-weight: 500;
}

.daya-dropzone-content small {
    color: #9ca3af;
}

.daya-file-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.daya-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.daya-file-icon {
    color: #0d9488;
}

.daya-file-info {
    flex: 1;
    min-width: 0;
}

.daya-file-name {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.daya-file-size {
    font-size: 12px;
    color: #9ca3af;
}

.daya-file-remove {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}

.daya-file-remove:hover {
    background: rgba(220, 38, 38, 0.1);
}

/* Navigation Buttons */
.daya-step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.daya-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.daya-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.daya-btn-prev {
    background: #f3f4f6;
    color: #374151;
}

.daya-btn-prev:hover {
    background: #e5e7eb;
}

.daya-btn-next,
.daya-btn-submit {
    background: #0d9488;
    color: #fff;
}

.daya-btn-next:hover,
.daya-btn-submit:hover {
    background: #0f766e;
}

.daya-btn-submit:disabled,
.daya-btn-next:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.daya-btn-reset {
    background: #0d9488;
    color: #fff;
}

.daya-btn-reset:hover {
    background: #0f766e;
}

/* Success Message */
.daya-success-message {
    text-align: center;
    padding: 48px 24px;
    animation: dayaFadeIn 0.4s ease;
}

.daya-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #d1fae5;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.daya-success-icon .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
}

.daya-success-message h3 {
    margin: 0 0 12px;
    color: #1f2937;
    font-size: 24px;
}

.daya-success-message p {
    margin: 0 0 24px;
    color: #6b7280;
    line-height: 1.7;
}

/* Loading */
.daya-loading {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    direction: rtl;
}

.daya-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #0d9488;
    border-radius: 50%;
    animation: dayaSpin 1s linear infinite;
}

@keyframes dayaSpin {
    to { transform: rotate(360deg); }
}

.daya-loading p {
    margin-top: 16px;
    color: #6b7280;
}

/* Admin Styles */
.daya-collab-admin {
    max-width: 1400px;
}

.daya-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.daya-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.daya-filter-group select,
.daya-filter-group input[type="search"] {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.daya-requests-table th,
.daya-requests-table td {
    vertical-align: middle;
    padding: 12px 10px;
}

.daya-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.daya-tags span {
    background: #f3f4f6;
    color: #374151;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 12px;
}

.daya-status-select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}

.daya-empty {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.daya-empty .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Modals */
.daya-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.daya-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.daya-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    animation: dayaModalIn 0.2s ease;
}

@keyframes dayaModalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.daya-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.daya-modal-header h2 {
    margin: 0;
    font-size: 18px;
}

.daya-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.daya-modal-close:hover {
    color: #374151;
}

.daya-modal-body {
    padding: 24px;
}

.daya-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
}

/* Detail Modal Content */
.daya-detail-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.daya-detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.daya-detail-section h4 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #0d9488;
    font-weight: 600;
}

.daya-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px 24px;
}

.daya-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.daya-detail-label {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.daya-detail-value {
    font-size: 14px;
    color: #1f2937;
    word-break: break-word;
}

.daya-detail-value a {
    color: #0d9488;
    text-decoration: none;
}

.daya-detail-value a:hover {
    text-decoration: underline;
}

.daya-files-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.daya-file-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.2s;
}

.daya-file-link:hover {
    border-color: #0d9488;
    color: #0d9488;
}

.daya-file-link .dashicons {
    color: #0d9488;
}

/* Settings Card */
.daya-settings-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.daya-settings-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #1f2937;
}

.daya-settings-card .description {
    color: #6b7280;
    margin-bottom: 24px;
}

.daya-test-result {
    display: inline-block;
    margin-right: 12px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    vertical-align: middle;
}

.daya-test-result.success {
    background: #d1fae5;
    color: #065f46;
}

.daya-test-result.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Responsive */
@media (max-width: 782px) {
    .daya-steps {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .daya-step-line {
        display: none;
    }
    
    .daya-checkbox-grid,
    .daya-radio-group {
        grid-template-columns: 1fr;
    }
    
    .daya-step-nav {
        flex-direction: column-reverse;
        gap: 12px;
    }
    
    .daya-btn {
        width: 100%;
        justify-content: center;
    }
    
    .daya-detail-grid {
        grid-template-columns: 1fr;
    }
}