.tlms-psa-parent-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tlms-psa-dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.tlms-psa-dashboard-header h1 {
    font-size: 2.5em;
    color: #2c3e50;
    margin-bottom: 10px;
}

.tlms-psa-dashboard-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e1e8ed;
    flex-wrap: wrap;
}

.tlms-psa-tab-button {
    background: #1a237e;
    border: 2px solid #1a237e;
    color: #ffffff;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.3px;
    margin-bottom: -2px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(26, 35, 126, 0.3);
}

.tlms-psa-tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.tlms-psa-tab-button:hover::before {
    left: 100%;
}

.tlms-psa-tab-button:hover {
    background: #ffffff;
    border-color: #1a237e;
    color: #1a237e;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 35, 126, 0.4);
}

.tlms-psa-tab-button.active {
    background: #1a237e;
    color: #ffffff;
    border-color: #1a237e;
    box-shadow: 0 8px 16px rgba(26, 35, 126, 0.5);
}

.tlms-psa-tab-content {
    display: none;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.4s ease;
}

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

.tlms-psa-tab-content.active {
    display: block;
}

.tlms-psa-form {
    max-width: 600px;
    margin: 0 auto;
}

.tlms-psa-form-group {
    margin-bottom: 20px;
}

.tlms-psa-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.tlms-psa-form-group input[type="text"],
.tlms-psa-form-group input[type="email"],
.tlms-psa-form-group input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.tlms-psa-form-group input:focus {
    outline: none;
    border-color: #1a237e;
    box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.tlms-psa-btn {
    background: #1a237e;
    color: #ffffff;
    padding: 12px 30px;
    border: 2px solid #1a237e;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(26, 35, 126, 0.3);
}

.tlms-psa-btn:hover {
    background: #ffffff;
    color: #1a237e;
    border-color: #1a237e;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(26, 35, 126, 0.4);
}

.tlms-psa-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.tlms-psa-children-list {
    margin-top: 30px;
}

.tlms-psa-child-card {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.tlms-psa-child-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.tlms-psa-child-info h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 18px;
}

.tlms-psa-child-info p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

.tlms-psa-child-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tlms-psa-btn-view-progress {
    background: #27ae60;
    color: #ffffff;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tlms-psa-btn-view-progress:hover {
    background: #229954;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.tlms-psa-btn-unlink {
    background: #e74c3c;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tlms-psa-btn-unlink:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.tlms-psa-progress-section {
    margin-top: 30px;
}

.tlms-psa-course-card {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tlms-psa-course-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.tlms-psa-course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e8ed;
}

.tlms-psa-course-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.tlms-psa-progress-bar-container {
    width: 100%;
    height: 45px;
    background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
    border-radius: 25px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.4),
                0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.tlms-psa-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #00c853 0%, #00e676 50%, #1de9b6 100%);
    border-radius: 25px 0 0 25px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.6),
                inset 0 2px 4px rgba(255, 255, 255, 0.3),
                inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    animation: progressPulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
}

.tlms-psa-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent
    );
    animation: progressShine 2s ease-in-out infinite;
}

.tlms-psa-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 255, 255, 0.05) 10px,
        rgba(255, 255, 255, 0.05) 20px
    );
    animation: progressStripes 1s linear infinite;
}

@keyframes progressPulse {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

@keyframes progressShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

@keyframes progressStripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

.tlms-psa-progress-text {
    position: relative;
    font-weight: 800;
    color: #ffffff;
    font-size: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5),
                 0 0 10px rgba(0, 230, 118, 0.8);
    z-index: 10;
    letter-spacing: 0.5px;
    animation: textGlow 2s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5),
                     0 0 10px rgba(0, 230, 118, 0.8);
    }
    50% {
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6),
                     0 0 20px rgba(0, 230, 118, 1),
                     0 0 30px rgba(0, 230, 118, 0.6);
    }
}

.tlms-psa-quiz-section,
.tlms-psa-assignment-section {
    margin-top: 25px;
    animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tlms-psa-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e8ed;
    position: relative;
}

.tlms-psa-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #1a237e, #3f51b5);
    animation: expandLine 0.8s ease;
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

.tlms-psa-quiz-item,
.tlms-psa-assignment-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 18px;
    margin-bottom: 12px;
    border-radius: 10px;
    border-left: 4px solid #1a237e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tlms-psa-quiz-item::before,
.tlms-psa-assignment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(26, 35, 126, 0.05), transparent);
    transition: left 0.5s;
}

.tlms-psa-quiz-item:hover::before,
.tlms-psa-assignment-item:hover::before {
    left: 100%;
}

.tlms-psa-quiz-item:hover,
.tlms-psa-assignment-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(26, 35, 126, 0.15);
    border-left-width: 6px;
}

.tlms-psa-quiz-title,
.tlms-psa-assignment-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 15px;
}

.tlms-psa-quiz-score {
    font-size: 14px;
    color: #27ae60;
    font-weight: 700;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 20px;
    animation: scorePopIn 0.5s ease;
}

@keyframes scorePopIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    60% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.tlms-psa-quiz-score.failed {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.tlms-psa-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: messageSlideIn 0.4s ease;
}

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

.tlms-psa-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.tlms-psa-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.tlms-psa-loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #7f8c8d;
}

.tlms-psa-loading::after {
    content: '...';
    animation: tlms-psa-dots 1.5s steps(4, end) infinite;
}

@keyframes tlms-psa-dots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

.tlms-psa-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.tlms-psa-empty-state svg {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.tlms-psa-empty-state p {
    font-size: 18px;
    margin: 0;
}

@media (max-width: 768px) {
    .tlms-psa-dashboard-tabs {
        flex-direction: column;
    }
    
    .tlms-psa-tab-button {
        width: 100%;
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .tlms-psa-child-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tlms-psa-child-actions {
        width: 100%;
    }
    
    .tlms-psa-course-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tlms-psa-progress-bar-container {
        height: 40px;
    }
    
    .tlms-psa-progress-text {
        line-height: 40px;
        font-size: 14px;
    }
}
