/* 
 * Baohanh Application Styles
 * Version: 1.1.0
 * Last Updated: 2025-01-08
 * Features: Password protection, login/logout functionality
 */

body {
  padding: 50px;
  font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
}

a {
  color: #00B7FF;
}

/* Form styling */
form {
  max-width: 600px;
  margin: 0 auto;
}

input[type="text"] {
  width: 100%;
  padding: 20px;
  font-size: 18px;
  border: 2px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: #00B7FF;
  box-shadow: 0 0 10px rgba(0, 183, 255, 0.3);
}

input[type="text"]::placeholder {
  color: #999;
}

.btn {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin: 10px 10px 10px 0;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #00B7FF;
  color: white;
}

.btn-primary:hover {
  background-color: #0099CC;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
  min-width: 80px;
}

/* Header Actions */
.header-actions {
  text-align: right;
  margin-bottom: 20px;
}

/* Login Page */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  text-align: center;
  background: #f8f9fa;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
  margin-bottom: 10px;
  color: #333;
}

.login-container p {
  margin-bottom: 30px;
  color: #6c757d;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #f5c6cb;
  margin-bottom: 20px;
  font-size: 14px;
}

/* Recent Items Section */
.recent-items {
  margin: 30px 0;
  text-align: left;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.recent-items h2 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 18px;
  text-align: center;
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: white;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  transition: all 0.2s ease;
  gap: 15px;
}

.item:hover {
  border-color: #00B7FF;
  box-shadow: 0 2px 4px rgba(0, 183, 255, 0.1);
}

.item .dsn {
  font-weight: bold;
  color: #333;
  font-family: monospace;
  font-size: 14px;
}

.item .date {
  color: #6c757d;
  font-size: 12px;
}

.no-items {
  text-align: center;
  color: #6c757d;
  font-style: italic;
  margin: 0;
}

/* PDF Preview Page */
.preview-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.pdf-viewer {
  margin: 30px 0;
  border: 2px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pdf-viewer iframe {
  display: block;
  background: #f8f9fa;
}

.action-buttons {
  margin: 20px 0 30px 0;
}

.action-buttons .btn {
  display: inline-block;
  margin: 0 10px;
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    padding: 20px;
  }
  
  input[type="text"] {
    padding: 15px;
    font-size: 16px;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 14px;
    width: 100%;
    margin: 5px 0;
  }
  
  .pdf-viewer {
    margin: 20px 0;
  }
  
  .pdf-viewer iframe {
    height: 400px;
  }
  
  .action-buttons .btn {
    display: block;
    margin: 10px 0;
  }
  
  .recent-items {
    margin: 20px 0;
    padding: 15px;
  }
  
  .item {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .item .btn-small {
    align-self: stretch;
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .item .dsn {
    font-size: 13px;
  }
  
  .item .date {
    font-size: 11px;
  }
}
