/* Apple-inspired design aesthetic for Certificate Portal */

:root {
  --primary-color: #000000;
  --secondary-color: #0071e3;
  --background-color: #f5f5f7;
  --card-background: #ffffff;
  --text-color: #1d1d1f;
  --text-secondary: #86868b;
  --error-color: #ff3b30;
  --success-color: #34c759;
  --border-radius: 12px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
  --font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0 20px;
}

.logo {
  max-width: 180px;
  height: auto;
}

/* Card Styles */
.card {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 32px;
  margin: 20px 0;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form-control {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border: 1px solid #d2d2d7;
  border-radius: var(--border-radius);
  background-color: var(--card-background);
  transition: var(--transition);
  outline: none;
  color: var(--text-color);
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.2);
}

.form-control::placeholder {
  color: var(--text-secondary);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #333333;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

.btn-secondary:hover {
  background-color: rgba(0, 113, 227, 0.1);
}

.btn-block {
  display: block;
  width: 100%;
}

/* Alert Messages */
.alert {
  padding: 16px;
  border-radius: var(--border-radius);
  margin-bottom: 24px;
  animation: slideIn 0.3s ease-out;
}

.alert-error {
  background-color: rgba(255, 59, 48, 0.1);
  color: var(--error-color);
  border-left: 4px solid var(--error-color);
}

.alert-success {
  background-color: rgba(52, 199, 89, 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

/* Certificate Card */
.certificate-card {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 32px;
  margin: 40px 0;
  transition: var(--transition);
  animation: fadeIn 0.5s ease-out;
}

.certificate-header {
  margin-bottom: 24px;
  border-bottom: 1px solid #d2d2d7;
  padding-bottom: 16px;
}

.certificate-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.certificate-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
}

.certificate-details {
  margin-bottom: 32px;
}

.detail-row {
  display: flex;
  margin-bottom: 16px;
}

.detail-label {
  width: 40%;
  font-weight: 500;
  color: var(--text-secondary);
}

.detail-value {
  width: 60%;
  font-weight: 500;
}

.certificate-actions {
  display: flex;
  gap: 16px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .card {
    padding: 24px;
  }
  
  .detail-row {
    flex-direction: column;
  }
  
  .detail-label, .detail-value {
    width: 100%;
  }
  
  .certificate-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 12px;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 16px;
}

.mb-4 {
  margin-bottom: 16px;
}

.logout-link {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.logout-link:hover {
  color: var(--secondary-color);
}
