/**
 * Modern Theme Styles
 * استایل‌های تم مدرن
 */

/* SVG Icon Styles */
svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Modern Button Styles */
.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'IRANSans', 'Tahoma', sans-serif;
}

.modern-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.modern-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.modern-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.modern-btn-secondary:hover {
    background: #e5e7eb;
}

.modern-btn-danger {
    background: #ef4444;
    color: #fff;
}

.modern-btn-danger:hover {
    background: #dc2626;
}

.modern-btn-success {
    background: #10b981;
    color: #fff;
}

.modern-btn-success:hover {
    background: #059669;
}

/* Menu Icon Updates */
.ttr-sidebar-navi .ttr-icon svg,
.ttr-sidebar-navi .menu-right svg {
    width: 20px;
    height: 20px;
    color: inherit;
}

.ttr-arrow-icon svg {
    width: 16px;
    height: 16px;
    color: inherit;
}

/* Header Icon Updates */
.ttr-header-navigation svg {
    width: 20px;
    height: 20px;
    color: inherit;
}

/* Card Styles */
.modern-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.modern-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Form Input Modern Styles */
.modern-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'IRANSans', 'Tahoma', sans-serif;
}

.modern-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Table Modern Styles */
.modern-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.modern-table th {
    background: #f9fafb;
    padding: 1rem;
    text-align: right;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.modern-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modern-table tr:hover {
    background: #f9fafb;
}

/* Badge Styles */
.modern-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.modern-badge-primary {
    background: #dbeafe;
    color: #1e40af;
}

.modern-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.modern-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.modern-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

/* Loading Spinner */
.modern-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .modern-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .modern-card {
        padding: 1rem;
    }
}
