/* Reset i bazowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* Upload form */
.upload-form {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.upload-form .form-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.upload-form .form-group {
    flex: 1;
    margin-bottom: 0;
}

.upload-form input[type="file"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

/* Project files section */
.project-files {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.project-info,
.project-materials,
.project-worklog {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Nawigacja */
.main-nav {
    background-color: #2c3e50;
    color: white;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 15px 0;
    display: block;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 20px 15px;
    display: block;
    transition: background-color 0.3s;
}

.nav-menu li a:hover {
    background-color: #34495e;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    color: white;
}

.user-role {
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: calc(100vh - 140px);
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-primary {
    background-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #27ae60;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-small {
    padding: 5px 12px;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Formularze */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Tabele */
.data-table {
    width: 100%;
    background-color: white;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.data-table thead {
    background-color: #34495e;
    color: white;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.data-table .total-row {
    background-color: #ecf0f1;
    font-weight: bold;
}

.info-table {
    width: 100%;
    background-color: white;
    border-collapse: collapse;
}

.info-table th {
    width: 200px;
    text-align: right;
    padding: 10px 15px;
    background-color: #f8f9fa;
    font-weight: 500;
}

.info-table td {
    padding: 10px 15px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-pending {
    background-color: #f39c12;
    color: white;
}

.badge-in_progress,
.badge-in-progress {
    background-color: #3498db;
    color: white;
}

.badge-completed {
    background-color: #27ae60;
    color: white;
}

.badge-new {
    background-color: #9b59b6;
    color: white;
}

.badge-active {
    background-color: #27ae60;
    color: white;
}

.badge-disabled {
    background-color: #95a5a6;
    color: white;
}

.badge-warning {
    background-color: #e67e22;
    color: white;
}

.badge-success {
    background-color: #27ae60;
    color: white;
}

/* Messages */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Login page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #7f8c8d;
    font-size: 1.2rem;
    font-weight: normal;
}

.login-info {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
}

.login-info ul {
    list-style-position: inside;
    margin-top: 10px;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dashboard-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.dashboard-card.alert-card {
    border-left: 4px solid #e74c3c;
}

.dashboard-card h2 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #2c3e50;
}

.welcome-text {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.clock {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    color: #2c3e50;
}

.date {
    text-align: center;
    color: #7f8c8d;
    margin-top: 10px;
}

/* Notifications */
.notification-list {
    list-style: none;
}

.notification-item {
    padding: 10px;
    border-left: 3px solid #3498db;
    background-color: #f8f9fa;
    margin-bottom: 10px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.notification-item.low_stock {
    border-left-color: #e74c3c;
}

.notification-content {
    flex: 1;
}

.notification-message {
    display: block;
}

.notification-time {
    display: block;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.notification-actions {
    display: flex;
    gap: 5px;
}

.btn-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    background-color: #95a5a6;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.btn-icon:hover {
    background-color: #7f8c8d;
}

.btn-icon.btn-delete {
    background-color: #e74c3c;
}

.btn-icon.btn-delete:hover {
    background-color: #c0392b;
}

/* Task list */
.task-list {
    list-style: none;
}

.task-item {
    padding: 10px;
    border-left: 3px solid #3498db;
    background-color: #f8f9fa;
    margin-bottom: 10px;
    border-radius: 4px;
}

.task-item.urgent {
    border-left-color: #e74c3c;
}

.task-due {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 5px;
}

.task-entry {
    padding: 5px 0;
    font-size: 0.9rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card.alert {
    border: 2px solid #e74c3c;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    color: #7f8c8d;
    margin-top: 10px;
}

/* Filters */
.filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-form input,
.filter-form select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.inline-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Page actions */
.page-actions {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 85vh;
    overflow-y: auto;
}

.modal-content.modal-large {
    max-width: 900px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: #000;
}

/* Task input rows */
.task-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.task-input-row input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.task-input-row .task-name {
    flex: 2;
}

.task-input-row .task-hours {
    flex: 1;
}

/* Low stock warning */
.low-stock {
    background-color: #fff5f5 !important;
}

/* Section */
.section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-section {
    border-left: 4px solid #e74c3c;
}

/* Footer */
.main-footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: #7f8c8d;
}

.text-danger {
    color: #e74c3c;
}

.text-success {
    color: #27ae60;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu li a {
        padding: 15px;
    }
    
    .nav-user {
        padding: 15px 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
    
    .task-input-row {
        flex-direction: column;
    }
    
    .upload-form .form-row {
        flex-direction: column;
    }
}/* Reset i bazowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* Nawigacja */
.main-nav {
    background-color: #2c3e50;
    color: white;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 15px 0;
    display: block;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
}

.nav-menu li a {
    color: white;
    text-decoration: none;
    padding: 20px 15px;
    display: block;
    transition: background-color 0.3s;
}

.nav-menu li a:hover {
    background-color: #34495e;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    color: white;
}

.user-role {
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: calc(100vh - 140px);
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.btn-primary {
    background-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-success {
    background-color: #27ae60;
}

.btn-success:hover {
    background-color: #229954;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-small {
    padding: 5px 12px;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Formularze */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Tabele */
.data-table {
    width: 100%;
    background-color: white;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.data-table thead {
    background-color: #34495e;
    color: white;
}

.data-table th,
.data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

.data-table .total-row {
    background-color: #ecf0f1;
    font-weight: bold;
}

.info-table {
    width: 100%;
    background-color: white;
    border-collapse: collapse;
}

.info-table th {
    width: 200px;
    text-align: right;
    padding: 10px 15px;
    background-color: #f8f9fa;
    font-weight: 500;
}

.info-table td {
    padding: 10px 15px;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.badge-pending {
    background-color: #f39c12;
    color: white;
}

.badge-in_progress,
.badge-in-progress {
    background-color: #3498db;
    color: white;
}

.badge-completed {
    background-color: #27ae60;
    color: white;
}

.badge-new {
    background-color: #9b59b6;
    color: white;
}

.badge-active {
    background-color: #27ae60;
    color: white;
}

.badge-disabled {
    background-color: #95a5a6;
    color: white;
}

.badge-warning {
    background-color: #e67e22;
    color: white;
}

.badge-success {
    background-color: #27ae60;
    color: white;
}

/* Messages */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Login page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.login-box h1 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #7f8c8d;
    font-size: 1.2rem;
    font-weight: normal;
}

.login-info {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
}

.login-info ul {
    list-style-position: inside;
    margin-top: 10px;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dashboard-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.959);
}

.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.dashboard-card.alert-card {
    border-left: 4px solid #e74c3c;
}

.dashboard-card h2 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #2c3e50;
}

.welcome-text {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.clock {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    color: #2c3e50;
}

.date {
    text-align: center;
    color: #7f8c8d;
    margin-top: 10px;
}

/* Notifications */
.notification-list {
    list-style: none;
}

.notification-item {
    padding: 10px;
    border-left: 3px solid #3498db;
    background-color: #f8f9fa;
    margin-bottom: 10px;
    border-radius: 4px;
}

.notification-item.low_stock {
    border-left-color: #e74c3c;
}

.notification-message {
    display: block;
}

.notification-time {
    display: block;
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Task list */
.task-list {
    list-style: none;
}

.task-item {
    padding: 10px;
    border-left: 3px solid #3498db;
    background-color: #f8f9fa;
    margin-bottom: 10px;
    border-radius: 4px;
}

.task-item.urgent {
    border-left-color: #e74c3c;
}

.task-due {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 5px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-card.alert {
    border: 2px solid #e74c3c;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    color: #7f8c8d;
    margin-top: 10px;
}

/* Filters */
.filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-form input,
.filter-form select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.inline-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Page actions */
.page-actions {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.modal-content.modal-large {
    max-width: 900px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

/* Task input rows */
.task-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.task-input-row input {
    flex: 1;
}

.task-entry {
    padding: 5px 0;
    font-size: 0.9rem;
}

/* Low stock warning */
.low-stock {
    background-color: #fff5f5 !important;
}

/* Section */
.section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-section {
    border-left: 4px solid #e74c3c;
}

/* Footer */
.main-footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-muted {
    color: #7f8c8d;
}

.text-danger {
    color: #e74c3c;
}

.text-success {
    color: #27ae60;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu li a {
        padding: 15px;
    }
    
    .nav-user {
        padding: 15px 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px;
    }
}

/* ============================================
   SYSTEM PRZEWODNIKÓW - STYLE CSS
   Dodaj na KOŃCU pliku: v2.0/assets/css/style.css
   ============================================ */

/* Overlay dla przewodnika */
.guide-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
    animation: fadeIn 0.3s ease;
}

.guide-overlay.active {
    display: block;
}

/* Główny kontener przewodnika */
.guide-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 450px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
    animation: slideInUp 0.4s ease;
}

.guide-container.active {
    display: block;
}

/* Nagłówek przewodnika */
.guide-header {
    padding: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
}

.guide-icon {
    font-size: 40px;
    line-height: 1;
}

.guide-title {
    flex: 1;
}

.guide-title h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 600;
}

.guide-title .guide-subtitle {
    margin: 0;
    font-size: 13px;
    opacity: 0.8;
}

.guide-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background 0.3s;
}

.guide-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Treść przewodnika */
.guide-content {
    padding: 25px;
    max-height: 400px;
    overflow-y: auto;
}

.guide-content::-webkit-scrollbar {
    width: 8px;
}

.guide-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.guide-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.guide-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Kroki przewodnika */
.guide-step {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.guide-step:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.guide-step:last-child {
    margin-bottom: 0;
}

.guide-step-number {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-weight: bold;
    margin-right: 10px;
    font-size: 14px;
}

.guide-step-text {
    display: inline;
    font-size: 15px;
    line-height: 1.6;
}

.guide-step-text strong {
    color: #ffd700;
}

/* Sekcje przewodnika */
.guide-section {
    margin-bottom: 20px;
}

.guide-section:last-child {
    margin-bottom: 0;
}

.guide-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-section-icon {
    font-size: 20px;
}

/* Ostrzeżenia */
.guide-warning {
    background: rgba(255, 193, 7, 0.2);
    border-left: 4px solid #ffc107;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
}

.guide-warning-icon {
    font-size: 20px;
    margin-right: 8px;
}

.guide-warning-text {
    font-size: 14px;
    line-height: 1.5;
}

/* Wskazówki */
.guide-tip {
    background: rgba(76, 175, 80, 0.2);
    border-left: 4px solid #4caf50;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
}

.guide-tip-icon {
    font-size: 20px;
    margin-right: 8px;
}

.guide-tip-text {
    font-size: 14px;
    line-height: 1.5;
}

/* Stopka przewodnika */
.guide-footer {
    padding: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.guide-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 120px;
}

.guide-button-primary {
    background: white;
    color: #667eea;
}

.guide-button-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.guide-button-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.guide-button-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Checkbox "Nie pokazuj więcej" */
.guide-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    opacity: 0.9;
    cursor: pointer;
    flex: 0 0 auto;
    width: 100%;
    margin-bottom: 10px;
}

.guide-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Animacje */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Pulsujący przycisk pomocy */
.help-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    z-index: 9997;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.help-button.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    }
}

/* Lista przewodników */
.guide-menu {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 15px;
    max-width: 300px;
    display: none;
    z-index: 9997;
    animation: slideInUp 0.3s ease;
}

.guide-menu.active {
    display: block;
}

.guide-menu-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.guide-menu-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
}

.guide-menu-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

.guide-menu-item:last-child {
    margin-bottom: 0;
}

.guide-menu-icon {
    font-size: 24px;
    width: 40px;
    text-align: center;
}

.guide-menu-text {
    flex: 1;
}

.guide-menu-text h4 {
    margin: 0 0 3px 0;
    font-size: 14px;
    font-weight: 600;
}

.guide-menu-text p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

/* Responsywność */
@media (max-width: 768px) {
    .guide-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
    
    .guide-content {
        max-height: 300px;
    }
    
    .guide-footer {
        flex-direction: column;
    }
    
    .guide-button {
        width: 100%;
    }
    
    .guide-checkbox {
        order: -1;
    }
    
    .help-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
    
    .guide-menu {
        left: 10px;
        right: 10px;
        bottom: 75px;
        max-width: none;
    }
}

/* Highlight dla elementów */
.guide-highlight {
    position: relative;
    z-index: 10000 !important;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.8) !important;
    border-radius: 8px !important;
}

/* Strzałka wskaźnika */
.guide-arrow {
    position: fixed;
    z-index: 9999;
    font-size: 40px;
    color: #ffd700;
    animation: bounce 1s infinite;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


.filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-form select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
}

@media (max-width: 768px) {
    .filter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-form select,
    .filter-form .btn {
        width: 100%;
    }
}