:root {
    --primary-color: #2a46ff;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
    border-bottom: none;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand h1 {
    font-size: 1.5rem;
    color: white;
    margin: 0;
    font-weight: 600;
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-icon {
    font-size: 1.1rem;
    display: inline-block;
    line-height: 1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    overflow: hidden;
}

.login-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 50%, #764ba2 100%);
    z-index: 0;
}

.login-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: white;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: white;
    bottom: -100px;
    right: -100px;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: white;
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.login-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-header h1 {
    color: var(--primary-color);
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.login-alerts {
    margin-bottom: 1.5rem;
}

.login-alerts .alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.alert-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.login-form {
    margin-top: 2rem;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.label-icon {
    font-size: 1.1rem;
}

.login-form .form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.login-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(42, 70, 255, 0.1);
    transform: translateY(-2px);
}

.btn-login {
    width: 100%;
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s;
}

.btn-login:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-arrow {
    transition: transform 0.3s;
    font-size: 1.2rem;
}

.login-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.login-footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--card-bg);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(42, 70, 255, 0.1);
    transform: translateY(-1px);
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.checkbox {
    margin-bottom: 0.75rem;
}

.checkbox label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    line-height: 1.5;
    vertical-align: middle;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #667eea 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(42, 70, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e35cc 0%, #5568d3 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 70, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 8px;
    line-height: 1.5;
}

