/* assets/css/frontend.css */

.wpwf-request-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.wpwf-request-form h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.wpwf-request-form .form-group {
    margin-bottom: 25px;
}

.wpwf-request-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 14px;
}

.wpwf-request-form select,
.wpwf-request-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.wpwf-request-form select:focus,
.wpwf-request-form textarea:focus {
    border-color: #0073aa;
    outline: none;
}

.wpwf-request-form input[type="file"] {
    padding: 10px 0;
}

.template-preview-box {
    background: #f8f9fa;
    padding: 20px;
    border: 2px dashed #0073aa;
    border-radius: 8px;
    margin-top: 10px;
    font-style: italic;
    color: #555;
    line-height: 1.8;
}

.wpwf-button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.wpwf-button-primary {
    background: #0073aa;
    color: #fff;
}

.wpwf-button-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,115,170,0.3);
}

.wpwf-button-secondary {
    background: #6c757d;
    color: #fff;
}

.wpwf-button-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.wpwf-button-success {
    background: #28a745;
    color: #fff;
}

.wpwf-button-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.wpwf-button-danger {
    background: #dc3545;
    color: #fff;
}

.wpwf-button-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.wpwf-login-required {
    max-width: 400px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.wpwf-login-required .login-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.wpwf-login-required h3 {
    margin-bottom: 15px;
    color: #333;
}

.wpwf-login-required p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.wpwf-login-required .wpwf-button {
    margin: 0 5px;
}

.wpwf-requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.wpwf-request-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.wpwf-request-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.pending-card {
    border-right: 4px solid #ffc107;
}

.request-header {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.request-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.request-body {
    padding: 20px;
}

.requester-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.requester-avatar {
    margin-left: 10px;
}

.requester-avatar img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
}

.requester-name {
    font-size: 14px;
    color: #555;
}

.request-meta {
    margin-bottom: 15px;
    font-size: 13px;
}

.meta-item {
    display: block;
    margin-bottom: 5px;
}

.meta-label {
    color: #666;
    margin-left: 5px;
}

.meta-value {
    color: #333;
    font-weight: 600;
}

.request-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.request-content p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.attached-files {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.attached-files ul {
    margin: 10px 0 0 0;
    padding: 0;
    list-style: none;
}

.attached-files li {
    margin-bottom: 5px;
}

.attached-files a {
    color: #0073aa;
    text-decoration: none;
    font-size: 13px;
}

.attached-files a:hover {
    text-decoration: underline;
}

.workflow-timeline {
    margin: 20px 0;
    position: relative;
}

.workflow-timeline::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-step {
    position: relative;
    padding-right: 50px;
    margin-bottom: 15px;
}

.step-icon {
    position: absolute;
    right: 10px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 14px;
    z-index: 1;
}

.step-content {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
}

.step-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.step-status {
    font-size: 12px;
    color: #666;
}

.step-pending .step-content {
    background: #fff3cd;
    border-right: 3px solid #ffc107;
}

.step-current .step-content {
    background: #cce5ff;
    border-right: 3px solid #0073aa;
}

.step-approved .step-content {
    background: #d4edda;
    border-right: 3px solid #28a745;
}

.step-rejected .step-content {
    background: #f8d7da;
    border-right: 3px solid #dc3545;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-in_progress {
    background: #cce5ff;
    color: #004085;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.last-comment {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-style: italic;
}

.last-comment p {
    margin: 5px 0 0 0;
    color: #666;
}

.approval-actions {
    margin-top: 20px;
}

.approval-comment {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    resize: vertical;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons .wpwf-button {
    flex: 1;
    text-align: center;
}

.wpwf-empty-state {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.wpwf-empty-state h3 {
    color: #333;
    margin-bottom: 10px;
}

.wpwf-empty-state p {
    color: #666;
    margin-bottom: 25px;
}

#wpwf-message {
    margin-top: 20px;
}

#wpwf-message .success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid #28a745;
}

#wpwf-message .error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid #dc3545;
}

#wpwf-message .info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid #17a2b8;
}
/* assets/css/frontend.css - بخش‌های جدید رو به انتهای فایل اضافه کن */

/* استایل‌های قبلی تا اینجا... */

/* اضافه کردن استایل برای warning */
.warning {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid #ffc107;
    font-weight: 500;
    margin: 10px 0;
}

/* بهبود استایل برای پیام‌های موفقیت و خطا */
.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid #28a745;
    font-weight: 500;
    margin: 10px 0;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid #dc3545;
    font-weight: 500;
    margin: 10px 0;
}

.info {
    background: #d1ecf1;
    color: #0c5460;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid #17a2b8;
    font-weight: 500;
    margin: 10px 0;
}

#wpwf-message {
    margin-top: 20px;
}