/* RESET I PODSTAWY */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: Arial, sans-serif; background: #f2f2f2; color: #333; line-height: 1.6; } /* LAYOUT GŁÓWNY */ header, nav, main, footer { max-width: 1200px; margin: 10px auto; padding: 15px; background: #fff; border: 1px solid #ccc; border-radius: 4px; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); } /* NAGŁÓWEK */ header { text-align: center; } header h1 { font-size: 2.5em; color: #444; font-weight: 700; } /* NAWIGACJA */ nav { display: flex; justify-content: center; background: #f9f9f9; } nav a { padding: 10px 15px; margin: 0 5px; text-decoration: none; color: #333; font-weight: bold; border-radius: 4px; transition: all 0.3s; } nav a:hover { background: #e0e0e0; } nav a.active { background: #4CAF50; color: #fff; } /* GŁÓWNA SEKCJA */ main { padding: 20px; } /* ZAKŁADKI */ .tab-content { display: none; padding: 20px; background: #fafafa; border: 1px solid #ddd; border-radius: 4px; } .tab-content.active { display: block; } .tab-content h2 { margin-bottom: 15px; font-size: 1.5em; border-bottom: 2px solid #ccc; padding-bottom: 5px; } /* STRONA GŁÓWNA */ #home ul { list-style: disc; margin: 0 0 15px 20px; } #home a { color: #4CAF50; text-decoration: none; } #home a:hover { text-decoration: underline; } /* FORMULARZ */ form { display: flex; flex-direction: column; gap: 15px; } form label { font-weight: bold; color: #555; } form input, form select { padding: 8px; border: 1px solid #ddd; border-radius: 4px; font-size: 1em; transition: border-color 0.3s; } form input:focus, form select:focus { border-color: #4CAF50; outline: none; } form button { padding: 10px 20px; background: #4CAF50; color: #fff; border: none; border-radius: 4px; cursor: pointer; transition: all 0.3s; } form button:hover { background: #45a049; } /* TABELA */ .table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; } .table-header button { padding: 10px 20px; background: #4CAF50; color: #fff; border: none; border-radius: 4px; cursor: pointer; transition: all 0.3s; } .table-header button:hover { background: #45a049; } #ordersTable { width: 100%; border-collapse: collapse; } #ordersTable th, #ordersTable td { border: 1px solid #ccc; padding: 12px; text-align: left; } #ordersTable th { background: #eee; font-weight: bold; } /* STOPKA */ footer { text-align: center; background: #f9f9f9; } /* RESPONSYWNOŚĆ */ @media (max-width: 768px) { header h1 { font-size: 2em; } nav { flex-direction: column; align-items: center; } nav a { margin: 5px 0; } main, .tab-content { padding: 15px; } #ordersTable th, #ordersTable td { padding: 8px; } } @media (max-width: 480px) { #ordersTable th, #ordersTable td { padding: 6px; font-size: 0.9em; } .table-header { flex-direction: column; align-items: flex-start; } .table-header button { margin-top: 10px; } }