/* Profile Settings Styles */
@import './common.css';

:root {
    --text-light: #6c757d;
}
body{
    padding:0;
    margin: 0;
    background: #f5f7fa !important;
}

/* Profile Settings Container */
.profile-settings-container {
    max-width: 800px;
    margin: 5em auto;
    min-height: auto;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 7px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 10px 25px rgba(67, 97, 238, 0.1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    animation: slideIn 0.5s ease-out;
}



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

@keyframes slideIn {
    0% { transform: translateY(60px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Profile Header */
.profile-settings-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Profile Section */
.profile-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.profile-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.profile-section h2 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-section h2 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Form Elements */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition-fast);
    background-color: rgba(255, 255, 255, 0.8);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.form-group input:disabled {
    background-color: rgba(245, 247, 250, 0.8);
    cursor: not-allowed;
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 3rem;
    color: var(--primary-color);
}

.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 20px;
}

/* Update Section */
.update-section {
    display: none;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: rgba(248, 249, 252, 0.8);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    animation: fadeIn 0.3s ease;
}

.update-section.show {
    display: block;
}

/* Button Styles */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.profile-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.2);
}

.profile-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

.profile-btn:active {
    transform: translateY(-1px);
}

.profile-btn-cancel {
    background: linear-gradient(45deg, #f5f7fa, #e4e7eb);
    color: var(--text-color);
}

/* Verification Warning */
.verification-warning {
    color: #856404;
    background-color: rgba(255, 243, 205, 0.8);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #ffc107;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.3s ease;
    position: relative;
    z-index: 1;
}

.verification-warning i {
    margin-right: 0.5rem;
    color: #f7b924;
}

.verification-warning button {
    background-color: #ffc107;
    color: #212529;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.verification-warning button:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

/* OTP Verification Styles */
.otp-section {
    display: none;
    margin-top: 1.5rem;
    animation: fadeIn 0.3s ease;
}

.otp-section.show {
    display: block;
}

.otp-timer {
    font-size: 0.85rem;
    color: var(--text-light);
    display: none;
}

.otp-timer.show {
    display: block;
    animation: fadeIn 0.3s ease;
    background-color: rgba(232, 245, 233, 0.8);
    color: #388e3c;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    /* margin: 1rem 0; */
    text-align: start;
    border-left: 3px solid #4caf50;
}

/* Message Container */
.message-container {
    position: fixed;
    top: 100px; /* Positioned below navbar */
    right: 1.5rem;
    z-index: 2500; /* Below navbar z-index */
    max-width: 400px;
    width: 100%;
    perspective: 1000px;
}

.message {
    padding: 1rem 1.5rem;
    color: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform-origin: top right;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
}

.message.error {
    background-color: var(--danger-color);
}

.message.success {
    background-color: var(--success-color);
}

.message.show {
    transform: translateX(4%);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2900; /* Below navbar z-index */
    flex-direction: column;
    gap: 1.5rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1.125rem;
    color: var(--primary-color);
    font-weight: 500;
}

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

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

/* University selection styles */
.current-university-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.university-info {
    margin-bottom: 10px;
}

.university-info div {
    margin-bottom: 5px;
}

/* Select2 customization */
.select2-container--default .select2-selection--single {
    height: 46px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    padding: 8px 15px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .profile-settings-container {
        padding: 1.5rem;
        max-width: 100%;
        margin: 0 1rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .verification-warning {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .button-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .profile-settings-container {
        padding: 1.2rem;
        margin: 0 0.5rem;
    }
}

/* IntlTelInput plugin specific styles */
.iti {
    width: 100%;
}

.iti__flag {
    background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.13/img/flags.png");
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .iti__flag {
        background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/17.0.13/img/flags@2x.png");
    }

.profile-settings-container h1 {
	font-size: 1.5rem;
font-weight: 700;
}

.profile-section h2 {
	font-size: 18px;
	}

    .form-group label {
	color: #6f6f6f;
}

}


   

        .container {
            padding-bottom: 3rem;
        }

        .profile-settings-container {
            background: #fff;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            position: relative;
        }

        .profile-banner {
            height: 120px;
            background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
            position: relative;
        }

        .student-info-header {
    display: flex;
  align-items: center;
  padding: 0 2rem;
  margin-top: -110px;
  margin-bottom: 20px;
  position: relative;
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  padding: 11px 28px;
  color: #fff;
        }

        .student-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 32px;
            margin-right: 20px;
            border: 5px solid white;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        #studentFullName {
            color: #fff;
            font-weight: 700;
            font-size: 1.75rem;
            margin-top: 10px;
        }

        .profile-id {
            color: #ffffff;
            font-size: 0.9rem;
            margin-top: 5px;
            display: flex;
            align-items: center;
        }

        .profile-id i {
            margin-right: 5px;
            color: #e6ecff;
        }

        .auth-header {
      padding: 1.5rem 2rem;
  text-align: left;
  border-bottom: 1px solid #e3e6f0;
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
        }

        .auth-header h1 {
             font-size: 1.5rem !important;
  color: #fff !important;
  font-weight: 700;
  display: flex;
  align-items: center;
        }

        .auth-header h1 i {
         color: #fff;
  margin-right: 10px;
        }

        .auth-header p {
           color: #e2e4f2;
  margin-bottom: 0;
  text-align: left;
  font-weight: 400;
        }

        .profile-form {
            padding: 0;
        }

        .profile-section {
            background: white;
            padding: 1.5rem 2rem;
            margin-bottom: 1.5rem;
            border-bottom: 1px solid #e3e6f0;
        }

        .profile-section:last-child {
            margin-bottom: 0;
            border-bottom: none;
        }

        .profile-section h2 {
            font-size: 1.1rem;
            color: #4e73df;
            font-weight: 600;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
        }

        .profile-section h2 i {
            margin-right: 10px;
            width: 24px;
            text-align: center;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }

        .form-group {
            margin-bottom: 1.25rem;
            position: relative;
        }

        .form-group label {
            display: block;
            font-size: 0.85rem;
            color: #858796;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .form-group i {
            position: absolute;
            left: 15px;
            top: 40px;
            color: #b7b9cc;
        }

        .form-group input,
        .form-group select {
            width: 100%;
            padding: 0.75rem 1rem 0.75rem 2.5rem;
            border: 1px solid #e3e6f0;
            border-radius: 10px;
            font-size: 0.9rem;
            color: #6e707e;
            transition: all 0.2s ease;
        }

        .readonly-field {
            background-color: #f8f9fc;
            cursor: text;
            color: #5a5c69 !important;
            font-weight: 500;
        }

        .info-card {
            display: flex;
            margin-bottom: 1.5rem;
        }

        .info-card-icon {
            width: 45px;
            height: 45px;
            background: rgba(78, 115, 223, 0.1);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            color: #4e73df;
            font-size: 1.1rem;
        }

        .info-card-content {
            flex: 1;
        }

        .info-card-label {
            font-size: 0.8rem;
            color: #858796;
            margin-bottom: 5px;
        }

        .info-card-value {
            font-size: 1rem;
            color: #5a5c69;
            font-weight: 600;
        }

        .empty-value {
            color: #b7b9cc;
            font-style: italic;
            font-weight: normal;
        }

        .back-button {
            display: inline-flex;
            align-items: center;
            margin-bottom: 20px;
            color: #4e73df;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s ease;
            padding: 8px 15px;
            border-radius: 8px;
            background-color: rgba(78, 115, 223, 0.1);
        }

        .back-button i {
            margin-right: 8px;
        }

        .back-button:hover {
            background-color: rgba(78, 115, 223, 0.2);
            transform: translateX(-5px);
            color: #224abe;
        }

        .student-status {
            position: absolute;
            right: 0;
            top: 25px;
        }

   .status-badge {
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  margin-right: 29px;
}

        .status-badge i {
            margin-right: 5px;
            font-size: 0.8rem;
        }

        .status-active {
  background-color: rgba(28, 200, 138, 0.88) !important;
  color: #fff !important;
}
        .status-assigned {
            background-color: rgba(78, 115, 223, 0.1);
            color: #4e73df;
        }

        /* Loading Overlay */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.8);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(78, 115, 223, 0.2);
            border-radius: 50%;
            border-top-color: #4e73df;
            animation: spin 1s ease-in-out infinite;
            margin-bottom: 15px;
        }

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

        .loading-text {
            color: #5a5c69;
            font-weight: 500;
        }

        .extra-details {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-top: 1.5rem;
        }

        .detail-card {
            background-color: #f8f9fc;
            border-radius: 10px;
            padding: 1rem;
            text-align: center;
            transition: all 0.3s ease;
        }

        .detail-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .detail-icon {
            margin-bottom: 10px;
            font-size: 1.5rem;
            color: #4e73df;
        }

        .detail-label {
            font-size: 0.8rem;
            color: #858796;
            margin-bottom: 5px;
        }

        .detail-value {
            font-size: 1rem;
            color: #5a5c69;
            font-weight: 600;
        }

        @media (max-width: 768px) {
            .form-row {
                grid-template-columns: 1fr;
                gap: 0;
            }

            .student-avatar {
                width: 80px;
                height: 80px;
                font-size: 24px;
            }

            .extra-details {
                grid-template-columns: 1fr;
            }
            
            .profile-section {
               padding: 22px 0;
            }

            .info-card-icon{display:none;}
            
            .student-info-header {
                padding: 0 1.5rem;
                flex-direction: column;
                text-align: center;
                align-items: center;
                padding-bottom: 15px;
            }
            
            #studentFullName {
                margin-top: 10px;
                text-align: center;
            }
            
            .profile-id {
                justify-content: center;
            }
            
            .student-status {
                position: static;
                margin-top: 15px;
                text-align: center;
            }

            .auth-header {
            padding: 20px 4px;
            }

            .auth-header p {
	        font-size: 14px;
	        line-height: 18px;
            }

        }