/* ============================================================
   DataTrend Services - Klientský portál
   Svetlomodrá téma (#1a9fc0) - rovnaká ako helpdesk
   ============================================================ */
:root {
  --p-primary:    #1a9fc0;
  --p-primary-dk: #0d7a99;
  --p-primary-lt: #e8f6fa;
  --p-bg:         #f0f4f7;
  --p-card-bg:    #ffffff;
  --p-text:       #2c3e50;
  --p-muted:      #6c757d;
  --p-border:     #dce6ec;
  --p-radius:     12px;
}

* { box-sizing: border-box; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--p-bg);
  color: var(--p-text);
  min-height: 100vh;
  margin: 0;
}

/* HEADER */
.portal-header {
  background: linear-gradient(135deg, var(--p-primary) 0%, var(--p-primary-dk) 100%);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(26,159,192,.3);
}
.portal-logo {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.1rem; color: white;
  text-decoration: none;
}
.portal-nav a {
  color: rgba(255,255,255,.85); text-decoration: none;
  font-size: .85rem; margin-left: 1.5rem;
  transition: color .15s;
}
.portal-nav a:hover { color: white; }

/* HERO */
.portal-hero {
  background: linear-gradient(135deg, var(--p-primary) 0%, var(--p-primary-dk) 100%);
  color: white;
  text-align: center;
  padding: 3.5rem 1rem 4rem;
}
.portal-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: .5rem; }
.portal-hero p { font-size: 1rem; opacity: .85; margin-bottom: 2rem; }
.badge-noauth {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px; padding: .3rem .9rem;
  font-size: .8rem; font-weight: 600; margin-bottom: 1.5rem;
}
.badge-noauth::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #2ecc71; display: inline-block;
}

/* BUTTONS */
.btn-portal-primary {
  background: white; color: var(--p-primary);
  border: none; border-radius: 50px;
  padding: .8rem 2rem; font-weight: 700; font-size: 1rem;
  cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; gap: .5rem;
  transition: all .2s; box-shadow: 0 4px 15px rgba(0,0,0,.15);
}
.btn-portal-primary:hover {
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.2);
  color: var(--p-primary-dk);
}
.btn-portal-secondary {
  background: rgba(255,255,255,.15); color: white;
  border: 1px solid rgba(255,255,255,.4); border-radius: 50px;
  padding: .8rem 2rem; font-weight: 600; font-size: 1rem;
  cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; gap: .5rem; transition: all .2s;
}
.btn-portal-secondary:hover { background: rgba(255,255,255,.25); color: white; }

/* CARDS */
.portal-card {
  background: var(--p-card-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* FORM */
.portal-form-section {
  background: var(--p-card-bg);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.portal-label {
  display: block; font-size: .75rem; font-weight: 700;
  color: var(--p-muted); letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: .35rem;
}
.portal-input {
  width: 100%; border: 1px solid var(--p-border);
  border-radius: 8px; padding: .6rem .9rem;
  font-size: .9rem; color: var(--p-text);
  background: var(--p-bg); transition: border-color .15s;
}
.portal-input:focus {
  outline: none; border-color: var(--p-primary);
  box-shadow: 0 0 0 3px rgba(26,159,192,.15);
  background: white;
}
.portal-textarea {
  width: 100%; border: 1px solid var(--p-border);
  border-radius: 8px; padding: .6rem .9rem;
  font-size: .9rem; color: var(--p-text);
  background: var(--p-bg); resize: vertical;
  min-height: 120px; transition: border-color .15s;
}
.portal-textarea:focus {
  outline: none; border-color: var(--p-primary);
  box-shadow: 0 0 0 3px rgba(26,159,192,.15);
  background: white;
}

/* PRIORITA BUTTONS */
.prio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.prio-btn {
  border: 2px solid var(--p-border); border-radius: 8px;
  padding: .5rem .75rem; cursor: pointer;
  font-size: .85rem; font-weight: 600;
  display: flex; align-items: center; gap: .5rem;
  background: white; color: var(--p-text);
  transition: all .15s;
}
.prio-btn:hover { border-color: var(--p-primary); background: var(--p-primary-lt); }
.prio-btn.active.low    { border-color: #27ae60; background: #eafaf1; color: #1e8449; }
.prio-btn.active.medium { border-color: var(--p-primary); background: var(--p-primary-lt); color: var(--p-primary-dk); }
.prio-btn.active.high   { border-color: #f39c12; background: #fef9e7; color: #9a6302; }
.prio-btn.active.critical { border-color: #e74c3c; background: #fdedec; color: #922b21; }
.prio-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* UPLOAD */
.upload-area {
  border: 2px dashed var(--p-border); border-radius: 8px;
  padding: 1.5rem; text-align: center; cursor: pointer;
  transition: all .15s; background: var(--p-bg);
}
.upload-area:hover { border-color: var(--p-primary); background: var(--p-primary-lt); }

/* SUBMIT */
.btn-submit-portal {
  background: linear-gradient(90deg, var(--p-primary), var(--p-primary-dk));
  color: white; border: none; border-radius: 50px;
  padding: .85rem 2.5rem; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 4px 15px rgba(26,159,192,.3);
}
.btn-submit-portal:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,159,192,.4);
}

/* PIN SEKCIA */
.pin-box {
  background: var(--p-primary-lt); border: 1px solid var(--p-primary);
  border-radius: 10px; padding: 1.25rem; text-align: center;
}
.pin-input {
  width: 180px; text-align: center; letter-spacing: .3em;
  font-size: 1.5rem; font-weight: 700;
  border: 2px solid var(--p-primary); border-radius: 8px;
  padding: .5rem; margin: .75rem auto; display: block;
}
.pin-input:focus { outline: none; box-shadow: 0 0 0 3px rgba(26,159,192,.2); }

/* STATUS BADGES */
.status-badge {
  display: inline-block; border-radius: 50px;
  padding: .2rem .7rem; font-size: .75rem; font-weight: 600;
}

/* ALERTS */
.portal-alert {
  border-radius: 8px; padding: .75rem 1rem;
  font-size: .875rem; margin-bottom: 1rem;
}
.portal-alert.info { background: var(--p-primary-lt); border: 1px solid var(--p-primary); color: var(--p-primary-dk); }
.portal-alert.success { background: #eafaf1; border: 1px solid #a9dfbf; color: #1e8449; }
.portal-alert.error { background: #fdedec; border: 1px solid #f5b7b1; color: #922b21; }

/* TICKET KARTA */
.ticket-card {
  background: white; border: 1px solid var(--p-border);
  border-radius: 10px; padding: 1rem 1.25rem;
  margin-bottom: .75rem; cursor: pointer;
  transition: all .15s; text-decoration: none; display: block; color: var(--p-text);
}
.ticket-card:hover {
  border-color: var(--p-primary);
  box-shadow: 0 4px 12px rgba(26,159,192,.12);
  transform: translateY(-1px);
}

/* DIVIDER */
.section-divider {
  text-align: center; color: var(--p-muted);
  font-size: .7rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; margin: 1.25rem 0 1rem;
  position: relative;
}
.section-divider::before, .section-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 35%; height: 1px; background: var(--p-border);
}
.section-divider::before { left: 0; }
.section-divider::after { right: 0; }
