/* Scholarship Test Feature Styles */

/* Notification Card Overlay */
.scholarship-notification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.scholarship-notification-overlay.active {
  display: flex;
}

/* Notification Card */
.scholarship-notification-card {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border-radius: 20px;
  max-width: 500px;
  width: 100%;
  padding: 40px 30px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: slideDown 0.4s ease;
  border: 3px solid transparent;
  background-clip: padding-box;
  position: relative;
}

.scholarship-notification-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  padding: 3px;
  background: linear-gradient(135deg, #f59e0b, #3b82f6, #10b981);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  z-index: -1;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.notification-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  animation: bounce 2s infinite;
}

.scholarship-notification-card h3 {
  color: #1e3a8a;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  line-height: 1.3;
}

.scholarship-notification-card p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 25px 0;
}

.scholarship-register-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
  margin-bottom: 20px;
}

.scholarship-register-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.4);
}

.scholarship-register-btn i {
  font-size: 1.2rem;
}

.dont-show-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.dont-show-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.dont-show-checkbox label {
  cursor: pointer;
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

/* Floating Button */
.scholarship-floating-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9998;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.scholarship-floating-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.5);
}

.scholarship-floating-btn i {
  font-size: 1.2rem;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 10px 35px rgba(245, 158, 11, 0.6);
  }
}

/* Popup Overlay */
.scholarship-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.scholarship-popup-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Popup Container */
.scholarship-popup {
  background: white;
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Popup Header */
.scholarship-popup-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  padding: 30px;
  border-radius: 20px 20px 0 0;
  text-align: center;
  position: relative;
}

.scholarship-popup-header h2 {
  margin: 0 0 10px 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.scholarship-popup-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
  line-height: 1.5;
}

.scholarship-popup-header .icon {
  font-size: 3rem;
  margin-bottom: 15px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Close Button */
.scholarship-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  z-index: 10;
}

.scholarship-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Close button for notification card */
.scholarship-notification-card .scholarship-close-btn {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  top: 15px;
  right: 15px;
}

.scholarship-notification-card .scholarship-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: rotate(90deg);
}

/* Popup Content */
.scholarship-popup-content {
  padding: 30px;
}

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

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

.form-group label {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.95rem;
}

.form-group label .required {
  color: #ef4444;
}

.form-group label .optional {
  color: #6b7280;
  font-weight: 400;
  font-size: 0.85rem;
}

.form-group input {
  padding: 12px 15px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input.error {
  border-color: #ef4444;
}

/* Submit Button */
.scholarship-submit-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.scholarship-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.scholarship-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.scholarship-submit-btn .spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Alert Messages */
.scholarship-alert {
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown 0.3s ease;
}

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

.scholarship-alert.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.scholarship-alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.scholarship-alert i {
  font-size: 1.2rem;
}

/* Don't Show Today Checkbox */
.dont-show-today {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: #f9fafb;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 10px;
}

.dont-show-today:hover {
  background: #f3f4f6;
}

.dont-show-today input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.dont-show-today label {
  cursor: pointer;
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .scholarship-notification-card {
    max-width: 95%;
    padding: 30px 20px;
  }

  .notification-icon {
    font-size: 3rem;
  }

  .scholarship-notification-card h3 {
    font-size: 1.5rem;
  }

  .scholarship-notification-card p {
    font-size: 0.95rem;
  }

  .scholarship-register-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .scholarship-floating-btn {
    bottom: 20px;
    left: 20px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .scholarship-popup {
    max-width: 95%;
    margin: 20px;
  }

  .scholarship-popup-header {
    padding: 25px 20px;
  }

  .scholarship-popup-header h2 {
    font-size: 1.5rem;
  }

  .scholarship-popup-header .icon {
    font-size: 2.5rem;
  }

  .scholarship-popup-content {
    padding: 20px;
  }

  .scholarship-close-btn {
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .scholarship-notification-card {
    padding: 25px 15px;
  }

  .notification-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .scholarship-notification-card h3 {
    font-size: 1.3rem;
  }

  .scholarship-notification-card p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .scholarship-register-btn {
    padding: 10px 25px;
    font-size: 0.95rem;
  }

  .dont-show-checkbox {
    font-size: 0.85rem;
  }

  .scholarship-floating-btn {
    padding: 10px 15px;
    font-size: 0.85rem;
    bottom: 15px;
    left: 15px;
  }

  .scholarship-floating-btn span {
    display: none;
  }

  .scholarship-popup-header h2 {
    font-size: 1.3rem;
  }

  .form-group input {
    padding: 10px 12px;
    font-size: 0.95rem;
  }

  .scholarship-submit-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

/* Success Animation */
.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.success-checkmark .check-icon {
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 50%;
  box-sizing: content-box;
  border: 4px solid #10b981;
}

.success-checkmark .check-icon::before {
  top: 3px;
  left: -2px;
  width: 30px;
  transform-origin: 100% 50%;
  border-radius: 100px 0 0 100px;
}

.success-checkmark .check-icon::after {
  top: 0;
  left: 30px;
  width: 60px;
  transform-origin: 0 50%;
  border-radius: 0 100px 100px 0;
  animation: rotate-circle 4.25s ease-in;
}

.success-checkmark .check-icon::before,
.success-checkmark .check-icon::after {
  content: '';
  height: 100px;
  position: absolute;
  background: #ffffff;
  transform: rotate(-45deg);
}

.success-checkmark .icon-line {
  height: 5px;
  background-color: #10b981;
  display: block;
  border-radius: 2px;
  position: absolute;
  z-index: 10;
}

.success-checkmark .icon-line.line-tip {
  top: 46px;
  left: 14px;
  width: 25px;
  transform: rotate(45deg);
  animation: icon-line-tip 0.75s;
}

.success-checkmark .icon-line.line-long {
  top: 38px;
  right: 8px;
  width: 47px;
  transform: rotate(-45deg);
  animation: icon-line-long 0.75s;
}

.success-checkmark .icon-circle {
  top: -4px;
  left: -4px;
  z-index: 10;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  box-sizing: content-box;
  border: 4px solid rgba(16, 185, 129, 0.5);
}

.success-checkmark .icon-fix {
  top: 8px;
  width: 5px;
  left: 26px;
  z-index: 1;
  height: 85px;
  position: absolute;
  transform: rotate(-45deg);
  background-color: #ffffff;
}

@keyframes rotate-circle {
  0% {
    transform: rotate(-45deg);
  }
  5% {
    transform: rotate(-45deg);
  }
  12% {
    transform: rotate(-405deg);
  }
  100% {
    transform: rotate(-405deg);
  }
}

@keyframes icon-line-tip {
  0% {
    width: 0;
    left: 1px;
    top: 19px;
  }
  54% {
    width: 0;
    left: 1px;
    top: 19px;
  }
  70% {
    width: 50px;
    left: -8px;
    top: 37px;
  }
  84% {
    width: 17px;
    left: 21px;
    top: 48px;
  }
  100% {
    width: 25px;
    left: 14px;
    top: 45px;
  }
}

@keyframes icon-line-long {
  0% {
    width: 0;
    right: 46px;
    top: 54px;
  }
  65% {
    width: 0;
    right: 46px;
    top: 54px;
  }
  84% {
    width: 55px;
    right: 0;
    top: 35px;
  }
  100% {
    width: 47px;
    right: 8px;
    top: 38px;
  }
}
