
body {
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #74ABE2, #5563DE);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
  line-height: 1.6;
}

.container {
  background: #fff;
  max-width: 800px;
  width: 90%;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  text-align: center;
  position: relative;
  margin: 20px auto;
}

.user-header {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.username {
  font-weight: 500;
  font-size: 16px;
}

.logout-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.logout-btn:hover {
  background: #c82333;
}

h1, h2 {
  margin: 20px 0;
  color: #333;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 24px;
  text-align: left;
  margin-top: 30px;
}

input[type="file"] {
  width: 100%;
  padding: 10px;
  margin: 20px 0;
  border: 2px solid #ddd;
  border-radius: 5px;
  transition: border-color 0.3s;
  font-size: 16px;
}

input[type="file"]:focus {
  outline: none;
  border-color: #5563DE;
}

button.check-btn {
  width: 100%;
  padding: 12px;
  background-color: #5563DE;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 20px;
}

button.check-btn:hover {
  background-color: #374785;
}

.message {
  margin-top: 20px;
  font-size: 18px;
  padding: 10px;
  border-radius: 4px;
}

.result-container {
  margin-top: 30px;
  text-align: left;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.result-content {
  background: #121212; /* Tamsus fonas */
  color: #e0e0e0;      /* Šviesus tekstas */
  padding: 15px;
  border-radius: 5px;
  font-family: Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  line-height: 1.5;
  border: 1px solid #333;
}

.result-content hr {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.1), rgba(0,0,0,0));
  margin: 15px 0;
}

.result-content strong {
  font-weight: bold;
  color: #2c3e50;
}

.success {
  color: #28a745;
  font-weight: bold;
}

.error {
  color: #dc3545;
  font-weight: bold;
}

.warning {
  color: #ffc107;
  font-weight: bold;
}

label {
  text-align: left;
  font-size: 16px;
  margin-top: 10px;
  display: block;
  font-weight: 500;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 2px solid #ddd;
  border-radius: 5px;
  transition: border-color 0.3s;
  font-size: 16px;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #5563DE;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #5563DE;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
}

button:hover {
  background-color: #374785;
}

p {
  margin-top: 20px;
  font-size: 14px;
}

a {
  color: #5563DE;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #374785;
  text-decoration: underline;
}

.limits-info {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 15px;
  text-align: center;
  font-size: 16px;
}

.limits-info strong {
  color: #5563DE;
  font-size: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

th {
  background-color: #f2f2f2;
  font-weight: 500;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

.back-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 15px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.back-btn:hover {
  background: #0069d9;
}

.action-btn {
  padding: 5px 10px;
  background: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.3s;
}

.action-btn:hover {
  background: #218838;
}

.history-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 15px;
  background: #6c757d;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.history-link:hover {
  background: #5a6268;
}


.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.pdf-download {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 12px;
  background-color: #28a745;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s;
}

.pdf-download:hover {
  background-color: #218838;
  text-decoration: none;
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  .user-header {
    position: static;
    justify-content: flex-end;
    margin-bottom: 20px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  table {
    font-size: 14px;
  }

  th, td {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .user-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
  }

  .username {
    font-size: 14px;
  }

  .logout-btn {
    padding: 6px 10px;
    font-size: 13px;
  }

  h1 {
    font-size: 22px;
  }

  .limits-info {
    font-size: 14px;
  }

  .limits-info strong {
    font-size: 16px;
  }

  input[type="file"] {
    padding: 8px;
    font-size: 14px;
  }

  button.check-btn {
    padding: 10px;
    font-size: 16px;
  }

  .message {
    font-size: 16px;
  }

  .result-content {
    padding: 10px;
    font-size: 14px;
  }
}

.result-item {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.result-item:before {
  content: "•";
  position: absolute;
  left: 0;
  color: #5563DE;
}

.section-header {
  font-weight: bold;
  margin: 15px 0 10px;
  color: #2c3e50;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-danger:hover {
    background-color: #c82333;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    margin-right: 10px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    padding: 6px 12px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    margin-right: 5px;
}
.btn-primary:hover {
    background-color: #0056b3;
}

.flash {
  padding: 12px 14px;
  border-radius: 6px;
  margin: 15px 0;
  text-align: left;
  font-size: 15px;
  border: 1px solid transparent;
}

.flash-success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.flash-error {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}


.pw-checklist {
  text-align: left;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  margin: 8px 0 12px;
}

.pw-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.pw-item .mark {
  width: 16px;
  font-weight: 700;
}

.pw-item.ok .mark  { color: #28a745; } 
.pw-item.fail .mark { color: #dc3545; } 


input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 2px solid #ddd;
  border-radius: 5px;
  transition: border-color 0.3s;
  font-size: 16px;
}


input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: #5563DE;
}




.results-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}


.result-section {
  background-color: #000;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
}


.result-section-summary {
  background-color: #303f9f;
  color: #fff;
  padding: 12px 15px;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #222;
}


.result-section-summary::-webkit-details-marker {
  display: none;
}


.result-section-summary::after {
  content: "▼";
  font-size: 12px;
  margin-left: 10px;
  transition: transform 0.2s;
}
.result-section[open] > .result-section-summary::after {
  transform: rotate(180deg);
}


.result-section-body {
  background-color: #080808; 
  padding: 15px;
  color: #ddd;
}


.pdf-download-link {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 15px;
  background-color: #2e7d32;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
}

.pdf-download-link:hover {
  background-color: #1b5e20;
}

.loader {
  display: none;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #5563DE;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 10px auto;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}


.result-block {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}


.res-header {
    background-color: #2c2c2c;
    color: #ffffff;
    padding: 10px 15px;
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    border-left: none; 
}


.res-pass {
    background-color: #1a2634; 
    color: #90caf9;           
    border-left: 5px solid #2196f3; 
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 3px;
}


.res-fail {
    background-color: #3e2021; 
    color: #ff8a80;           
    border-left: 5px solid #d32f2f; 
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 3px;
}


.res-warn {
    background-color: #332b00; 
    color: #ffd54f;           
    border-left: 5px solid #ffca28;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 3px;
}


.res-info {
    background-color: #1a2634; 
    color: #90caf9;
    border-left: 5px solid #64b5f6;
    padding: 10px 15px;
    margin-bottom: 5px;
    border-radius: 3px;
}