/* Główny kontener */
.vinted-display-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header */
.vinted-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.vinted-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.vinted-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border-left: 4px solid #4CAF50;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.stat-subtitle {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* ✅ NOWE - Informacje o zysku w głównych statystykach */
.profit-info {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profit-label {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
}

.profit-info .profit-value {
    font-size: 1rem;
    font-weight: 600;
}

.profit-info .profit-value.positive {
    color: #28a745;
}

.profit-info .profit-value.negative {
    color: #dc3545;
}

.profit-info .profit-value.neutral {
    color: #6c757d;
}

/* Navigation Tabs */
.vinted-tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #7f8c8d;
    transition: all 0.3s;
    position: relative;
}

.tab-btn:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.tab-btn.active {
    background: #4CAF50;
    color: white;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #45a049;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
    display: block;
}

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

/* Filters */
.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 10px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #4CAF50;
}

.reset-btn {
    padding: 10px 20px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    align-self: flex-end;
}

.reset-btn:hover {
    background: #ee5a5a;
}

/* Controls */
.chart-controls,
.daily-controls,
.monthly-controls,
.profit-controls {
    margin-bottom: 25px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 20px;
    transition: background 0.2s;
    font-weight: 500;
}

.radio-label:hover {
    background: #f8f9fa;
}

.radio-label input[type="radio"] {
    margin: 0;
}

/* Table */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
}

.modern-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.modern-table tr:hover {
    background: #f8f9fa;
}

/* Badges and Amounts */
.type-badge {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.type-badge.payment {
    background: #e3f2fd;
    color: #1976d2;
}

.type-badge.order {
    background: #f3e5f5;
    color: #7b1fa2;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.success {
    background: #d4edda;
    color: #155724;
}

.status-badge.danger {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.warning {
    background: #fff3cd;
    color: #856404;
}

.status-badge.info {
    background: #d1ecf1;
    color: #0c5460;
}

.amount {
    font-weight: 700;
    font-size: 1.05rem;
}

.amount.positive {
    color: #28a745;
}

.amount.negative {
    color: #dc3545;
}

.amount.neutral {
    color: #6c757d;
}

/* Charts */
.charts-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.chart-wrapper,
.monthly-chart-wrapper {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.chart-wrapper h3,
.monthly-chart-wrapper h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.2rem;
    text-align: center;
}

/* Daily Analysis */
.daily-analysis,
.monthly-analysis {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.daily-picker,
.monthly-picker {
    margin-bottom: 25px;
}

.daily-picker label,
.monthly-picker label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 1.1rem;
}

.daily-picker input,
.monthly-picker input[type="month"] {
    padding: 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    width: 200px;
    background: white;
    color: #333;
    transition: border-color 0.2s;
}

.daily-picker input:focus,
.monthly-picker input[type="month"]:focus {
    outline: none;
    border-color: #4CAF50;
}

.daily-summary {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 25px;
}

.daily-summary h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
}

.daily-total,
.daily-expenses,
.daily-profit {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.daily-profit {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 10px;
    margin-top: 10px;
}

.daily-count {
    opacity: 0.9;
    font-size: 1.1rem;
}

.daily-transactions {
    margin-top: 20px;
}

.daily-transactions h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.daily-transactions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
    border-left: 4px solid #4CAF50;
}

.transaction-type {
    font-weight: 600;
    color: #555;
    min-width: 120px;
}

.transaction-name {
    flex: 1;
    margin: 0 15px;
    color: #666;
}

.transaction-amount {
    font-weight: 700;
    font-size: 1.05rem;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2rem;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-style: italic;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f1aeb5;
    border-radius: 8px;
    margin: 20px 0;
}

/* Links */
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-link:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

/* ✅ PRZEŁĄCZNIK KONT */
.account-switcher {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.account-switcher label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.account-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.account-btn {
    padding: 12px 24px;
    border: 2px solid #e0e6ed;
    background: white;
    color: #666;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    min-width: 140px;
}

.account-btn:hover {
    border-color: #4CAF50;
    background: #f8fff8;
    color: #4CAF50;
    transform: translateY(-2px);
}

.account-btn.active {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-color: #4CAF50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.account-btn.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ✅ ANALIZA MIESIĘCZNA */
.monthly-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.monthly-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.monthly-stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: transform 0.3s;
}

.monthly-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.monthly-stat-card:hover::before {
    transform: translate(-20%, -20%);
}

.monthly-stat-card h4 {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.monthly-stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}

.monthly-chart-wrapper {
    margin-bottom: 25px;
}

.monthly-transactions-list {
    margin-top: 20px;
}

.monthly-transactions-list h4 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.2rem;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
}

.monthly-day-group {
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.monthly-day-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.monthly-day-header {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.monthly-day-header:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
}

.monthly-day-header .day-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.monthly-day-header .day-name::before {
    content: '📅';
    font-size: 1.2rem;
}

.monthly-day-summary {
    background: rgba(76, 175, 80, 0.1);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: #2c3e50;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
}

.monthly-day-summary .transactions-count {
    font-weight: 600;
    color: #4CAF50;
}

.monthly-day-summary .day-total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #2c3e50;
}

.monthly-transactions-grid {
    padding: 15px;
    background: #fafafa;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.monthly-transaction-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.monthly-transaction-card:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.monthly-transaction-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.monthly-transaction-amount {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.monthly-transaction-amount::before {
    content: '💰';
    font-size: 1rem;
}

.monthly-transaction-amount.positive {
    color: #28a745;
}

.monthly-transaction-amount.negative {
    color: #dc3545;
}

.monthly-transaction-amount.neutral {
    color: #6c757d;
}

.monthly-day-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.monthly-day-toggle.collapsed {
    transform: rotate(-90deg);
}

.monthly-day-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.monthly-day-content.collapsed {
    max-height: 0;
}

/* ✅ KOSZTY I ZYSKI */
.expense-form-container,
.profit-summary-container,
.expenses-list-container {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    margin-bottom: 25px;
}

.expense-form-container h3,
.profit-summary-container h3,
.expenses-list-container h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
}

