/* Modern UI Overrides for MyCredential */
:root {
    --primary-color: #4e73df;
    --primary-hover: #2e59d9;
    --secondary-color: #858796;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    
    --card-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    --hover-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.15);
    --border-radius-lg: 12px;
    --border-radius-md: 8px;
    --border-radius-sm: 4px;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: #f4f7fe;
    color: #444;
}

/* Header: match second reference – top strip, blue active link, dark blue-purple My Profile */
.header-top-strip {
    height: 4px;
    background: #2d3e50;
    width: 100%;
}

.header-four {
    background: #fff !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.header-four .main-nav > li > a {
    font-weight: 500;
    color: #6c757d !important;
}

/* Active / hover: vibrant blue (second page) */
header.header-four .header-nav .main-menu-wrapper .main-nav > li.active > a,
header.header-four .header-nav .main-menu-wrapper .main-nav > li > a:hover,
.header-four .main-nav > li.active > a,
.header-four .main-nav > li > a:hover {
    color: #2196F3 !important;
}

/* My Profile in header: dark blue-purple (second page) */
header.header-four .header-btn .btn-primary,
.header-four .header-btn .btn-primary {
    background-color: #3F3277 !important;
    border-color: #3F3277 !important;
}

header.header-four .header-btn .btn-primary:hover,
.header-four .header-btn .btn-primary:hover {
    background-color: #352a62 !important;
    border-color: #352a62 !important;
}

/* Change Language: white, grey border */
.header-four .header-btn .btn-outline-primary {
    color: #5a5c69;
    border-color: #d1d3e2;
    background: #fff;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--border-radius-md);
    padding: 10px 24px;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(78, 115, 223, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(78, 115, 223, 0.3);
}

.btn-secondary {
    border-radius: var(--border-radius-md);
    padding: 10px 24px;
    font-weight: 600;
}

/* Card Modernization */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--hover-shadow);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #f2f4f6;
    font-weight: 700;
    color: #333;
    padding: 1.25rem;
}

/* Banner Section */
.banner-section-four {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8faff 0%, #eef2ff 100%);
}

.banner-content h1 {
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 24px;
}

.banner-content p {
    color: #718096;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Modal Modernization */
.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modal-body {
    padding: 2.5rem;
}

.nav-pills .nav-link {
    border-radius: var(--border-radius-md);
    padding: 12px;
    font-weight: 600;
}

/* Form Controls */
.form-control {
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 115, 223, 0.15);
}

/* Footer Styling */
.footer-top {
    background: #fff;
    padding: 50px 0;
}

.footer-about p {
    color: #4e5d78;
    line-height: 1.6;
}

.footer-title {
    font-weight: 700;
    color: #2d3748;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-contact-info p {
    color: #4e5d78;
    line-height: 1.6;
}

.footer-contact-info i {
    color: #4e73df;
    font-size: 1.1rem;
}

.footer-bottom {
    background: #342777 !important;
    padding: 1.5rem 0;
}

.footer-bottom .footer-link li {
    list-style: none;
}

.footer-bottom .footer-link li a {
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-bottom .footer-link li a:hover {
    color: #e0e0e0;
}

.footer-bottom .footer-link li:not(:last-child)::after {
    content: none;
}

/* Categories Section */
.categories-item-three {
    background: #fff;
    padding: 30px 20px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid #f0f2f5;
}

.categories-item-three:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-color: var(--primary-color);
}

