
/* Navbar like Signature page */
.navbar { background: linear-gradient(90deg,#4e73df,#1cc88a); box-shadow:0 4px 20px rgba(0,0,0,0.2); }
.navbar-brand { color:#fff; font-weight:700; font-size:1.5rem; }
.navbar-nav .nav-link { color:#fff; font-weight:500; margin-right:1rem; transition:0.3s; }
.navbar-nav .nav-link:hover { color:#ffd700; }


body { 
    font-family: 'Poppins', sans-serif; 
    background: #c8ecf5;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Page section heading - Student Profile */
.section-title1 { 
  font-size:2rem; 
  font-weight:700; 
  margin-bottom:1rem; 
  position:relative; 
  text-align: center; /* center the heading text */
}

.section-title1::after { 
  content:''; 
  position:absolute; 
  width:60px; 
  height:4px; 
  background:#4e73df; 
  left:50%; /* start at 50% */
  bottom:-8px; 
  transform: translateX(-50%); /* shift left by 50% of its width to center */
  border-radius:2px; 
}

/* Card */
.card { 
    border-radius: 25px; 
    padding: 40px 30px; 
    background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
}


/* Profile photo */
.profile-photo-container {
    display: inline-block;
    padding: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg,#4e73df,#1cc88a,#f6ad55);
    margin-bottom: 30px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(78, 115, 223, 0.4);
}
.profile-photo-container:hover { 
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 15px 40px rgba(78, 115, 223, 0.6);
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Student Info Grid - 3 COLUMNS */
#studentInfo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

/* Data row with consistent alignment */
.detail-row {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-height: 120px;
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
}

.detail-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4e73df, #1cc88a);
}



.detail-row strong {
    font-weight: 700;
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-row span {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2d3748;
    line-height: 1.4;
    word-break: break-word;
}

/* Form elements in edit mode */
.detail-row input.form-control,
.detail-row select.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    margin-top: 5px;
}

.detail-row input.form-control:focus,
.detail-row select.form-select:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
    outline: none;
}

/* Dropdown specific styling */
.detail-row select.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    appearance: none;
    cursor: pointer;
}

.detail-row select.form-select:required {
    border-left: 4px solid #fed7d7;
    background-color: #fff5f5;
}

/* Radio button groups */
.detail-row .d-flex {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 5px;
}

.detail-row .d-flex div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.detail-row .d-flex div:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}

.detail-row .d-flex input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #4e73df;
}

/* Required field indicator */
.required-asterisk {
    color: #e53e3e;
    font-weight: bold;
    margin-left: 2px;
}

/* Buttons */
.action-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.action-buttons .btn { 
    padding: 15px 35px; 
    border-radius: 15px; 
    font-weight: 700; 
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.action-buttons .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;
}

.action-buttons .btn:hover::before {
    left: 100%;
}

.action-buttons .btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* Button gradients */
#editBtn { 
    background: linear-gradient(135deg,#4e73df,#1cc88a);
}

#saveBtn { 
    background: linear-gradient(135deg,#1cc88a,#4e73df);
}

#cancelBtn { 
    background: linear-gradient(135deg,#e53e3e,#c53030);
}

/* Button loading state */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2) !important;
}

/* Responsive */
@media (max-width: 1200px) {
    #studentInfo {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    #studentInfo {
        grid-template-columns: 1fr;
    }
    
    .section-title1 {
        font-size: 2.2rem;
    }
    
    .card {
        padding: 30px 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .profile-photo {
        width: 140px;
        height: 140px;
    }
    
    .detail-row {
        min-height: 100px;
        padding: 15px;
    }
}

/* Date input styling */
.detail-row input[type="date"] {
    cursor: pointer;
}

.detail-row input[type="date"]::-webkit-calendar-picker-indicator {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%234e73df" viewBox="0 0 16 16"><path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/></svg>');
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
}

/* Text input focus effects */
.detail-row input[type="text"]:focus,
.detail-row input[type="email"]:focus,
.detail-row input[type="tel"]:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.1);
    outline: none;
}

/* Success state for filled fields */
.detail-row select.filled,
.detail-row input.filled {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4, #ffffff);
}

/* Field grouping for better visual hierarchy */
.detail-row.personal-info {
    background: linear-gradient(135deg, #f0f9ff, #ffffff);
}

.detail-row.academic-info {
    background: linear-gradient(135deg, #f0fff4, #ffffff);
}

.detail-row.location-info {
    background: linear-gradient(135deg, #fff5f5, #ffffff);
}

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

.detail-row {
    animation: fadeIn 0.5s ease-out;
}

#stuPhoto {
  width: 150px;        /* increased size */
  height: 150px;       /* increased size */
  border-radius: 50%;
  object-fit: cover;
  
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

