/* Admin Dashboard Specific Styles */

/* Base Layout */
body {
  font-family: 'Mukti', 'Mukta', sans-serif;
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  background: linear-gradient(135deg, #ff9a56 0%, #ffad56 50%, #fb8c00 100%);
  background-attachment: fixed;
}

/* Dashboard Container */
.dashboard-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 12px 40px rgba(255, 154, 86, 0.3);
  max-width: 650px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-container.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.dashboard-header {
  text-align: center;
  margin-bottom: 30px;
}

.dashboard-header h2 {
  color: #FF5722;
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(255, 87, 34, 0.1);
}

/* Main Content Areas */
.dashboard-content {
  width: 100%;
}

.program-submission,
.admin-verification {
  margin-bottom: 20px;
}

/* Form Styles */
.form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: #BF360C;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Input Styles */
.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(255, 243, 224, 0.9);
  border: 2px solid #FFB74D;
  color: #BF360C;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 183, 77, 0.2);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #FF9800;
  background: rgba(255, 243, 224, 1);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
  transform: translateY(-1px);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(191, 54, 12, 0.6);
  font-style: italic;
}

/* Button Styles */
.form-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: white;
  box-shadow: 0 4px 15px rgba(245, 124, 0, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #F57C00, #EF6C00);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 124, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(245, 124, 0, 0.3);
}

.btn-secondary {
  background: linear-gradient(135deg, #9E9E9E, #757575);
  color: white;
  box-shadow: 0 4px 15px rgba(117, 117, 117, 0.3);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #757575, #616161);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(117, 117, 117, 0.4);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

/* Admin Info */
.admin-info {
  background: rgba(76, 175, 80, 0.1);
  border: 2px solid rgba(76, 175, 80, 0.3);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}

.admin-welcome {
  color: #2E7D32;
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 15px 0;
}

/* Error Message */
.error-message {
  background: rgba(244, 67, 54, 0.1);
  border: 2px solid rgba(244, 67, 54, 0.3);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

.error-message p {
  color: #D32F2F;
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
}

/* Loading Animation */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading .btn {
  position: relative;
}

.loading .btn::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 15px;
  }
  
  .dashboard-container {
    padding: 20px;
    margin: 10px auto;
  }
  
  .dashboard-header h2 {
    font-size: 1.5rem;
  }
  
  .form-input,
  .form-textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  .dashboard-container {
    padding: 15px;
  }
  
  .dashboard-header h2 {
    font-size: 1.3rem;
    line-height: 1.3;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .form-input,
  .form-textarea {
    border-width: 3px;
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .dashboard-container,
  .btn,
  .form-input,
  .form-textarea {
    transition: none;
  }
  
  .btn::before {
    display: none;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
}

/* Image Upload Styles */
.form-hint {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
  font-style: italic;
  line-height: 1.4;
}

.image-preview {
  margin-top: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  border: 2px dashed #ddd;
  text-align: center;
}

.image-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

input[type="file"] {
  padding: 8px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"]:hover {
  border-color: #4B0082;
  background: rgba(75, 0, 130, 0.05);
}

input[type="file"]:focus {
  outline: none;
  border-color: #4B0082;
  box-shadow: 0 0 0 3px rgba(75, 0, 130, 0.1);
}
