* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #f5f5f5; color: #1a1a1a; min-height: 100vh; }

.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { background: #fff; padding: 40px; width: 360px; border: 1px solid #ddd; }
.login-box h1 { font-size: 16px; font-weight: 600; margin-bottom: 24px; text-transform: uppercase; letter-spacing: 1px; }
.login-box input[type="password"] { width: 100%; padding: 10px 12px; border: 1px solid #ccc; font-size: 14px; margin-bottom: 16px; outline: none; }
.login-box input[type="password"]:focus { border-color: #333; }
.login-box button { width: 100%; padding: 10px; background: #1a1a1a; color: #fff; border: none; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; }
.login-box button:hover { background: #333; }
.login-error { background: #fee; color: #c00; padding: 8px 12px; font-size: 13px; margin-bottom: 16px; border-left: 3px solid #c00; }

.app { max-width: 720px; margin: 0 auto; padding: 60px 20px; }
.header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 40px; border-bottom: 2px solid #1a1a1a; padding-bottom: 12px; }
.header h1 { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.header a { font-size: 12px; color: #999; text-decoration: none; }
.header a:hover { color: #1a1a1a; }

.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tool-card { display: block; background: #fff; border: 1px solid #ddd; padding: 28px 24px; text-decoration: none; color: #1a1a1a; transition: border-color 0.15s; }
.tool-card:hover { border-color: #1a1a1a; }
.tool-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.3px; }
.tool-desc { font-size: 13px; color: #666; line-height: 1.5; }

/* Zamowienia dostawcy */
.generate-btn { display: block; width: 100%; padding: 14px; background: #1a1a1a; color: #fff; border: none; font-size: 14px; font-weight: 600; cursor: pointer; letter-spacing: 0.5px; }
.generate-btn:hover { background: #333; }
.generate-btn:disabled { background: #999; cursor: wait; }
.back-link { display: inline-block; font-size: 12px; color: #999; text-decoration: none; margin-bottom: 24px; }
.back-link:hover { color: #1a1a1a; }

.status { margin-top: 20px; padding: 12px 14px; font-size: 13px; display: none; }
.status.info-msg { background: #f0f4ff; color: #336; border-left: 3px solid #4466cc; }
.status.success { background: #f0fff0; color: #363; border-left: 3px solid #4a4; }
.status.error { background: #fee; color: #633; border-left: 3px solid #c44; }

.progress-wrap { margin-top: 16px; display: none; }
.progress-bar { height: 3px; background: #eee; }
.progress-fill { height: 3px; background: #1a1a1a; width: 0%; transition: width 0.3s; }
.progress-text { font-size: 12px; color: #999; margin-top: 6px; }
.timing { margin-top: 20px; font-size: 11px; color: #999; font-family: monospace; display: none; }
.timing div { padding: 1px 0; }

.info { margin-bottom: 24px; }
.info summary { font-size: 13px; font-weight: 600; color: #666; cursor: pointer; text-transform: uppercase; letter-spacing: 0.5px; }
.info ol { margin-top: 12px; padding-left: 20px; font-size: 13px; color: #555; line-height: 1.8; }

/* Parser */
.card { background: #fff; border: 1px solid #ddd; padding: 24px; margin-bottom: 16px; }
.card h2 { font-size: 15px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.3px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #333; }
.form-group input, .form-group select { width: 100%; padding: 10px 12px; border: 1px solid #ccc; font-size: 14px; outline: none; }
.form-group input:focus, .form-group select:focus { border-color: #333; }

.btn { display: inline-block; padding: 10px 20px; font-size: 13px; font-weight: 600; text-decoration: none; cursor: pointer; border: none; text-transform: uppercase; letter-spacing: 0.5px; }
.btn-primary { background: #1a1a1a; color: #fff; }
.btn-primary:hover { background: #333; }
.btn-secondary { background: #eee; color: #333; }
.btn-secondary:hover { background: #ddd; }
.btn-success { background: #2a6e2a; color: #fff; }
.btn-success:hover { background: #358035; }

.alert { padding: 12px 14px; font-size: 13px; margin-bottom: 12px; }
.alert-error { background: #fee; color: #633; border-left: 3px solid #c44; }
.alert-success { background: #f0fff0; color: #363; border-left: 3px solid #4a4; }
.alert-info { background: #f0f4ff; color: #336; border-left: 3px solid #4466cc; }

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.summary-item { font-size: 13px; color: #666; }
.summary-item strong { display: block; font-size: 18px; color: #1a1a1a; margin-top: 2px; }

.meta-info { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eee; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 8px 10px; border-bottom: 2px solid #1a1a1a; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.3px; }
td { padding: 8px 10px; border-bottom: 1px solid #eee; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.status-found { color: #2a6e2a; }
.status-new { color: #b85c00; }
.row-notfound { background: #fffbf0; }
.actions { display: flex; gap: 12px; }

@media (max-width: 600px) {
    .tools-grid { grid-template-columns: 1fr; }
    .summary { grid-template-columns: 1fr 1fr; }
}
