/* SSH Portal — Ana stil */
:root {
  --blue: #06067c;
  --blue-light: #eeeef9;
  --orange: #f06313;
  --green: #2e7d32;
  --red: #c62828;
  --gray: #f8f8f8;
  --border: #e0e0e0;
  --text: #222;
  --text-light: #666;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f0f0f8; color: var(--text); }

/* HEADER */
.ssh-header { background: var(--blue); padding: 1rem 2rem; }
.ssh-header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 16px; }
.ssh-logo { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.ssh-header h1 { color: #fff; font-size: 20px; font-weight: 700; }
.ssh-header p { color: rgba(255,255,255,0.65); font-size: 13px; margin-top: 2px; }
.lang-switcher { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.lang-btn { color: rgba(255,255,255,0.6); font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 4px; text-decoration: none; transition: all .15s; }
.lang-btn:hover, .lang-btn.active { background: var(--orange); color: #fff; }

/* MAIN */
.ssh-main { max-width: 900px; margin: 2rem auto; padding: 0 1rem 4rem; }
.ssh-form-wrap { background: #fff; border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.ssh-form-header { background: var(--blue); padding: 1.5rem 2rem; }
.ssh-form-header h2 { color: #fff; font-size: 18px; font-weight: 600; }
.ssh-form-header p { color: rgba(255,255,255,0.65); font-size: 13px; margin-top: 4px; }

/* SECTION */
.ssh-section { padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); }
.ssh-section-title { font-size: 13px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--blue-light); }

/* GRID */
.ssh-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.ssh-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }

/* FIELD */
.ssh-field { display: flex; flex-direction: column; gap: 5px; }
.ssh-field label { font-size: 12px; font-weight: 600; color: #555; }
.ssh-field input,
.ssh-field select,
.ssh-field textarea {
  padding: 9px 12px;
  border: 1.5px solid rgba(6,6,124,0.2);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.ssh-field input:focus,
.ssh-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(6,6,124,0.1); }

/* VALIDATION — xəta animasiyası */
.ssh-field input.invalid,
.ssh-field select.invalid {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(198,40,40,0.12);
  animation: shake 0.4s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.ssh-field-error {
  font-size: 11px;
  color: var(--red);
  margin-top: 2px;
  display: none;
}
.ssh-field.has-error .ssh-field-error { display: block; }

.req { color: var(--orange); }

/* PHONE INPUT */
.ssh-phone-wrap { display: flex; gap: 6px; }
.ssh-phone-wrap select { width: 130px; flex-shrink: 0; font-size: 13px; }
.ssh-phone-wrap input { flex: 1; }

/* CHECKBOX TALEN */
.ssh-checkbox-group { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ssh-checkbox-group label {
  display: flex; align-items: center; gap: 5px;
  background: var(--gray); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 10px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  transition: all .15s;
  color: var(--text);
}
.ssh-checkbox-group label:hover { border-color: var(--blue); background: var(--blue-light); }
.ssh-checkbox-group input[type="checkbox"] { display: none; }
.ssh-checkbox-group input[type="checkbox"]:checked + span {
  color: var(--blue); font-weight: 700;
}
.ssh-checkbox-group label:has(input:checked) {
  background: var(--blue); border-color: var(--blue); color: #fff;
}

/* DOC ROW */
.ssh-doc-row { background: var(--gray); border-radius: var(--radius); padding: 1rem; margin-bottom: .75rem; border: 1px solid var(--border); }
.ssh-doc-header { display: flex; align-items: center; gap: 10px; margin-bottom: .75rem; }
.ssh-doc-name { font-size: 14px; font-weight: 600; color: var(--text); }
.ssh-doc-badge { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.ssh-doc-badge.required { background: #ffebee; color: var(--red); }
.ssh-doc-badge.optional { background: var(--blue-light); color: var(--blue); }
.ssh-doc-fields { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 10px; }

/* UPLOAD */
.ssh-upload-zone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 12px; cursor: pointer; background: #fff; transition: all .15s; }
.ssh-upload-zone:hover { border-color: var(--orange); background: #fff8f4; }
.ssh-upload-inner { display: flex; align-items: center; gap: 8px; }
.ssh-upload-inner span { font-size: 11px; color: var(--text-light); }
.ssh-file-name { font-size: 12px; color: var(--green); font-weight: 600; display: block; margin-top: 4px; }

/* SUBMIT */
.ssh-submit-wrap { padding: 1.5rem 2rem; }
.ssh-btn-primary { width: 100%; padding: 14px; background: var(--blue); color: #fff; border: none; border-radius: var(--radius); font-size: 16px; font-weight: 600; cursor: pointer; transition: background .15s; font-family: inherit; }
.ssh-btn-primary:hover { background: #0a0ab0; }
.ssh-error { background: #ffebee; color: var(--red); padding: 10px 14px; border-radius: var(--radius); margin-bottom: 1rem; font-size: 13px; }
.ssh-loading { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.ssh-spinner { width: 24px; height: 24px; border: 3px solid #eee; border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* SUCCESS */
.ssh-success { text-align: center; padding: 4rem 2rem; }
.ssh-success-icon { width: 80px; height: 80px; background: #e8f5e9; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 36px; color: var(--green); }
.ssh-success h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.ssh-success p { font-size: 15px; color: var(--text-light); max-width: 400px; margin: 0 auto; line-height: 1.7; }

/* ADMIN */
.ssh-status { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.ssh-status.pending { background: #fff3e0; color: #e65100; }
.ssh-status.approved { background: #e8f5e9; color: var(--green); }
.ssh-status.rejected { background: #ffebee; color: var(--red); }
.ssh-status.expired { background: #f5f5f5; color: #757575; }
.ssh-status.incomplete { background: #e8eaf6; color: #3949ab; }
.ssh-table { width: 100%; background: #fff; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.ssh-table table { width: 100%; border-collapse: collapse; }
.ssh-table th { background: var(--blue); color: #fff; padding: 10px 14px; font-size: 12px; font-weight: 600; text-align: left; }
.ssh-table td { padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border); }
.ssh-table tr:hover td { background: var(--gray); }
.ssh-btn { padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; font-family: inherit; }
.ssh-btn-green { background: #e8f5e9; color: var(--green); }
.ssh-btn-red { background: #ffebee; color: var(--red); }
.ssh-btn-blue { background: var(--blue-light); color: var(--blue); }
.ssh-btn-orange { background: #fff3e0; color: var(--orange); }

/* MODAL */
.ssh-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.ssh-modal-overlay.open { display: flex; }
.ssh-modal { background: #fff; border-radius: 12px; padding: 1.5rem; max-width: 480px; width: 90%; }
.ssh-modal h3 { font-size: 16px; font-weight: 700; color: var(--blue); margin-bottom: 1rem; }
.ssh-modal-actions { display: flex; gap: 8px; margin-top: 1rem; justify-content: flex-end; }

/* RESPONSIVE */
@media (max-width: 700px) {
  .ssh-grid-2, .ssh-grid-3, .ssh-doc-fields { grid-template-columns: 1fr; }
  .ssh-header-inner { flex-wrap: wrap; }
  .ssh-main { margin: 1rem auto; }
  .ssh-section { padding: 1rem; }
  .ssh-phone-wrap { flex-direction: column; }
  .ssh-phone-wrap select { width: 100%; }
}
