/* Profile Page */
.profile-wrapper {
    background: #f8f9fa;
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* Profile Header Card */
.profile-header-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
}

.profile-header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    padding: 40px;
    align-items: center;
}

.profile-avatar-large {
    flex-shrink: 0;
}

.avatar-circle-large {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #cb0001 0%, #ff4444 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(203, 0, 1, 0.3);
}

.avatar-circle-large i {
    font-size: 60px;
    color: white;
}

.profile-header-info {
    flex: 1;
}

.profile-header-info h2 {
    color: #1f2937;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.profile-header-info p {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-header-info p i {
    color: #cb0001;
    width: 16px;
}

.profile-header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    background: white;
    color: #374151;
}

.btn-header i {
    font-size: 0.85rem;
}

.btn-header:hover {
    background: #f8f9fa;
    color: #cb0001;
    border-color: #cb0001;
}

.btn-header.active {
    background: linear-gradient(135deg, #cb0001 0%, #ff4444 100%);
    color: white;
    border-color: #cb0001;
}

/* Profile Stats Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card-large {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(203, 0, 1, 0.15);
    border-color: #cb0001;
}

.stat-icon-large {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #cb0001 0%, #ff4444 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(203, 0, 1, 0.3);
}

.stat-icon-large i {
    font-size: 32px;
    color: white;
}

.stat-content h3 {
    color: #1f2937;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 5px 0;
    line-height: 1;
}

.stat-content p {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

/* Profile Content */
.profile-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.content-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.content-header h2 {
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.content-header h2 i {
    color: #cb0001;
    margin-right: 12px;
}

.content-header p {
    color: #6b7280;
    margin: 0;
    font-size: 1rem;
}

/* Profile Card */
.profile-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #e5e7eb;
}

.card-title {
    color: #1f2937;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.profile-card .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.profile-card .form-label i {
    color: #cb0001;
    margin-right: 8px;
}

.profile-card .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.profile-card .form-control:focus {
    border-color: #cb0001;
    box-shadow: 0 0 0 4px rgba(203, 0, 1, 0.1);
    outline: none;
}

.profile-card .form-control:disabled {
    background: #e9ecef;
    cursor: not-allowed;
}

.profile-card .text-muted {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, #cb0001 0%, #ff4444 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(203, 0, 1, 0.3);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(203, 0, 1, 0.4);
    background: linear-gradient(135deg, #a00001 0%, #cb0001 100%);
}

.btn-primary i {
    margin-right: 8px;
}

/* Profile Sidebar Card */
.profile-sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.sidebar-title {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title i {
    color: #cb0001;
    font-size: 1rem;
}

/* Info List */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-label {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label i {
    color: #cb0001;
    font-size: 0.85rem;
    width: 16px;
}

.info-value {
    color: #1f2937;
    font-weight: 600;
    font-size: 0.9rem;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success {
    background: #10b981;
    color: white;
}

.badge-danger {
    background: #ef4444;
    color: white;
}

/* Responsive */
@media (max-width: 1199px) {
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .profile-wrapper {
        padding: 30px 0;
    }
    
    .profile-header-content {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 30px;
        text-align: center;
    }
    
    .profile-avatar-large {
        margin: 0 auto;
    }
    
    .avatar-circle-large {
        width: 100px;
        height: 100px;
    }
    
    .avatar-circle-large i {
        font-size: 50px;
    }
    
    .profile-header-info h2 {
        font-size: 1.6rem;
    }
    
    .profile-header-info p {
        justify-content: center;
    }
    
    .profile-header-actions {
        justify-content: center;
    }
    
    .btn-header {
        font-size: 0.85rem;
        padding: 9px 16px;
    }
    
    .profile-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .stat-card-large {
        padding: 25px 20px;
    }
    
    .stat-icon-large {
        width: 60px;
        height: 60px;
    }
    
    .stat-icon-large i {
        font-size: 28px;
    }
    
    .stat-content h3 {
        font-size: 2rem;
    }
    
    .profile-content {
        padding: 30px 25px;
    }
    
    .profile-card {
        padding: 25px 20px;
    }
}

@media (max-width: 768px) {
    .profile-wrapper {
        padding: 25px 0;
    }
    
    .profile-header-content {
        padding: 25px 20px;
    }
    
    .avatar-circle-large {
        width: 90px;
        height: 90px;
    }
    
    .avatar-circle-large i {
        font-size: 44px;
    }
    
    .profile-header-info h2 {
        font-size: 1.4rem;
    }
    
    .profile-header-info p {
        font-size: 0.9rem;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card-large {
        padding: 20px;
        gap: 15px;
    }
    
    .stat-icon-large {
        width: 55px;
        height: 55px;
    }
    
    .stat-icon-large i {
        font-size: 26px;
    }
    
    .stat-content h3 {
        font-size: 1.8rem;
    }
    
    .stat-content p {
        font-size: 0.85rem;
    }
    
    .profile-content {
        padding: 25px 20px;
    }
    
    .profile-sidebar-card {
        padding: 25px 20px;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .profile-header-content {
        padding: 20px 15px;
    }
    
    .avatar-circle-large {
        width: 80px;
        height: 80px;
    }
    
    .avatar-circle-large i {
        font-size: 38px;
    }
    
    .profile-header-info h2 {
        font-size: 1.3rem;
    }
    
    .profile-header-info p {
        font-size: 0.85rem;
    }
    
    .btn-header {
        font-size: 0.8rem;
        padding: 8px 14px;
    }
    
    .profile-stats-grid {
        gap: 10px;
    }
    
    .stat-card-large {
        padding: 18px 15px;
        gap: 12px;
    }
    
    .stat-icon-large {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon-large i {
        font-size: 24px;
    }
    
    .stat-content h3 {
        font-size: 1.6rem;
    }
    
    .stat-content p {
        font-size: 0.8rem;
    }
    
    .profile-card {
        padding: 20px 15px;
    }
    
    .card-title,
    .sidebar-title {
        font-size: 1rem;
    }
    
    .profile-sidebar-card {
        padding: 20px 15px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Page Header */
.page-header {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    padding: 40px;
}

.page-header-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.page-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #cb0001 0%, #ff4444 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(203, 0, 1, 0.3);
}

.page-icon i {
    font-size: 36px;
    color: white;
}

.page-header-content h1 {
    color: #1f2937;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.page-header-content p {
    color: #6b7280;
    margin: 0;
    font-size: 1rem;
}

/* Empty State */
.empty-state {
    background: white;
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.empty-icon i {
    font-size: 60px;
    color: #cb0001;
}

.empty-state h3 {
    color: #1f2937;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.empty-state p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Course Card */
.course-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #cb0001;
}

.course-card .course-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.course-card .course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-card .course-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #cb0001 0%, #ff4444 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-card .course-image-placeholder i {
    font-size: 60px;
    color: white;
    opacity: 0.9;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-info {
    background: #3b82f6;
    color: white;
}

.badge-success {
    background: #10b981;
    color: white;
}

.badge-warning {
    background: #f59e0b;
    color: white;
}

.course-body {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-body h4 {
    color: #1f2937;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.course-body .course-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1;
}

.course-progress {
    margin-bottom: 20px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.progress-info span:first-child {
    color: #6b7280;
    font-weight: 600;
}

.progress-percent {
    color: #cb0001;
    font-weight: 700;
}

.progress-bar-wrapper {
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #cb0001, #ff4444);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.course-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.9rem;
}

.meta-item i {
    color: #cb0001;
}

.course-actions {
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.course-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.course-actions .btn-primary {
    background: linear-gradient(135deg, #cb0001 0%, #ff4444 100%);
    color: white;
}

.course-actions .btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(203, 0, 1, 0.4);
}

.course-actions .btn-block {
    width: 100%;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: white;
    color: #cb0001;
    border: 2px solid #cb0001;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #cb0001;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(203, 0, 1, 0.3);
}

/* Certificate Card */
.certificate-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 25px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #cb0001;
}

.certificate-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #cb0001 0%, #ff4444 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(203, 0, 1, 0.3);
}

.certificate-icon i {
    font-size: 48px;
    color: white;
}

.certificate-body {
    flex: 1;
}

.certificate-body h4 {
    color: #1f2937;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.certificate-info {
    margin-bottom: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.95rem;
}

.info-value {
    color: #1f2937;
    font-weight: 600;
    font-size: 0.95rem;
}

.certificate-actions {
    display: flex;
    gap: 12px;
}

/* Payments Table */
.payments-table-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 30px;
}

.payments-table {
    width: 100%;
    border-collapse: collapse;
}

.payments-table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.payments-table th {
    padding: 20px;
    text-align: left;
    font-weight: 700;
    color: #1f2937;
    font-size: 0.95rem;
    border-bottom: 2px solid #e5e7eb;
}

.payments-table td {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #374151;
    font-size: 0.95rem;
}

.payments-table tbody tr:hover {
    background: #f8f9fa;
}

.order-number {
    font-weight: 700;
    color: #cb0001;
}

.amount {
    font-weight: 700;
    color: #1f2937;
    font-size: 1.1rem;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.btn-table {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6b7280;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-table:hover {
    background: #cb0001;
    color: white;
    transform: scale(1.1);
}

/* Summary Card */
.summary-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.summary-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #cb0001 0%, #ff4444 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summary-icon i {
    font-size: 32px;
    color: white;
}

.summary-content h4 {
    color: #1f2937;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 5px 0;
}

.summary-content p {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

/* Mobile Responsive for New Components */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 25px;
    }
    
    .page-header-content {
        gap: 20px;
    }
    
    .page-icon {
        width: 70px;
        height: 70px;
    }
    
    .page-icon i {
        font-size: 32px;
    }
    
    .page-header-content h1 {
        font-size: 1.5rem;
    }
    
    .empty-state {
        padding: 60px 30px;
    }
    
    .empty-icon {
        width: 100px;
        height: 100px;
    }
    
    .empty-icon i {
        font-size: 48px;
    }
    
    .certificate-card {
        flex-direction: column;
        text-align: center;
    }
    
    .certificate-icon {
        margin: 0 auto;
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
        text-align: left;
    }
    
    .certificate-actions {
        flex-direction: column;
    }
    
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .payments-table-wrapper {
        overflow-x: auto;
    }
    
    .payments-table {
        min-width: 800px;
    }
}

/* Exam Section */
.exam-section-divider {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.exam-section-divider span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #10b981;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 20px;
}

.exam-section-divider i {
    font-size: 0.85rem;
}

.exam-buttons {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-exam {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 2px solid #10b981;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-exam:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-exam i {
    font-size: 0.85rem;
}
