/**
 * INLEA Dashboard - Teljes CSS Fájl
 * 
 * Összes stílus minden dashboard oldalhoz
 */

/* ================================
   RESET ÉS ALAPVETŐ STÍLUSOK
   ================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* ================================
   HEADER
   ================================ */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e1e5e9;
    padding: 20px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo h1 {
    font-size: 1.8em;
    font-weight: 600;
    color: #2d3748;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-details {
    text-align: right;
    font-size: 14px;
    color: #4a5568;
}

.logout-btn {
    background: #e53e3e;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: #c53030;
}

/* ================================
   NAVIGATION
   ================================ */
.navigation {
    background: white;
    border-bottom: 1px solid #e1e5e9;
    padding: 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    gap: 0;
}

.nav-links a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    padding: 16px 20px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #2b6cb0;
    border-bottom-color: #2b6cb0;
    background: rgba(43, 108, 176, 0.05);
}

/* ================================
   CONTAINER ÉS PAGE LAYOUT
   ================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 2em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.page-description {
    color: #718096;
    font-size: 1.1em;
}

/* ================================
   WELCOME SECTION (Dashboard specifikus)
   ================================ */
.welcome-section {
    background: linear-gradient(135deg, #2b6cb0 0%, #3182ce 100%);
    color: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.welcome-title {
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 10px;
}

.welcome-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.quick-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 12px 24px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.quick-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* ================================
   BUTTONS
   ================================ */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #2b6cb0;
    color: white;
}

.btn-primary:hover {
    background: #2c5aa0;
}

.btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-danger {
    background: #e53e3e;
    color: white;
}

.btn-danger:hover {
    background: #c53030;
}

.action-btn {
    padding: 6px 12px;
    font-size: 12px;
    margin: 0 2px;
}

/* ================================
   CARDS
   ================================ */
.card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    height: fit-content;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
}

.card-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #2d3748;
}

.card-link {
    color: #2b6cb0;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.card-link:hover {
    color: #2c5aa0;
}

/* ================================
   SUMMARY CARDS / STAT CARDS
   ================================ */
/* Summary cards - 5 oszlop */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 oszlop egy sorban */
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.summary-card {
    background: white;
    border-radius: 8px;
    padding: 20px 15px; /* Nagyobb padding */
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
}

.summary-value {
    font-size: 24px; /* Nagyobb betűméret */
    font-weight: bold;
    color: #2b6cb0;
    margin-bottom: 8px;
}