.categories-item-three img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.categories-item-three .title a {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

/* Course Items */
.course-item-five {
    background: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.course-item-five:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.course-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.course-content {
    padding: 20px;
}

.course-three-text p {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.course-three-text .title a {
    color: #1a202c;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    line-height: 1.4;
}

.student-counts-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f2f5;
}

.student-counts-info p {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
}

/* Section Headers */
.section-header h2 {
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 15px;
}

.section-header p {
    color: #718096;
    max-width: 600px;
    margin: 0 auto;
}

/* Counter Section */
.counter-section {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
    border-radius: 20px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.counter-item h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.counter-item p {
    font-weight: 500;
    opacity: 0.9;
}

/* Dashboard Profile Card */
.profile-card {
    border-radius: 20px !important;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%) !important;
}

.bg-info-gradient, .bg-blue-gradient2 {
    background: linear-gradient(135deg, #4e73df 0%, #224abe 100%) !important;
}

.avatar-xxl {
    width: 100px;
    height: 100px;
}

.avatar-rounded img {
    border-radius: 50%;
}

.verify-tick {
    background-color: #1cc88a;
    color: #fff;
    border-radius: 50%;
    padding: 2px;
    font-size: 12px;
    position: absolute;
    bottom: 5px;
    right: 5px;
    border: 2px solid #fff;
}

.btn-white {
    background-color: #fff;
    color: #4e73df;
    font-weight: 600;
    border: none;
}

.btn-white:hover {
    background-color: #f8f9fc;
    color: #2e59d9;
}

/* Dashboard Menu Cards */
.menu-card {
    background: #fff;
    border: 1px solid #f0f2f5;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border-radius: 16px !important;
}

.menu-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border-color: var(--primary-color) !important;
}

.menu-card h6 {
    color: #2d3748;
    font-weight: 600;
    margin-top: 15px;
}

/* Table Styles */
.table {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table thead th {
    background-color: #f8f9fc;
    border: none;
    color: #4e5d78;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 15px;
}

.table tbody tr {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s;
}

.table tbody tr:hover {
    background-color: #f8faff;
    transform: scale(1.005);
}

.table td {
    padding: 15px;
    vertical-align: middle;
    border-top: 1px solid #f0f2f5;
    border-bottom: 1px solid #f0f2f5;
}

.table td:first-child {
    border-left: 1px solid #f0f2f5;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.table td:last-child {
    border-right: 1px solid #f0f2f5;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* Additional UI Refinements */
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: var(--border-radius-md);
    padding: 10px 24px;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-info { color: var(--info-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-danger { color: var(--danger-color) !important; }

/* Backgrounds */
.bg-light { background-color: #f8f9fc !important; }
.bg-white { background-color: #fff !important; }

/* Spacing */
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }

/* Custom Modal Tweaks */
.custom-modal .modal-header .btn-close {
    background-color: #f8f9fc;
    border-radius: 50%;
    padding: 10px;
    margin: -5px -5px 0 0;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color) !important;
    box-shadow: 0 4px 10px rgba(78, 115, 223, 0.2);
}

.form-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #4e5d78;
}

.input-group-text {
    border: 1px solid #e2e8f0;
}

/* Avatar & Icons */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.avatar-lg {
    width: 60px;
    height: 60px;
}

.avatar-xxl {
    width: 100px;
    height: 100px;
}

.avatar-rounded {
    border-radius: 50% !important;
}

/* Background Transparencies */
.bg-primary-transparent { background-color: rgba(78, 115, 223, 0.1) !important; }
.bg-secondary-transparent { background-color: rgba(133, 135, 150, 0.1) !important; }
.bg-success-transparent { background-color: rgba(28, 200, 138, 0.1) !important; }
.bg-info-transparent { background-color: rgba(54, 185, 204, 0.1) !important; }
.bg-warning-transparent { background-color: rgba(246, 194, 62, 0.1) !important; }
.bg-danger-transparent { background-color: rgba(231, 74, 59, 0.1) !important; }
.bg-purple-transparent { background-color: rgba(111, 66, 193, 0.1) !important; }

/* Exit Institution Button - Refined Design */
.btn-exit-inst {
    background: #fff;
    color: #4e73df;
    border: 1px solid #fff;
    font-size: 10px !important;
    font-weight: 700;
    padding: 3px 12px !important;
    border-radius: 6px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-exit-inst:hover {
    background: #e74a3b;
    color: #fff;
    border-color: #e74a3b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 74, 59, 0.3);
}

.btn-exit-inst i {
    font-size: 9px;
    margin-right: 4px;
}
