/* Author: ADSCode.pl */
:root {
    --bg-color: #0f0f0f; 
    --panel-bg: #161616;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --accent: #ff7300;
    --accent-hover: #e66800;
    --border: #2a2a2a;
    --card-hover: #333333;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Montserrat', sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; }

.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.header { text-align: center; padding: 40px 0; border-bottom: 1px solid var(--border); margin-bottom: 40px; }
.header h1 { font-size: 2.5rem; text-transform: uppercase; letter-spacing: 2px; }
.header h1 span { color: var(--accent); }

/* --- Główne karty UI --- */
.card { background: var(--panel-bg); padding: 40px; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 15px 40px rgba(0,0,0,0.6); }

/* --- Formularze --- */
.form-group { background: #111111; border: 1px solid var(--border); padding: 25px; border-radius: 10px; margin-bottom: 0; transition: all 0.3s ease; }
.form-group:hover { border-color: var(--card-hover); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.form-group > label { display: block; margin-bottom: 20px; color: var(--accent); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.form-control { width: 100%; padding: 14px 15px; background: #0a0a0a; border: 1px solid #2a2a2a; color: #fff; border-radius: 6px; transition: 0.3s; font-size: 1rem; }
.form-control:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 8px rgba(255, 115, 0, 0.2); }
textarea.form-control { min-height: 120px; resize: vertical; }

.btn { display: inline-block; padding: 14px 28px; background: var(--accent); color: #fff; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; text-transform: uppercase; text-decoration: none; transition: 0.3s; text-align: center; }
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,115,0,0.3); }
.btn-small { padding: 8px 15px; font-size: 0.8rem; transform: none; box-shadow: none; }
.btn-small:hover { transform: none; box-shadow: none; background: var(--accent-hover); }
.btn-danger { background: #dc3545; }
.btn-danger:hover { background: #c82333; }
.btn-success { background: #28a745; }
.btn-info { background: #17a2b8; color: #fff; border: none; }
.btn-info:hover { background: #138496; }
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* --- Zaktualizowane statusy --- */
.badge { padding: 6px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-oczekujace { background: rgba(23, 162, 184, 0.1); color: #17a2b8; border: 1px solid #17a2b8; } /* Przyjęto */
.badge-w_trakcie { background: rgba(255, 115, 0, 0.1); color: var(--accent); border: 1px solid var(--accent); } /* W trakcie */
.badge-gotowe { background: rgba(40, 167, 69, 0.1); color: #28a745; border: 1px solid #28a745; } /* Gotowe */

/* Archiwalne (by się nie rozjechały stare zlecenia) */
.badge-zaakceptowane { background: rgba(255, 193, 7, 0.1); color: #ffc107; border: 1px solid #ffc107; }
.badge-odrzucone { background: rgba(220, 53, 69, 0.1); color: #dc3545; border: 1px solid #dc3545; }

/* --- Nowy Kokpit Admina (Layout SaaS by ADSCode) --- */
.admin-wrapper { display: flex; min-height: 100vh; background: var(--bg-color); }
.admin-sidebar { width: 280px; background: #111; border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; height: 100vh; }
.admin-logo { padding: 30px 20px; font-size: 1.8rem; font-weight: 800; text-transform: uppercase; text-align: center; border-bottom: 1px solid var(--border); color: #fff; }
.admin-logo span { color: var(--accent); }
.admin-nav { flex: 1; padding: 20px 0; }
.admin-nav a { display: block; padding: 15px 25px; color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 1rem; transition: 0.3s; border-left: 3px solid transparent; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; background: rgba(255,115,0,0.1); border-left-color: var(--accent); }
.admin-main { flex: 1; margin-left: 280px; padding: 40px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }

/* --- Rozwijane Zlecenia (Akordeon) --- */
.accordion-item { background: #161616; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 15px; overflow: hidden; transition: 0.3s; }
.accordion-item:hover { border-color: #444; }
.accordion-header { padding: 20px 25px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
.accordion-header-left { display: flex; flex-direction: column; gap: 5px; }
.accordion-header-title { font-size: 1.1rem; font-weight: bold; color: #fff; }
.accordion-header-subtitle { font-size: 0.85rem; color: var(--text-muted); }
.accordion-header-right { display: flex; align-items: center; gap: 20px; }
.accordion-icon { font-size: 1.2rem; color: var(--text-muted); transition: transform 0.3s ease; }
.accordion-item.active .accordion-icon { transform: rotate(180deg); color: var(--accent); }
.accordion-item.active { border-color: var(--accent); box-shadow: 0 0 20px rgba(255,115,0,0.1); }
.accordion-content { display: none; padding: 25px; border-top: 1px solid var(--border); background: #111; }
.accordion-item.active .accordion-content { display: block; animation: fadeIn 0.4s ease; }

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

/* --- Kafelki wewnątrz zlecenia (Grid Data) --- */
.admin-data-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; margin: 25px 0; }
.admin-data-card { background: #1a1a1a; padding: 15px; border-radius: 6px; border: 1px solid #222; border-left: 3px solid var(--accent); }
.admin-data-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 5px; font-weight: 600; }
.admin-data-value { font-size: 0.95rem; color: #fff; font-weight: 500; }
.admin-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.admin-action-box { background: #161616; padding: 20px; border-radius: 8px; border: 1px dashed var(--border); }

/* --- Form Builder Admin --- */
.builder-item { background: #111; padding: 15px; border: 1px dashed var(--border); margin-bottom: 10px; border-radius: 4px; display: grid; grid-template-columns: auto 2fr 1fr 1fr 1fr auto; gap: 15px; align-items: end; transition: border 0.2s ease, opacity 0.2s ease; cursor: default; }
.builder-controls { display: flex; gap: 5px; }
.drag-handle { cursor: grab; font-size: 1.8rem; color: var(--text-muted); padding-bottom: 5px; display: flex; align-items: center; justify-content: center; user-select: none; transition: 0.3s; }
.drag-handle:hover { color: var(--text-main); }
.drag-handle:active { cursor: grabbing; color: var(--accent); }
.builder-item.dragging { opacity: 0.4; border: 2px dashed var(--accent); }
.builder-item.drag-over { border-top: 4px solid var(--accent); margin-top: 15px; }
.hidden-elem { visibility: hidden; opacity: 0; pointer-events: none; }

/* --- UI klienta --- */
.client-form { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.col-100 { grid-column: 1 / -1; }
.col-50 { grid-column: span 1; }
@media (max-width: 850px) { .col-50 { grid-column: 1 / -1; } }

.radio-group { display: flex; flex-direction: column; gap: 15px; padding: 5px 0; }
.custom-control { display: flex; align-items: center; position: relative; padding-left: 35px; cursor: pointer; font-size: 0.95rem; color: #cccccc; user-select: none; transition: color 0.2s; min-height: 24px; }
.custom-control:hover { color: #ffffff; }
.custom-control input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { position: absolute; top: 50%; left: 0; transform: translateY(-50%); height: 24px; width: 24px; background-color: #1a1a1a; border: 2px solid #333333; transition: all 0.2s ease-in-out; }
.custom-control:hover input ~ .checkmark { border-color: #666; background-color: #222; }
.custom-control input:checked ~ .checkmark { background-color: var(--accent); border-color: var(--accent); }
.custom-radio .checkmark { border-radius: 50%; }
.custom-checkbox .checkmark { border-radius: 6px; }
.checkmark:after { content: ""; position: absolute; display: none; }
.custom-control input:checked ~ .checkmark:after { display: block; }
.custom-checkbox .checkmark:after { left: 7px; top: 3px; width: 6px; height: 12px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.custom-radio .checkmark:after { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 8px; height: 8px; border-radius: 50%; background: white; }
.radio-other-input { background: #1a1a1a; border: 1px solid #333; color: #fff; padding: 10px 15px; outline: none; font-size: 0.95rem; transition: 0.3s; width: 100%; border-radius: 6px; flex: 1; }
.radio-other-input:focus { border-color: var(--accent); box-shadow: 0 0 5px rgba(255,115,0,0.2); }
.radio-other-input:disabled { opacity: 0.4; cursor: not-allowed; background: transparent; border-color: transparent; border-bottom: 1px solid #333; border-radius: 0; padding-left: 5px; }
.other-option-wrapper { display: flex; align-items: center; gap: 15px; margin-top: 5px; flex-wrap: wrap; }

.form-separator { grid-column: 1 / -1; font-size: 1.4rem; font-weight: 800; color: #fff; border-bottom: 2px solid var(--accent); padding-bottom: 10px; margin-top: 30px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.nip-group { display: flex; gap: 10px; }
.nip-group input { flex: 1; }

