/* ==========================================================================
   University of Shendi (USH) - Student Services Portal Stylesheet
   ========================================================================== */

.ush-portal-header {
  background: linear-gradient(135deg, var(--ush-primary), var(--ush-primary-dark));
  color: #fff;
  padding: 40px 0;
  border-bottom: 4px solid var(--ush-secondary);
}

.ush-portal-breadcrumb {
  font-size: 0.82rem;
  color: var(--ush-text-light);
  margin-bottom: 12px;
}

.ush-portal-breadcrumb a {
  color: #fff;
}

.ush-portal-title-wrap h1 {
  color: #fff;
  font-size: 2.2rem;
  margin: 8px 0;
}

.ush-portal-title-wrap p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 700px;
}

/* Portal Body & Tabs */
.ush-portal-body {
  padding: 40px 0 80px;
  background-color: var(--ush-bg-main);
}

.ush-portal-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--ush-border);
  margin-bottom: 30px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.ush-ptab-btn {
  background: none;
  border: none;
  padding: 12px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ush-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 3px solid transparent;
  transition: var(--ush-transition);
  white-space: nowrap;
}

.ush-ptab-btn:hover {
  color: var(--ush-primary);
}

.ush-ptab-btn.active {
  color: var(--ush-primary);
  border-bottom-color: var(--ush-secondary);
}

.ush-ptab-content {
  display: none;
}

.ush-ptab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Portal Card */
.ush-portal-card {
  background: #ffffff;
  border-radius: var(--ush-radius-lg);
  padding: 32px;
  border: 1px solid var(--ush-border);
  box-shadow: var(--ush-shadow-md);
}

.ush-pcard-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ush-border);
}

.ush-pcard-icon {
  width: 50px;
  height: 50px;
  background: var(--ush-bg-alt);
  border-radius: var(--ush-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.ush-pcard-header h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.ush-pcard-header p {
  font-size: 0.85rem;
  color: var(--ush-text-muted);
}

/* Forms */
.ush-portal-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ush-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ush-form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

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

.ush-form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ush-text-main);
}

.ush-input {
  padding: 12px 16px;
  border: 1px solid var(--ush-border);
  border-radius: var(--ush-radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--ush-transition);
  background-color: #FAFAFA;
}

.ush-input:focus {
  outline: none;
  border-color: var(--ush-primary);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(13, 44, 84, 0.12);
}

.ush-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/* Transcript Output Box */
.ush-transcript-box {
  background: #FFFFFF;
  border: 2px solid var(--ush-border);
  border-radius: var(--ush-radius-lg);
  padding: 24px;
  box-shadow: var(--ush-shadow-lg);
}

.ush-trans-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ush-border);
}

.ush-trans-gpa {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.gpa-label {
  font-size: 0.78rem;
  color: var(--ush-text-muted);
}

.gpa-value {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--ush-primary);
}

.gpa-status {
  font-size: 0.8rem;
  font-weight: 700;
  color: #10B981;
}

.ush-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.ush-table th, .ush-table td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--ush-border);
}

.ush-table th {
  background-color: var(--ush-bg-alt);
  color: var(--ush-primary);
  font-weight: 700;
  font-size: 0.88rem;
}

.grade-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--ush-radius-sm);
  font-weight: 800;
  font-size: 0.8rem;
}

.grade-badge.a-plus { background: #D1FAE5; color: #065F46; }
.grade-badge.a { background: #E0E7FF; color: #3730A3; }
.grade-badge.b-plus { background: #FEF3C7; color: #92400E; }

.ush-trans-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ush-text-muted);
}

/* Success Alert & Ticket Codes */
.ush-success-alert {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--ush-radius-md);
  padding: 24px;
  text-align: center;
}

.ush-ticket-code-display {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--ush-primary);
  background: #fff;
  display: inline-block;
  padding: 10px 24px;
  border: 2px dashed var(--ush-secondary);
  border-radius: var(--ush-radius-md);
  margin: 15px 0;
}

/* Track Result Box */
.ush-ticket-details-card {
  background: #F8FAFC;
  border-radius: var(--ush-radius-md);
  padding: 20px;
  border: 1px solid var(--ush-border);
}

.ush-td-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ush-border);
}

.ush-td-code {
  font-weight: 800;
  color: var(--ush-primary);
  margin-right: 10px;
}

.ush-td-status {
  background: #FEF3C7;
  color: #92400E;
  padding: 3px 10px;
  border-radius: var(--ush-radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.ush-td-reply-box {
  background: #fff;
  border-right: 4px solid var(--ush-secondary);
  padding: 14px;
  border-radius: var(--ush-radius-sm);
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--ush-text-main);
}

/* Guides Grid */
.ush-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.ush-guide-item {
  background: var(--ush-bg-alt);
  border-radius: var(--ush-radius-md);
  padding: 24px;
  border: 1px solid var(--ush-border);
  display: flex;
  flex-direction: column;
}

.ush-guide-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.ush-guide-item h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.ush-guide-item p {
  font-size: 0.85rem;
  color: var(--ush-text-muted);
  margin-bottom: 18px;
  flex: 1;
}

@media (max-width: 768px) {
  .ush-form-grid-2, .ush-form-grid-3 {
    grid-template-columns: 1fr;
  }
}
