/**
 * استایل‌های اختصاصی ماژول PMBOK
 */

:root {
    --soft-primary: #667eea;
    --soft-secondary: #764ba2;
    --soft-success: #48bb78;
    --soft-warning: #ed8936;
    --soft-danger: #f56565;
    --soft-info: #4299e1;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #2D3748;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: #718096;
}

/* Card */
.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    padding: 10px 12px;
    text-align: right;
    border-bottom: 1px solid #f0f0f0;
}

.table th {
    font-weight: 600;
    color: #555;
    background: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: #f0f4ff;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #E2E8F0;
    color: #4A5568;
}

.badge-primary { background: #E0E7FF; color: #4F46E5; }
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }
.badge-danger { background: #FEE2E2; color: #991B1B; }
.badge-info { background: #DBEAFE; color: #1E40AF; }
.badge-secondary { background: #E5E7EB; color: #374151; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #718096, #4a5568);
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.form-control, .form-select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .main-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--dark, #2D3748);
}

.page-header h2 i {
    color: var(--soft-primary, #667eea);
    margin-right: 8px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.9rem;
    color: var(--gray, #718096);
    margin-bottom: 5px;
}

.breadcrumb a {
    color: var(--soft-primary, #667eea);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.info-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray, #718096);
    margin-bottom: 5px;
}

/* List Items */
.list-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-link {
    color: #2D3748;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-item-link:hover {
    color: var(--soft-primary, #667eea);
}

/* Filter Card */
.filter-card {
    margin-bottom: 20px;
}

.filter-form {
    margin: 0;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Tabs */
.tabs-container {
    margin-top: 20px;
}

.tabs {
    display: flex;
    gap: 5px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    font-size: 0.95rem;
    color: var(--gray, #718096);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--soft-primary, #667eea);
}

.tab-btn.active {
    color: var(--soft-primary, #667eea);
    border-bottom-color: var(--soft-primary, #667eea);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Inline Form */
.inline-form {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    align-items: end;
}

/* Standard Form */
.standard-form {
    max-width: 900px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--gray, #718096);
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Actions Cell */
.actions-cell {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
}

/* Techniques Grid */
.techniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.technique-card {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.technique-card:hover {
    border-color: var(--soft-primary, #667eea);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.technique-icon {
    width: 40px;
    height: 40px;
    background: var(--soft-primary, #667eea);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.technique-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #2D3748;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Knowledge Area Card */
.ka-card {
    transition: all 0.3s;
}

.ka-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.ka-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ka-code {
    font-size: 0.85rem;
    background: #f0f4ff;
    padding: 3px 8px;
    border-radius: 6px;
}

.ka-stats {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.ka-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--gray, #718096);
}

.ka-stat i {
    color: var(--soft-primary, #667eea);
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}