.expense-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.form-group input,
.form-group select {
    padding: 12px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group input::placeholder {
    color: #aaa;
}

.btn-add-expense {
    padding: 15px 30px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    align-self: flex-start;
}

.btn-add-expense:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-refresh {
    padding: 8px 16px;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: translateY(-1px);
}

/* Statystyki zysku */
.profit-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.profit-stat-card {
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    color: white;
    transition: transform 0.2s;
    position: relative;
    overflow: hidden;
}

.profit-stat-card:hover {
    transform: translateY(-3px);
}

.profit-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.profit-stat-card:hover::before {
    opacity: 1;
}

.profit-stat-card.revenue {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.profit-stat-card.expenses {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.profit-stat-card.profit.positive {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.profit-stat-card.profit.negative {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.profit-stat-card.profit.neutral {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.profit-stat-card.margin {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.profit-stat-card h4 {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.profit-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.profit-stat-card small {
    opacity: 0.8;
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}

/* Lista kosztów */
.expenses-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.expenses-filters select {
    padding: 8px 12px;
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    min-width: 150px;
}

.expenses-filters select:focus {
    outline: none;
    border-color: #4CAF50;
}

.expenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.expense-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.2s;
    border-left: 4px solid #dc3545;
}

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

.expense-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.expense-month {
    font-weight: 600;
    color: #2c3e50;
}

.expense-account {
    font-size: 0.9rem;
    color: #6c757d;
    background: rgba(108, 117, 125, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.expense-description {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 15px;
    line-height: 1.4;
}

.expense-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.expense-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: #dc3545;
}

.btn-delete-expense {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.btn-delete-expense:hover {
    background: rgba(220, 53, 69, 0.1);
    transform: scale(1.1);
}

/* Powiadomienia */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.success {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.notification.error {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Pusty stan dla analizy miesięcznej */
.monthly-no-data {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-style: italic;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.monthly-no-data::before {
    content: '📊';
    display: block;
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Responsywność */
@media (max-width: 768px) {
    .vinted-display-container {
        padding: 15px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .charts-container {
        grid-template-columns: 1fr;
    }

    .filters-container,
    .expenses-filters {
        flex-direction: column;
    }

    .filter-group {
        min-width: 100%;
    }

    .vinted-tabs {
        flex-direction: column;
    }

    .chart-controls,
    .daily-controls,
    .monthly-controls,
    .profit-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .modern-table {
        font-size: 0.9rem;
    }

    .modern-table th,
    .modern-table td {
        padding: 10px 8px;
    }

    .account-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .account-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .monthly-summary-stats,
    .profit-stats {
        grid-template-columns: 1fr;
    }
    
    .monthly-picker input[type="month"] {
        width: 100%;
        max-width: 250px;
    }
    
    .monthly-transactions-grid,
    .expenses-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-link {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .profit-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .monthly-day-header {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .monthly-day-summary {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .expense-card {
        padding: 15px;
    }
    
    .profit-value {
        font-size: 1.6rem;
    }
}

/* Mobile table responsiveness */
@media (max-width: 600px) {
    .modern-table,
    .modern-table thead,
    .modern-table tbody,
    .modern-table th,
    .modern-table td,
    .modern-table tr {
        display: block;
    }

    .modern-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .modern-table tr {
        border: 1px solid #ccc;
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 8px;
    }

    .modern-table td {
        border: none;
        position: relative;
        padding-left: 50%;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .modern-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        font-weight: 600;
        color: #555;
    }
    
    .notification {
        left: 10px;
        right: 10px;
        top: 10px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .vinted-display-container {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .stat-card,
    .filters-container,
    .chart-controls,
    .daily-controls,
    .monthly-controls,
    .profit-controls,
    .table-container,
    .chart-wrapper,
    .daily-analysis,
    .monthly-analysis,
    .account-switcher,
    .expense-form-container,
    .profit-summary-container,
    .expenses-list-container {
        background: #2d2d2d;
        color: #e0e0e0;
    }

    .modern-table th {
        background: #333;
        color: #e0e0e0;
    }

    .modern-table tr:hover {
        background: #333;
    }
    
    .expense-card {
        background: #333;
        border-color: #444;
    }
    
    .form-group input,
    .form-group select,
    .expenses-filters select {
        background: #333;
        color: #e0e0e0;
        border-color: #444;
    }
}
