/* SEO Reports System - Основные стили */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 20px 0;
    margin-bottom: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 10px;
}

.user-info {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.9;
}

.logout-btn {
    color: white;
    text-decoration: none;
    margin-left: 10px;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Main Navigation */
.main-navigation {
    background: white;
    border-bottom: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #6c757d;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    min-width: 120px;
}

.nav-item:hover {
    color: #007bff;
    background-color: #f8f9fa;
    text-decoration: none;
}

.nav-item-active {
    color: #007bff;
    border-bottom-color: #007bff;
    background-color: #f8f9fa;
}

.nav-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.nav-title {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Mobile Navigation Select */
.mobile-menu {
    background: white;
    padding: 10px;
    border-bottom: 1px solid #dee2e6;
}

.mobile-nav-select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: white;
    min-height: 44px;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
}

.breadcrumbs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item:hover {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-current {
    color: #495057;
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #adb5bd;
}

/* Quick Actions */
.quick-actions {
    background: white;
    border-bottom: 1px solid #dee2e6;
    padding: 15px 0;
}

.quick-actions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding-top: 30px;
}

/* Auth Block */
.auth-block {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    margin: 50px auto;
}

.auth-block h2 {
    color: #007bff;
    margin-bottom: 20px;
}

.auth-buttons {
    margin-top: 30px;
}

/* Dashboard */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.welcome-block {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.welcome-block h2 {
    color: #007bff;
    margin-bottom: 15px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    border-left: 4px solid #007bff;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Actions Grid */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.action-card:hover::before {
    transform: scaleX(1);
}

.action-card h3 {
    color: #007bff;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-card p {
    color: #6c757d;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Enhanced Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #545b62, #495057);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    color: white;
    text-decoration: none;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
    color: white;
    text-decoration: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
    border-radius: 6px;
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* Tables (for other pages) */
.reports-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Recent Reports Cards */
.recent-reports {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 25px 0;
}

.section-header-with-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f9fa;
}

.section-header-with-actions h3 {
    margin: 0;
    color: #007bff;
    font-size: 1.3rem;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 10px;
}

.header-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    background: white;
    color: #495057;
}

.header-action-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
    text-decoration: none;
    transform: translateY(-1px);
}

.header-action-btn.primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
}

.header-action-btn.primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: white;
}

.reports-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0;
}

.report-card {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.report-card:last-child {
    border-bottom: none;
}

.report-card:hover {
    background-color: #f8f9fa;
}

.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.report-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
}

.report-date {
    font-size: 0.8rem;
    color: #6c757d;
}

.report-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.action-icon:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.view-icon {
    color: #007bff;
}

.view-icon:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.download-icon {
    color: #28a745;
}

.download-icon:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.delete-icon {
    color: #dc3545;
}

.delete-icon:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.report-metrics {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 80px;
}

.metric-label {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
}

.metric-change {
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.metric-change.positive {
    color: #28a745;
}

.metric-change.negative {
    color: #dc3545;
}

.metric-change.neutral {
    color: #6c757d;
}

.metric-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #495057;
}

