/* استایل‌های اصلی سامانه خط - کاربران */
.kls-woocommerce-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-welcome-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #0d9488 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.kls-welcome-section h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-welcome-section p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-status-notice {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-right: 4px solid;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-status-notice.success {
    background: #f0f9f4;
    border-color: #10b981;
    color: #065f46;
}

.kls-status-notice.info {
    background: #f0f6ff;
    border-color: #1e3a8a;
    color: #1e3a8a;
}

.kls-status-notice.error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

.kls-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.kls-feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
    border-color: #1e3a8a;
}

.kls-feature-card.completed {
    border-color: #0d9488;
}

.kls-feature-card.pending {
    border-color: #fbbf24;
}

.kls-card-icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: block;
}

.kls-feature-card h3 {
    margin: 0 0 10px 0;
    color: #1e3a8a;
    font-size: 18px;
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-weight: 600;
}

.kls-feature-card p {
    margin: 0 0 15px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-status-badge.completed {
    background: #d1fae5;
    color: #065f46;
}

.kls-status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.kls-limit-info {
    margin: 15px 0;
}

.kls-mini-progress {
    background: #e5e7eb;
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 5px;
}

.kls-mini-progress-bar {
    background: linear-gradient(90deg, #1e3a8a, #0d9488);
    height: 100%;
    transition: width 0.3s ease;
}

.kls-limit-info small {
    color: #6b7280;
    font-size: 11px;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

/* استایل‌های فرم */
.kls-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(30, 58, 138, 0.1);
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-form-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.kls-form-header h3 {
    margin: 0 0 10px 0;
    color: #1e3a8a;
    font-size: 24px;
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-weight: 600;
}

.kls-form-header p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-alert-box {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-alert-box h4 {
    margin: 0 0 10px 0;
    color: #92400e;
    font-size: 16px;
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-weight: 600;
}

.kls-alert-box p {
    margin: 10px 0;
    color: #92400e;
    font-size: 14px;
    line-height: 1.5;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-alert-box.warning {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
}

.kls-form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-form-section h4 {
    margin: 0 0 20px 0;
    color: #1e3a8a;
    font-size: 18px;
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.kls-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.kls-form-group {
    margin-bottom: 15px;
}

.kls-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-form-group input[type="text"],
.kls-form-group input[type="email"],
.kls-form-group input[type="number"],
.kls-form-group input[type="tel"],
.kls-form-group select,
.kls-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    box-sizing: border-box;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-form-group input:focus,
.kls-form-group select:focus,
.kls-form-group textarea:focus {
    outline: none;
    border-color: #1e3a8a;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.kls-form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.kls-form-group input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.kls-form-actions {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.kls-form-actions .button {
    min-width: 140px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    padding: 0 20px;
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-weight: 500;
}

/* استایل‌های حالت مشاهده */
.kls-view-mode {
    background: white;
    border-radius: 8px;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.kls-info-item {
    background: #f8fafc;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-info-item strong {
    color: #1e3a8a;
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-weight: 600;
}

.kls-info-item span {
    color: #374151;
    font-size: 14px;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

/* استایل‌های لیست طرفین دوم و موضوعات */
.kls-party-two-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kls-party-two-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.2s ease;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-party-two-item:hover {
    border-color: #1e3a8a;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.1);
}

.kls-party-two-info {
    flex: 1;
}

.kls-party-two-info strong {
    display: block;
    font-size: 16px;
    color: #1e3a8a;
    margin-bottom: 8px;
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-weight: 600;
}

.kls-party-two-info span {
    display: inline-block;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #6b7280;
    margin-right: 8px;
    margin-bottom: 4px;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-party-two-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.kls-party-two-actions .button,
.kls-party-two-actions button {
    min-width: 80px;
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-family: Vazirmatn, Tahoma, sans-serif;
    font-weight: 500;
}

/* استایل‌های نوار وضعیت محدودیت */
.kls-limit-status {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-limit-bar {
    background: #e2e4e7;
    border-radius: 10px;
    height: 12px;
    margin: 15px 0;
    overflow: hidden;
}

.kls-limit-fill {
    background: linear-gradient(90deg, #1e3a8a, #0d9488);
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.kls-limit-status p {
    margin: 0;
    font-weight: 600;
    color: #1e3a8a;
    font-size: 14px;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

/* دکمه‌ها */
.button {
    display: inline-block;
    padding: 12px 24px;
    background: #6b7280;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
    line-height: 1.4;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.button:hover {
    background: #4b5563;
    color: white;
    transform: translateY(-1px);
}

.button-primary {
    background: #1e3a8a;
}

.button-primary:hover {
    background: #0d9488;
}

.button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .kls-grid-cards {
        grid-template-columns: 1fr;
    }
    
    .kls-form-row {
        grid-template-columns: 1fr;
    }
    
    .kls-party-two-item {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .kls-party-two-actions {
        justify-content: center;
    }
    
    .kls-form-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .kls-form-actions .button {
        width: 100%;
        margin: 2px 0;
    }
}

/* استایل‌های خاص برای داشبرد کاربری */
.kls-woocommerce-container .woocommerce-message {
    margin: 20px 0;
    padding: 15px;
    border-radius: 8px;
    background: #f0f9ff;
    border: 1px solid #1e3a8a;
    color: #1e3a8a;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

.kls-woocommerce-container .woocommerce-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
    font-family: Vazirmatn, Tahoma, sans-serif;
}

/* فونت وزیرمتن */
@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}