* {
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #fff;
}

.app-container {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

.app-header {
    text-align: center;
    margin-bottom: 40px;
}

.app-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.app-header p {
    opacity: 0.8;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.card {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card h2 {
    margin-top: 0;
}

.card p {
    opacity: .85;
}

.card button {
    margin-top: 15px;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

/* رنگ‌بندی کارت‌ها */
.card.wp button { background: #00bcd4; }
.card.text button { background: #8bc34a; }
.card.pipeline button { background: #ff9800; }
.card.project button { background: #9c27b0; }

.card button:hover {
    opacity: .9;
}

/* غیرفعال */
.card.disabled {
    opacity: 0.4;
}

.card.disabled:hover {
    transform: none;
    box-shadow: none;
}

.card.disabled button {
    cursor: not-allowed;
}

/* Footer */
.app-footer {
    margin-top: 50px;
    text-align: center;
    opacity: 0.6;
    font-size: 13px;
}

.back-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #555;
  margin-bottom: 15px;
}

.back-btn:hover {
  color: #000;
}


.detailed-progress {
    margin-top: 15px;
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.progress-cell {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.progress-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.progress-value {
    font-size: 24px;
    font-weight: bold;
    color: #4a6fa5;
    margin-bottom: 10px;
}

.progress-bar-small {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill-small {
    height: 100%;
    background: linear-gradient(90deg, #4a6fa5, #6c8cc7);
    width: 0%;
    transition: width 0.3s ease;
}

.current-file {
    background: #e8f0fe;
    padding: 10px 15px;
    border-radius: 8px;
    border-left: 4px solid #4a6fa5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-label {
    font-weight: bold;
    color: #4a6fa5;
    font-size: 14px;
}

.file-path {
    flex: 1;
    font-family: monospace;
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Animation برای progress bar */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.progress-fill {
    animation: pulse 2s infinite;
}

/* Spinner برای loading */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(74, 111, 165, 0.3);
    border-radius: 50%;
    border-top-color: #4a6fa5;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* در بخش CSS اضافه کنید: */
.string-item {
    background: white;
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4a6fa5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.string-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.string-text {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
    word-break: break-word;
}

.string-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

.meta-badge {
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-badge i {
    font-size: 10px;
}

.more-strings {
    text-align: center;
    color: #666;
    font-style: italic;
    margin: 20px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 5px;
}

.no-strings {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.stat-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-align: center;
    min-width: 120px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: #4a6fa5;
    margin: 10px 0;
}

.stat-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-content {
    color: #000;
}