/* ===========================
   PRISIJUNGIMO FORMA
   =========================== */
.ds-login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 30px 15px;
}
.ds-login-box {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 14px;
  padding: 40px 35px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.09);
}
.ds-login-box h2 {
  margin: 0 0 4px 0;
  font-size: 22px;
  color: #1a1a2e;
}
.ds-form-group {
  margin-bottom: 16px;
}
.ds-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}
.ds-form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ced4da;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.ds-form-group input:focus {
  border-color: #1a5276;
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.12);
}

/* ===========================
   PORTALAS — BENDRI
   =========================== */
.ds-portal {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px 40px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #222;
}

/* HEADER */
.ds-header {
  background: linear-gradient(135deg, #1a5276, #1f618d);
  color: #fff;
  padding: 22px 28px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.ds-header h2 {
  margin: 0 0 5px 0;
  color: #fff;
  font-size: 20px;
}
.ds-header p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}
.ds-header a {
  color: #aed6f1;
}

/* PROGRESO JUOSTA */
.ds-progress-wrap {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 15px 20px;
  margin-bottom: 20px;
}
.ds-progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}
.ds-progress-track {
  background: #e9ecef;
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
}
.ds-progress-fill {
  background: linear-gradient(90deg, #27ae60, #2ecc71);
  height: 10px;
  border-radius: 10px;
  transition: width 0.6s ease;
  min-width: 2px;
}

/* ===========================
   DOKUMENTŲ MEDIS
   =========================== */
.ds-tree {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Aplankas */
.ds-folder {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ds-folder-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  cursor: pointer;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  user-select: none;
  transition: background 0.2s;
}
.ds-folder-header:hover {
  background: #e9ecef;
}
.ds-folder-icon {
  font-size: 20px;
}
.ds-folder-name {
  font-weight: 600;
  font-size: 16px;
  flex: 1;
  color: #1a1a2e;
}

.ds-folder-badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.badge-done {
  background: #d4edda;
  color: #155724;
}
.badge-pending {
  background: #fff3cd;
  color: #856404;
}

.ds-arrow {
  color: #999;
  font-size: 12px;
  transition: transform 0.2s;
}

.ds-folder-content {
  padding: 0;
}

/* Sub-aplankas */
.ds-subfolder {
  border-top: 1px solid #e9ecef;
}
.ds-subfolder-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 12px 36px;
  background: #fdfdfd;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #444;
  transition: background 0.2s;
}
.ds-subfolder-header:hover {
  background: #f0f0f0;
}

/* Tuščias aplankas */
.ds-empty-folder {
  padding: 16px 20px;
  color: #aaa;
  font-size: 14px;
  font-style: italic;
}

/* ===========================
   DOKUMENTO EILUTĖ
   =========================== */
.ds-doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid #f0f0f0;
  transition: background 0.15s;
  gap: 10px;
}
.ds-doc-row:hover {
  background: #fafafa;
}

.ds-doc-row.row-done {
  border-left: 4px solid #27ae60;
  padding-left: 16px;
}
.ds-doc-row.row-pending {
  border-left: 4px solid #f39c12;
  padding-left: 16px;
}

.ds-doc-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.ds-doc-file-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.ds-doc-left strong {
  display: block;
  font-size: 15px;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds-doc-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.row-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}

/* ===========================
   TUSČIA BŪSENA
   =========================== */
.ds-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
}
.ds-empty-icon {
  font-size: 64px;
  margin-bottom: 15px;
}
.ds-empty-state h3 {
  margin: 0 0 8px 0;
  color: #444;
}
.ds-empty-state p {
  color: #888;
  margin: 0;
}

/* ===========================
   MYGTUKAI
   =========================== */
.ds-btn {
  display: inline-block;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  line-height: 1.4;
}
.ds-btn-primary {
  background: #1a5276;
  color: #fff !important;
}
.ds-btn-primary:hover {
  background: #154360;
}
.ds-btn-secondary {
  background: #e9ecef;
  color: #333 !important;
}
.ds-btn-secondary:hover {
  background: #dee2e6;
}
.ds-btn-outline {
  background: transparent;
  color: #1a5276 !important;
  border: 1.5px solid #1a5276;
}
.ds-btn-outline:hover {
  background: #eaf2fb;
}
.ds-btn-full {
  width: 100%;
  text-align: center;
}
.ds-btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}
.ds-btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

/* ===========================
   MODALAS
   =========================== */
.ds-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ds-modal-box {
  background: #fff;
  border-radius: 14px;
  padding: 35px;
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.ds-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: #f1f1f1;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 18px;
  cursor: pointer;
  color: #555;
  transition: background 0.2s;
}
.ds-modal-close:hover {
  background: #e0e0e0;
  color: #000;
}
.ds-modal-body {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 22px;
  margin: 18px 0;
  min-height: 120px;
  line-height: 1.8;
  font-size: 15px;
}
.ds-modal-footer {
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid #e9ecef;
}

/* ===========================
   PRANEŠIMAI
   =========================== */
.ds-notice {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
}
.ds-notice-success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}
.ds-notice-error {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}
.ds-notice-warning {
  background: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
}

.ds-loading {
  text-align: center;
  padding: 30px;
  color: #999;
  font-size: 15px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 600px) {
  .ds-folder-name {
    font-size: 14px;
  }
  .ds-doc-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .ds-doc-right {
    width: 100%;
    justify-content: flex-end;
  }
  .ds-modal-box {
    padding: 20px;
  }
  .ds-progress-info {
    flex-direction: column;
    gap: 4px;
  }
}
