/* Student Portal Custom Design for Taim Academy */

.taim-portal-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background: #f8fafc;
    min-height: 100vh;
}

/* Portal Hero */
.taim-portal-wrap .portal-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.taim-portal-wrap .portal-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.taim-portal-wrap .hero-circle {
    position: absolute;
    background: white;
    border-radius: 50%;
    filter: blur(80px);
}

.taim-portal-wrap .circle-1 {
    top: -50px;
    right: 15%;
    width: 200px;
    height: 200px;
}

.taim-portal-wrap .circle-2 {
    bottom: -50px;
    left: 15%;
    width: 250px;
    height: 250px;
}

.taim-portal-wrap .portal-hero-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.taim-portal-wrap .portal-hero-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.taim-portal-wrap .portal-hero-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

/* Portal Main */
.taim-portal-wrap .portal-main {
    max-width: 1400px;
    margin: -2rem auto 0;
    padding: 0 2rem 3rem;
    position: relative;
    z-index: 2;
}

/* Portal Nav Tabs */
.taim-portal-wrap .portal-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.taim-portal-wrap .portal-nav-tab {
    flex: 1;
    min-width: 150px;
    padding: 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.taim-portal-wrap .portal-nav-tab:hover {
    color: #1e293b;
    background: #f8fafc;
}

.taim-portal-wrap .portal-nav-tab.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white !important;
}

.taim-portal-wrap .portal-content {
    display: none;
}

.taim-portal-wrap .portal-content.active {
    display: block;
}

/* Course Cards */
.taim-portal-wrap .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

.taim-portal-wrap .course-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.taim-portal-wrap .course-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.taim-portal-wrap .course-card-header {
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.taim-portal-wrap .course-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.taim-portal-wrap .course-featured-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.taim-portal-wrap .course-info {
    flex: 1;
}

.taim-portal-wrap .course-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.taim-portal-wrap .course-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.taim-portal-wrap .course-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.taim-portal-wrap .badge-inperson {
    background: #e9d5ff;
    color: #6b21a8;
}

.taim-portal-wrap .badge-online {
    background: #d1fae5;
    color: #065f46;
}

.taim-portal-wrap .badge-self-paced {
    background: #fef3c7;
    color: #92400e;
}

.taim-portal-wrap .course-date {
    color: #64748b;
    font-size: 13px;
}

.taim-portal-wrap .course-progress {
    padding: 1.5rem;
    flex-grow: 1;
}

.taim-portal-wrap .progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.taim-portal-wrap .progress-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.taim-portal-wrap .progress-percent {
    font-size: 13px;
    font-weight: 700;
    color: #3b82f6;
}

.taim-portal-wrap .progress-bar-container {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.taim-portal-wrap .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    transition: width 0.3s;
}

.taim-portal-wrap .course-actions {
    display: flex;
    gap: 0.75rem;
}

.taim-portal-wrap .btn-course-action {
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none !important;
}

.taim-portal-wrap .btn-primary-course {
    background: #3b82f6;
    color: white !important;
}

.taim-portal-wrap .btn-primary-course:hover {
    background: #2563eb;
}

.taim-portal-wrap .btn-secondary-course {
    background: #f1f5f9;
    color: #475569 !important;
}

.taim-portal-wrap .btn-secondary-course:hover {
    background: #e2e8f0;
}

/* Empty States */
.taim-portal-wrap .empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 16px;
    border: 2px dashed #e2e8f0;
    grid-column: 1 / -1;
}

.taim-portal-wrap .empty-state-icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 1.5rem;
}

.taim-portal-wrap .btn-empty-action {
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white !important;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
    display: inline-block;
}

/* Announcements */
.taim-portal-wrap .announcements-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.taim-portal-wrap .announcement-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
}

.taim-portal-wrap .announcement-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.taim-portal-wrap .announcement-content {
    flex: 1;
}

.taim-portal-wrap .announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.taim-portal-wrap .announcement-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.taim-portal-wrap .announcement-date {
    font-size: 12px;
    color: #64748b;
}

.taim-portal-wrap .announcement-course {
    font-size: 13px;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.taim-portal-wrap .announcement-text {
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}

/* Certificates */
.taim-portal-wrap .certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.taim-portal-wrap .certificate-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.taim-portal-wrap .certificate-card:hover {
    border-color: #fb923c;
    box-shadow: 0 8px 24px rgba(251, 146, 60, 0.15);
}

.taim-portal-wrap .certificate-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fed7aa 0%, #fdba74 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 1.5rem;
}

.taim-portal-wrap .certificate-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.taim-portal-wrap .certificate-date {
    color: #64748b;
    font-size: 13px;
    margin-bottom: 1.5rem;
}

.taim-portal-wrap .certificate-actions {
    display: flex;
    gap: 0.75rem;
}

.taim-portal-wrap .btn-download {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    color: white !important;
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none !important;
}

.taim-portal-wrap .btn-share {
    background: #f1f5f9;
    color: #475569 !important;
    flex: 1;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .taim-portal-wrap .portal-nav {
        flex-direction: column;
    }

    .taim-portal-wrap .portal-nav-tab {
        width: 100%;
    }

    .taim-portal-wrap .courses-grid {
        grid-template-columns: 1fr;
    }

    .taim-portal-wrap .portal-hero {
        padding: 2rem 1.5rem;
    }

    .taim-portal-wrap .portal-main {
        padding: 0 1rem 2rem;
    }
}