/* Убеждаемся, что btn-sm переопределяет padding даже для btn-primary */
.btn-sm.btn-primary,
.btn-sm.btn-secondary,
.btn-sm.btn-danger {
    padding: 0.625rem 1.25rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button width modifiers */
.btn-full {
    width: 100%;
}

/* Button groups - одинаковые кнопки в группе */
.page-header > div,
.card-footer,
.form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Убеждаемся, что все кнопки в группах имеют одинаковую высоту */
.page-header > div .btn,
.card-footer .btn,
.form-actions .btn {
    min-height: 2.5rem;
}

/* Для маленьких кнопок уменьшаем минимальную высоту */
.page-header > div .btn-sm,
.card-footer .btn-sm,
.form-actions .btn-sm {
    min-height: 2.25rem;
}

/* Если в группе одна кнопка - она не растягивается */
.page-header > div .btn:only-child,
.card-footer .btn:only-child,
.form-actions .btn:only-child {
    flex: 0 1 auto;
    min-width: auto;
}

/* Если в группе несколько кнопок - они равномерно распределяются */
.page-header > div .btn:not(:only-child),
.card-footer .btn:not(:only-child),
.form-actions .btn:not(:only-child) {
    flex: 1;
    min-width: 120px;
}

/* Для маленьких кнопок в группах - они всегда компактные */
.card-footer .btn-sm,
.page-header > div .btn-sm {
    flex: 0 1 auto;
    min-width: auto;
}

/* Кнопки в empty-state всегда на всю ширину */
.empty-state .btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h2,
.card-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.card-body {
    padding: 1.5rem;
}

.card-body p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.card-body p:last-child {
    margin-bottom: 0;
}

.card-body strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* Card footer - стили уже определены выше в Button groups */
.card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

.card-footer form {
    display: flex;
    flex: 0 1 auto;
    min-width: auto;
    align-items: center;
}

.card-footer form .btn {
    width: auto;
}

/* Для маленьких кнопок в формах */
.card-footer form .btn-sm {
    width: auto;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-secondary {
    background: #e5e7eb;
    color: #374151;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.flash-messages {
    margin-bottom: 1.5rem;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
}

/* Page header div - стили уже определены выше в Button groups */

/* Dashboard */
.dashboard {
    padding: 0;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.dashboard-title h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.25rem;
    color: var(--text-primary);
    font-weight: 700;
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}

.btn-icon span:first-child {
    font-size: 1.2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.stat-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.stat-card-primary {
    border-top: 4px solid var(--primary-color);
}

.stat-card-success {
    border-top: 4px solid var(--success-color);
}

.stat-card-info {
    border-top: 4px solid var(--info-color);
}

.stat-card-warning {
    border-top: 4px solid var(--warning-color);
}

.stat-card-content {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-primary .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(42, 70, 255, 0.1) 0%, rgba(42, 70, 255, 0.05) 100%);
}

.stat-card-success .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.stat-card-info .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.stat-card-warning .stat-icon-wrapper {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.stat-icon {
    font-size: 2rem;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card-primary .stat-value {
    color: var(--primary-color);
}

.stat-card-success .stat-value {
    color: var(--success-color);
}

.stat-card-info .stat-value {
    color: var(--info-color);
}

.stat-card-warning .stat-value {
    color: var(--warning-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-color);
}

.stat-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.stat-link:hover {
    color: #1e35cc;
    text-decoration: underline;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s;
}

.dashboard-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.dashboard-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
}

.dashboard-card-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.card-link:hover {
    color: #1e35cc;
    text-decoration: underline;
}

.dashboard-card-body {
    padding: 1.5rem;
}

/* Lists */
.list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list-modern {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.list-item {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    background: var(--bg-color);
}

.list-item:hover {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(42, 70, 255, 0.1);
    transform: translateX(4px);
}

.list-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    flex: 1;
    transition: color 0.2s;
}

.list-link:hover {
    color: var(--primary-color);
}

.list-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.list-text {
    font-weight: 500;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--bg-color);
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 600;
    color: var(--text-primary);
}

/* Campaigns Grid */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.campaign-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Tasks List */
.tasks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Sources List */
.sources-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-state p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-text {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Form Actions - стили уже определены выше в Button groups */
.form-actions {
    margin-top: 1.5rem;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-form label {
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.filter-form select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: var(--card-bg);
    transition: all 0.2s;
    min-width: 200px;
}

.filter-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(42, 70, 255, 0.1);
}

/* Utilities */
.text-muted {
    color: var(--text-secondary);
}

.text-warning {
    color: var(--warning-color);
}

.text-info {
    color: var(--info-color);
}

code {
    background: var(--bg-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* Detail Pages */
.campaign-detail,
.task-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.campaign-detail .stats-grid {
    margin-bottom: 0;
}

.campaign-detail .stat-card {
    padding: 1.5rem;
    text-align: center;
}

.campaign-detail .stat-card .stat-value {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.campaign-detail .stat-card .stat-label {
    font-size: 1rem;
}

/* List improvements for detail pages */
.list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.list li {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.list li:last-child {
    border-bottom: none;
}

.list li:hover {
    background-color: var(--bg-color);
}

.list li a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.list li a:hover {
    color: var(--primary-color);
}

/* Badge improvements */
.badge {
    white-space: nowrap;
    font-size: 0.8125rem;
}

/* Textarea improvements */
textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

/* Select improvements */
select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .nav-icon {
        font-size: 1rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .page-header > div {
        flex-direction: column;
        width: 100%;
    }
    
    .page-header > div .btn,
    .card-footer .btn,
    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dashboard-title h1 {
        font-size: 1.75rem;
    }
    
    .dashboard-actions {
        flex-direction: column;
    }
    
    .btn-icon {
        width: 100%;
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card-content {
        padding: 1.25rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .campaigns-grid {
        grid-template-columns: 1fr;
    }
    
    .tasks-list,
    .sources-list {
        gap: 0.75rem;
    }
    
    /* form-actions стили уже определены выше */
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-form label {
        margin-bottom: 0.5rem;
    }
    
    .filter-form select {
        width: 100%;
    }
    
    .login-wrapper {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .login-header h1 {
        font-size: 1.75rem;
    }
    
    .login-icon {
        font-size: 3rem;
    }
    
    .shape-1,
    .shape-2,
    .shape-3 {
        display: none;
    }
}