.summary-label {
    font-size: 13px; /* Nagyobb label */
    color: #4a5568;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stats-grid {
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card,
.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card {
    padding: 24px;
}

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

.stat-icon {
    width: 50px;
    height: 50px;
    background: #e6f3ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: #2b6cb0;
}

.summary-value,
.stat-value {
    font-size: 1.6em;
    font-weight: 700;
    color: #2b6cb0;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2em;
    color: #2d3748;
}

.summary-label,
.stat-label {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-label {
    font-size: 13px;
}

/* ================================
   DASHBOARD GRIDS
   ================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.trends-section {
    margin-bottom: 30px;
}

.trends-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.summary-section {
    width: 100%;
    margin-bottom: 20px;
}

/* ================================
   TABLES
   ================================ */
.table-container,
.categories-table-container,
.products-table-container,
.uploads-table-container {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.table-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.table-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #2d3748;
}

.table-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-group label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.control-group select {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 13px;
}

.sort-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sort-controls label {
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.sort-controls select {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 13px;
}

.data-table,
.categories-table,
.products-table,
.uploads-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td,
.categories-table th,
.categories-table td,
.products-table th,
.products-table td,
.uploads-table th,
.uploads-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.categories-table th,
.categories-table td {
    padding: 12px 24px;
}

.data-table th,
.categories-table th,
.products-table th,
.uploads-table th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s;
}

.data-table th:hover,
.categories-table th:hover,
.products-table th:hover,
.uploads-table th:hover {
    background: #edf2f7;
}

.data-table td,
.categories-table td,
.products-table td,
.uploads-table td {
    font-size: 14px;
}

.number-cell {
    text-align: right;
    font-weight: 500;
}

.revenue-cell {
    font-weight: 600;
    color: #38a169;
    text-align: right;
}

/* Table specific cells */
.category-name {
    color: #2d3748;
    font-weight: 500;
    max-width: 300px;
    word-wrap: break-word;
}

.category-name .full-name {
    display: none;
    font-size: 12px;
    color: #718096;
    font-weight: 400;
    margin-top: 4px;
}

.product-name {
    color: #2d3748;
    font-weight: 500;
    max-width: 250px;
}

.product-details {
    font-size: 12px;
    color: #718096;
    margin-top: 4px;
}

.category-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-cell {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #4a5568;
}

.period-cell {
    font-weight: 600;
    color: #2d3748;
}

.filename-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.status-cell {
    text-align: center;
}

.actions-cell {
    text-align: center;
    white-space: nowrap;
}

/* ================================
   FILTERS
   ================================ */
.filters-section {
    background: #fffde7; /* Halvány sárga háttér */
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    align-items: end;
}

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

.filter-group label {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
    font-size: 14px;
}

.filter-group select,
.filter-group input {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-container {
    display: flex;
    width: 100%;
}

.search-container input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.search-btn {
    padding: 10px 15px;
    background-color: #4299e1;
    color: white;
    border: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}

.search-btn:hover {
    background-color: #3182ce;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.actions-group {
    display: flex;
    gap: 10px;
}

/* ================================
   UPLOADS SECTION
   ================================ */
.upload-section {
    background: white;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.upload-section:hover {
    border-color: #2b6cb0;
    background: #f7fafc;
}

.upload-section h2 {
    font-size: 1.5em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.upload-section p {
    color: #718096;
    margin-bottom: 30px;
}

.upload-form {
    display: inline-block;
    text-align: left;
    max-width: 500px;
}

.upload-button {
    background: #2b6cb0;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.upload-button:hover {
    background: #2c5aa0;
}

.upload-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.upload-info {
    line-height: 1.5;
    background: #e8f4f8;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 14px;
}

.uploads-section {
    margin-bottom: 30px;
}

.uploads-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

/* ================================
   LISTS (Products, Categories, Uploads)
   ================================ */
.product-list,
.category-list,
.upload-list {
    list-style: none;
}

.product-item,
.category-item,
.upload-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.category-item {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.product-item:last-child,
.category-item:last-child,
.upload-item:last-child {
    border-bottom: none;
}

.product-info,
.upload-info {
    flex: 1;
}

.product-name {
    font-weight: 500;
    color: #2d3748;
    font-size: 14px;
    margin-bottom: 2px;
}

.product-category {
    font-size: 12px;
    color: #718096;
}

.product-revenue,
.category-revenue {
    font-weight: 600;
    color: #38a169;
    text-align: right;
}

.category-name-short {
    font-weight: 500;
    color: #2d3748;
}

.upload-period {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.upload-filename {
    font-size: 12px;
    color: #718096;
    font-family: 'Courier New', monospace;
    margin-top: 2px;
}

.upload-date {
    font-size: 12px;
    color: #718096;
    text-align: right;
}

/* ================================
   CATEGORY GRIDS
   ================================ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.category-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 15px;
    line-height: 1.3;
}

.category-revenue {
    font-weight: 700;
    color: #38a169;
    font-size: 16px;
    white-space: nowrap;
}

.category-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #718096;
}

.top-categories-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.top-categories-card h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

/* ================================
   MONTH STATS (Dashboard)
   ================================ */
.monthly-chart {
    background: white;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.chart-placeholder {
    height: 250px;
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-style: italic;
}

.latest-month-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    border: 1px solid #e2e8f0;
}

.month-header {
    text-align: center;
    margin-bottom: 20px;
}

.month-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.month-subtitle {
    color: #718096;
    font-size: 14px;
}

.month-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.month-stat {
    text-align: center;
    padding: 15px;
    background: #f7fafc;
    border-radius: 6px;
}

.month-stat-value {
    font-size: 1.3em;
    font-weight: 600;
    color: #2b6cb0;
    margin-bottom: 5px;
}

.month-stat-label {
    font-size: 12px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================
   BADGES
   ================================ */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-completed {
    background: #c6f6d5;
    color: #22543d;
}

.badge-error {
    background: #fed7d7;
    color: #742a2a;
}

.badge-high {
    background: #c6f6d5;
    color: #22543d;
}

.badge-medium {
    background: #feebc8;
    color: #c05621;
}

.badge-low {
    background: #fed7d7;
    color: #742a2a;
}

.badge-sale {
    background: #fee2e2;
    color: #b91c1c;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
}

.badge-stock {
    background: #dcfce7;
    color: #166534;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
}

.badge-low-stock {
    background: #fef3c7;
    color: #92400e;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-left: 10px;
}

.status-completed {
    background: #c6f6d5;
    color: #22543d;
}

/* ================================
   ALERTS
   ================================ */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f1aeb5;
}

.alert.info {
    background: #ebf8ff;
    color: #2a69ac;
    border: 1px solid #bee3f8;
}

/* ================================
   MODALS
   ================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-header {
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* ================================
   NO DATA STATE
   ================================ */
.no-data {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-style: italic;
}

/* ================================
   FORM ELEMENTS
   ================================ */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #2b6cb0;
    box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

/* ================================
   FOOTER
   ================================ */
.footer-actions {
    text-align: center;
    margin-top: 30px;
}

.footer-btn {
    background: #2b6cb0;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.footer-btn:hover {
    background: #2c5aa0;
}

/* ================================
   UTILITY CLASSES
   ================================ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.font-bold {
    font-weight: 600;
}

.text-sm {
    font-size: 14px;
}

.text-xs {
    font-size: 12px;
}

.text-gray {
    color: #718096;
}

.text-primary {
    color: #2b6cb0;
}

.text-success {
    color: #38a169;
}

.text-danger {
    color: #e53e3e;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        flex-direction: row;
    }
    
    .summary-cards,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .summary-section,
    .dashboard-grid,
    .trends-grid {
        grid-template-columns: 1fr;
    }
    
    .table-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .table-controls {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .data-table,
    .categories-table,
    .products-table,
    .uploads-table {
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td,
    .categories-table th,
    .categories-table td,
    .products-table th,
    .products-table td,
    .uploads-table th,
    .uploads-table td {
        padding: 8px 12px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        padding: 12px 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .month-stats {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .filters-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .actions-group {
        width: 100%;
        justify-content: stretch;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }
    
    .card {
        padding: 20px;
    }
    
    .summary-cards,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 1.5em;
    }
    
    .welcome-title {
        font-size: 1.8em;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================
   LOGIN STYLES
   ================================ */

/* login.php stílusok */
.login-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

body.login-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* login_simple.php stílusok */
.login-simple .login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-simple h1 {
    color: #333;
    margin-bottom: 30px;
}

/* login_debug.php stílusok */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 50px;
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.debug-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    font-size: 12px;
    text-align: left;
    color: #333;
    line-height: 1.4;
}

.debug-section h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.debug-section pre {
    background: #f4f4f4;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 10px 0;
    font-size: 11px;
}

.debug-section ul {
    list-style: none;
    padding-left: 0;
}

.debug-section li {
    padding: 2px 0;
    border-bottom: 1px dotted #ddd;
}

.loading {
    display: none;
    margin-left: 10px;
}

.loading.show {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.system-info {
    margin-top: 20px;
    font-size: 12px;
    color: #999;
}

/* Közös login form stílusok */
.login-button {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

/* ================================
   LOGIN STYLES - KIEGÉSZÍTÉSEK
   ================================ */

/* Logo stílusok */
.login-page .logo {
    margin-bottom: 30px;
}

.login-page .logo h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-page .logo p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Debug stílusok */
.debug {
    margin-top: 20px;
    font-size: 12px;
    color: #666;
    text-align: left;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
}

.debug-info {
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    font-size: 12px;
    color: #666;
    text-align: left;
}

/* Responsive login oldalak */
@media (max-width: 480px) {
    .login-container {
        padding: 30px 25px;
        margin: 10px;
    }
    
    .login-page .logo h1 {
        font-size: 2em;
    }
}

/* ================================
   LOGIN STYLES - ALERT KIEGÉSZÍTÉSEK
   ================================ */

/* Alert stílusok a login oldalakhoz */
.login-page .alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 500;
}

.login-page .alert.error {
    background: rgba(248, 215, 218, 0.9);
    color: #721c24;
    border: 1px solid #f1aeb5;
}

.login-page .alert.success {
    background: rgba(212, 237, 218, 0.9);
    color: #155724;
    border: 1px solid #badbcc;
}

.login-page .alert.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    font-size: 14px;
    margin-top: 20px;
}

/* ================================
   CATEGORIES PAGE STYLES
   ================================ */

/* SZÉLESEBB NÉZET - Container és layout módosítások */
.container {
    max-width: 1400px; /* Eredeti: ~1200px */
    margin: 0 auto;
    padding: 20px;
    width: 95%; /* Majdnem teljes szélesség */
}

/* Kategória specifikus stílusok */
.categories-table th {
    background: #f7fafc;
    color: #4a5568;
    font-weight: 600;
    font-size: 12px;
    padding: 15px 10px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.categories-table td {
    padding: 15px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #f7fafc;
}

.categories-table tr:hover {
    background-color: #f8fafc;
}

/* Kategória név - teljes megjelenítés */
.category-name {
    color: #2d3748;
    font-weight: 500;
    max-width: none; /* Korlát eltávolítása */
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.4;
}

.category-name a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.2s;
}

.category-name a:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

/* Teljes kategória név mindig látható, nem csak hover-re */
.category-name .full-name {
    display: block; /* Mindig látható */
    font-size: 12px;
    color: #718096;
    font-weight: 400;
    margin-top: 4px;
}

/* Táblázat szélesség optimalizálás */
.categories-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.categories-table {
    width: 100%;
    min-width: 1200px; /* Minimum szélesség görgetéshez - egyezik a products oldaléval */
    border-collapse: collapse;
    font-size: 13px;
}

/* Oszlop szélességek optimalizálva */
.col-category { width: 35%; }
.col-products { width: 10%; text-align: center; }
.col-revenue { width: 15%; text-align: right; }
.col-sold { width: 10%; text-align: center; }
.col-avg { width: 15%; text-align: right; }
.col-performance { width: 15%; text-align: center; }

/* Időszak választó */
.period-selector {
    min-width: 200px;
}

.products-table {
    width: 100%;
    min-width: 1200px; /* Minimum szélesség görgetéshez */
    border-collapse: collapse;
    font-size: 13px;
}

/* ================================
   PRODUCTS PAGE STYLES
   ================================ */

/* Products specifikus stílusok */
.products-insights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.insight-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
}

.insight-card h4 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
}

.insight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f7fafc;
}

.insight-item:last-child {
    border-bottom: none;
}

.insight-label {
    font-size: 14px;
    color: #4a5568;
    max-width: 65%;
}

.insight-value {
    font-weight: 600;
    color: #2b6cb0;
    text-align: right;
}

.table-enhanced {
    font-size: 13px;
}

.table-enhanced th {
    background: #f7fafc;
    color: #4a5568;
    font-weight: 600;
    font-size: 12px;
    padding: 15px 10px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}

.table-enhanced td {
    padding: 15px 10px;
    vertical-align: middle;
    border-bottom: 1px solid #f7fafc;
}

.table-enhanced tr:hover {
    background-color: #f8fafc;
}

/* Oszlop szélességek optimalizálva */
.col-rank { width: 4%; text-align: center; }
.col-catalog { width: 12%; }
.col-product { width: 35%; }
.col-category { width: 18%; }
.col-revenue { width: 12%; text-align: right; }
.col-quantity { width: 8%; text-align: center; }
.col-profit { width: 11%; text-align: center; }

.profit-cell {
    text-align: center;
    font-weight: 600;
}

.performance-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.performance-high {
    background: #38a169;
}

.performance-medium {
    background: #f56500;
}

.performance-low {
    background: #e53e3e;
}

/* Stock és supplier stock ikonok */
.stock-icon {
    color: #e53e3e;
    font-weight: bold;
    margin-left: 5px;
    font-size: 11px;
}

.supplier-unavailable {
    color: #e53e3e;
    font-weight: bold;
    margin-left: 5px;
}

.catalog-cell {
    font-weight: 600;
    color: #2b6cb0;
    position: relative;
}

/* Profit színezés */
.profit-positive {
    color: #38a169;
}

.profit-negative {
    color: #e53e3e;
}

.profit-neutral {
    color: #718096;
}

.profit-excellent {
    color: #38a169;
    font-weight: bold;
}

.profit-good {
    color: #68d391;
}

.profit-poor {
    color: #f56500;
}

.profit-loss {
    color: #e53e3e;
    font-weight: bold;
}

/* Termék név és kategória - teljes megjelenítés */
.product-name {
    max-width: none; /* Korlát eltávolítása */
    word-wrap: break-word;
    line-height: 1.4;
}

.product-name-main {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.product-details {
    font-size: 11px;
    color: #718096;
    margin-top: 3px;
    line-height: 1.3;
}

.product-meta {
    font-size: 10px;
    color: #a0aec0;
    margin-top: 2px;
}

/* Products table container */
.products-table-container {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

/* Custom period selection */
.custom-period {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.custom-period.show {
    display: block;
}

.custom-period-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    gap: 10px;
    align-items: center;
}

.custom-period input {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
}

.custom-period label {
    font-size: 13px;
    color: #4a5568;
    font-weight: 500;
}

/* Reszponzív módosítások */
@media (max-width: 1200px) {
    .container {
        width: 98%;
        padding: 15px;
    }
    
    .products-table, .categories-table {
        min-width: 1000px;
    }
    
    .summary-cards {
    grid-template-columns: repeat(3, 1fr); /* 3 oszlop kisebb képernyőn */
    width: 100%;
    max-width: 100%;
}
}

@media (max-width: 992px) {
    .products-insights {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .products-insights {
        grid-template-columns: 1fr;
    }
    
    .table-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .custom-period-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .container {
        width: 100%;
        padding: 10px;
    }
    
    .summary-cards {
    grid-template-columns: repeat(2, 1fr); /* 2 oszlop mobilon */
    width: 100%;
    max-width: 100%;
}
}

/* ================================
   CHART STYLES
   ================================ */

.chart-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    padding: 20px;
    margin-bottom: 30px;
}

.chart-container.large {
    height: 400px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.chart-canvas {
    position: relative;
    height: calc(100% - 50px);
}

.charts-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .charts-row {
        grid-template-columns: 1fr;
    }
}

/* Változás indikátorok */
.change-indicator {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 5px;
}

.change-indicator.positive {
    color: #38a169;
    background-color: rgba(56, 161, 105, 0.1);
}

.change-indicator.negative {
    color: #e53e3e;
    background-color: rgba(229, 62, 62, 0.1);
}

.change-arrow {
    font-size: 10px;
    margin-left: 2px;
}

.previous-year-info {
    font-size: 12px;
    color: #718096;
    margin-top: 5px;
    font-style: italic;
}

/* Év/Év összehasonlítás stílusok */
.comparison-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    padding: 20px;
    margin-bottom: 30px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.comparison-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.comparison-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 15px 0;
}

.comparison-values {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    align-items: center;
}

.current-value {
    font-size: 20px;
    font-weight: 700;
    color: #2b6cb0;
}

.previous-value {
    font-size: 16px;
    color: #718096;
    position: relative;
}

.previous-value:before {
    content: "vs";
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #a0aec0;
}

.comparison-change {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
}

.comparison-change.positive {
    background-color: rgba(56, 161, 105, 0.1);
}

.comparison-change.negative {
    background-color: rgba(229, 62, 62, 0.1);
}

.change-value {
    font-size: 18px;
    font-weight: 700;
}

.comparison-change.positive .change-value {
    color: #38a169;
}

.comparison-change.negative .change-value {
    color: #e53e3e;
}

.change-label {
    font-size: 12px;
    margin-top: 4px;
    color: #4a5568;
}

@media (max-width: 1200px) {
    .comparison-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}