/* Mobile optimization for report cards */
@media (max-width: 768px) {
    .section-header-with-actions {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .reports-cards {
        grid-template-columns: 1fr;
    }
    
    .report-card {
        padding: 15px 20px;
    }
    
    .report-card-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .report-actions {
        justify-content: center;
        gap: 12px;
    }
    
    .action-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .report-metrics {
        justify-content: space-between;
        gap: 15px;
    }
    
    .metric-item {
        text-align: center;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .section-header-with-actions {
        padding: 12px 15px;
    }
    
    .section-header-with-actions h3 {
        font-size: 1.1rem;
    }
    
    .header-action-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .report-card {
        padding: 12px 15px;
    }
    
    .report-info h4 {
        font-size: 0.9rem;
    }
    
    .report-metrics {
        gap: 10px;
    }
    
    .metric-item {
        min-width: 60px;
    }
}

/* Recent Reports */
.recent-reports {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.recent-reports h3 {
    color: #007bff;
    margin-bottom: 20px;
}

/* Changes indicators */
.change {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.change.positive {
    color: #28a745;
    background-color: #d4edda;
}

.change.negative {
    color: #dc3545;
    background-color: #f8d7da;
}

.change.neutral {
    color: #6c757d;
    background-color: #e2e3e5;
}

/* Next Reports */
.next-reports {
    background: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 25px 0;
}

.next-reports-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.next-report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s;
}

.next-report-item:last-child {
    border-bottom: none;
}

.next-report-item:hover {
    background-color: #e9ecef;
}

.next-report-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.project-info strong {
    color: #495057;
    font-size: 0.95rem;
}

.next-date {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: normal;
}

.project-actions {
    display: flex;
    gap: 8px;
}

/* Error messages */
.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
}

.success {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    border: 1px solid #c3e6cb;
}

.text-muted {
    color: #6c757d;
}

/* Mobile Utility Classes */
.mobile-hidden {
    display: block;
}

.mobile-only {
    display: none;
}

.mobile-stack {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.mobile-full-width {
    width: auto;
}

@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    .mobile-stack {
        flex-direction: column !important;
        gap: 8px !important;
    }
    
    .mobile-full-width {
        width: 100% !important;
    }
}

/* Improved Touch Targets */
.touch-target {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile-friendly form elements */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
        min-height: 44px;
    }
    
    .form-group small {
        font-size: 0.8rem;
        margin-top: 4px;
    }
}

/* Mobile-optimized tooltips */
@media (max-width: 768px) {
    .info-tooltip .tooltip-text {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90vw;
        max-width: 300px;
        z-index: 9999;
        box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    }
    
    .info-tooltip .tooltip-text::after {
        display: none;
    }
}

/* Mobile loading states */
.mobile-loading {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 9999;
}

@media (max-width: 768px) {
    .mobile-loading.active {
        display: block;
    }
}

/* Footer */
.footer {
    background-color: #343a40;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design - Mobile First Approach */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .header {
        padding: 15px 0;
        margin-bottom: 0;
    }
    
    .header h1 {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .user-info {
        font-size: 0.8rem;
    }
    
    .logout-btn {
        padding: 4px 8px;
        font-size: 0.8rem;
        margin-left: 5px;
    }
    
    /* Mobile Navigation */
    .nav-container {
        padding: 0 10px;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .nav-container::-webkit-scrollbar {
        display: none;
    }
    
    .nav-item {
        min-width: 90px;
        padding: 10px 12px;
        flex-shrink: 0;
    }
    
    .nav-icon {
        font-size: 1.2rem;
        margin-bottom: 3px;
    }
    
    .nav-title {
        font-size: 0.75rem;
    }
    
    /* Mobile Breadcrumbs */
    .breadcrumbs {
        padding: 8px 0;
    }
    
    .breadcrumbs-container {
        padding: 0 10px;
        font-size: 0.8rem;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .breadcrumb-separator {
        margin: 0 6px;
    }
    
    /* Mobile Quick Actions */
    .quick-actions {
        padding: 10px 0;
    }
    
    .quick-actions-container {
        padding: 0 10px;
        justify-content: center;
        gap: 8px;
    }
    
    /* Mobile Content */
    .main-content {
        padding-top: 15px;
    }
    
    .dashboard {
        gap: 20px;
    }
    
    .welcome-block {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .welcome-block h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .welcome-block p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Mobile Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px 15px;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Mobile Actions Grid */
    .actions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .action-card {
        padding: 20px 15px;
    }
    
    .action-card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .action-card p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    /* Mobile Button Groups */
    .btn-group {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        text-align: center;
        min-height: 44px; /* Touch target size */
    }
    
    .btn-sm {
        padding: 8px 12px;
        font-size: 0.8rem;
        min-height: 36px;
    }
    
    /* Mobile Tables */
    .reports-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        font-size: 0.8rem;
        min-width: 600px; /* Prevent table from being too narrow */
    }
    
    th, td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    th {
        font-size: 0.75rem;
        font-weight: 600;
    }
    
    /* Mobile Next Reports */
    .next-reports {
        padding: 15px;
    }
    
    .next-reports h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .next-report-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
    }
    
    .next-report-item a {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .next-date {
        font-size: 0.8rem;
    }
    
    /* Mobile Auth Block */
    .auth-block {
        margin: 15px auto;
        padding: 25px 20px;
        max-width: 100%;
    }
    
    .auth-block h2 {
        font-size: 1.3rem;
    }
    
    .auth-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    /* Mobile Error/Success Messages */
    .error, .success {
        margin: 15px 0;
        padding: 12px;
        font-size: 0.85rem;
    }
    
    /* Mobile Footer */
    .footer {
        padding: 15px 0;
        margin-top: 30px;
    }
    
    .footer p {
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .nav-item {
        min-width: 70px;
        padding: 8px 10px;
    }
    
    .nav-title {
        display: none; /* Hide text on very small screens */
    }
    
    .nav-icon {
        font-size: 1.4rem;
        margin-bottom: 0;
    }
    
    .breadcrumbs-container {
        padding: 0 8px;
        font-size: 0.75rem;
    }
    
    .breadcrumb-separator {
        margin: 0 4px;
    }
    
    .quick-actions-container {
        padding: 0 8px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .welcome-block {
        padding: 15px 12px;
    }
    
    .welcome-block h2 {
        font-size: 1.2rem;
    }
    
    .action-card {
        padding: 15px 12px;
    }
    
    .stat-card {
        padding: 15px 12px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 0.9rem;
        min-height: 48px; /* Larger touch targets */
    }
    
    table {
        font-size: 0.75rem;
    }
    
    th, td {
        padding: 6px 4px;
    }
    
    .next-report-item {
        padding: 10px;
    }
    
    .auth-block {
        padding: 20px 15px;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        padding: 10px 0;
    }
    
    .header h1 {
        font-size: 1.6rem;
        margin-bottom: 5px;
    }
    
    .nav-item {
        padding: 8px 12px;
    }
    
    .main-content {
        padding-top: 10px;
    }
    
    .welcome-block {
        padding: 15px;
    }
    
    .actions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .action-card:hover,
    .nav-item:hover {
        transform: none; /* Disable hover animations on touch devices */
    }
    
    .btn:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
    
    .action-card:active {
        transform: scale(0.99);
        transition: transform 0.1s;
    }
    
    .nav-item:active {
        background-color: #e9ecef;
    }
}