/* Profile Page Styles */

#profileUserEmail,
.profile-empty-text {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    font-weight: 500;
}

.profile-main {
    min-height: calc(100vh - 200px);
    background: linear-gradient(180deg, #0b0b0c 0%, #1a1a1d 100%);
    padding: 2rem 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .profile-main {
        padding: 1rem 0;
    }

    /* Profile Header Mobile */
    .profile-header-section {
        padding: 2rem 0;
    }

    .profile-picture {
        width: 150px;
        height: 150px;
        border-width: 3px;
    }

    .upload-photo-btn {
        width: 40px;
        height: 40px;
        bottom: 5px;
        right: 5px;
    }

    .upload-photo-btn i {
        font-size: 0.9rem;
    }

    .profile-name {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }

    #profileUserEmail {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .profile-actions {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
        padding: 0 1rem;
    }

    .profile-actions .btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 0.9rem;
        text-align: center;
    }

    /* Tests Section Mobile */
    .tests-section {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .test-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }

    .test-card-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .test-image {
        width: 60px;
        height: 60px;
    }

    .test-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .test-description {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .test-actions .btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Final Analysis Mobile */
    .final-analysis-section {
        margin-bottom: 3rem;
    }

    .career-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }

    .career-header {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .career-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .career-fit-badge {
        align-self: center;
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .career-description-container {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .info-grid {
        margin-top: 2rem;
    }

    .info-grid .col-md-6 {
        margin-bottom: 2rem;
    }

    .text-yellow {
        font-size: 1.1rem;
    }

    .roadmap-steps {
        font-size: 0.85rem;
    }

    /* Activity Log Mobile */
    .activity-log-section {
        margin-bottom: 3rem;
    }

    .activity-log-container {
        padding: 0 1rem;
    }

    .activity-log-list {
        gap: 1rem;
    }

    .activity-log-item {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .profile-main {
        padding: 0.75rem 0;
    }

    .profile-header-section {
        padding: 1.5rem 0;
    }

    .profile-picture {
        width: 120px;
        height: 120px;
    }

    .upload-photo-btn {
        width: 35px;
        height: 35px;
        bottom: 3px;
        right: 3px;
    }

    .profile-name {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    #profileUserEmail {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .profile-actions {
        padding: 0 0.75rem;
        gap: 0.5rem;
    }

    .profile-actions .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 0 0.75rem;
    }

    .test-card {
        padding: 1.25rem 1rem;
    }

    .test-image {
        width: 50px;
        height: 50px;
    }

    .test-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .test-description {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .test-actions .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .career-card {
        padding: 1.25rem 1rem;
        margin: 0 0.75rem;
    }

    .career-title {
        font-size: 1.2rem;
    }

    .career-description-container {
        font-size: 0.85rem;
    }

    .text-yellow {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .roadmap-steps {
        font-size: 0.8rem;
    }

    .activity-log-container {
        padding: 0 0.75rem;
    }

    .activity-log-item {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 320px) {
    .profile-picture {
        width: 100px;
        height: 100px;
    }

    .upload-photo-btn {
        width: 30px;
        height: 30px;
        bottom: 2px;
        right: 2px;
    }

    .upload-photo-btn i {
        font-size: 0.7rem;
    }

    .profile-name {
        font-size: 1.3rem;
    }

    .profile-actions {
        padding: 0 0.5rem;
    }

    .profile-actions .btn {
        padding: 9px 18px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.3rem;
        padding: 0 0.5rem;
    }

    .test-card {
        padding: 1rem 0.75rem;
    }

    .test-title {
        font-size: 1rem;
    }

    .test-description {
        font-size: 0.8rem;
    }

    .test-actions .btn {
        padding: 9px 18px;
        font-size: 0.8rem;
    }

    .career-card {
        padding: 1rem 0.75rem;
        margin: 0 0.5rem;
    }

    .career-title {
        font-size: 1.1rem;
    }

    .career-description-container {
        font-size: 0.8rem;
    }

    .activity-log-container {
        padding: 0 0.5rem;
    }

    .activity-log-item {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
}

/* Profile Header */
.profile-header-section {
    padding: 3rem 0;
}

.profile-picture-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.profile-picture-container {
    position: relative;
    display: inline-block;
}

.profile-picture {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--sia-yellow);
    box-shadow: 0 0 30px rgba(253, 216, 53, 0.3);
    transition: transform 0.3s ease;
}

.profile-picture:hover {
    transform: scale(1.05);
}

.upload-photo-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--sia-yellow);
    color: var(--sia-black);
    border: 3px solid var(--sia-black);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.upload-photo-btn:hover {
    background: #f4d03f;
    transform: scale(1.1);
}

.profile-name {
    color: var(--sia-yellow);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Section Titles */
.section-title {
    color: var(--sia-yellow);
    font-size: 2rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(253, 216, 53, 0.3);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

/* Test Cards */
.tests-section {
    margin: 3rem 0;
}

.test-card {
    background: rgba(31, 31, 35, 0.8);
    border: 2px solid rgba(253, 216, 53, 0.2);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.test-card:hover {
    border-color: var(--sia-yellow);
    box-shadow: 0 10px 40px rgba(253, 216, 53, 0.2);
    transform: translateY(-5px);
}

.test-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.test-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 2px solid rgba(253, 216, 53, 0.3);
}

.test-title {
    color: var(--sia-yellow);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.test-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.test-status {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.test-status.completed {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #28a745;
}

.test-status.pending {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #ffc107;
}

/* AI Analysis Section */
.ai-analysis-section {
    margin: 3rem 0;
}

.career-card {
    background: rgba(31, 31, 35, 0.8);
    border: 2px solid rgba(253, 216, 53, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.career-card:hover {
    border-color: var(--sia-yellow);
    box-shadow: 0 10px 40px rgba(253, 216, 53, 0.2);
}

.career-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.career-title {
    color: var(--sia-yellow);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.career-fit-badge {
    background: var(--sia-yellow);
    color: var(--sia-black);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.career-description-container {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 10px;
    border-right: 4px solid var(--sia-yellow);
    margin: 1.5rem 0;
}

.career-description-container h5 {
    color: var(--sia-yellow);
    font-weight: 600;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
}

.career-description-container strong {
    color: var(--sia-yellow);
}

.text-yellow {
    color: var(--sia-yellow) !important;
}

.salary-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.salary-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(253, 216, 53, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.salary-country {
    color: var(--sia-yellow);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.salary-amount {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.salary-period {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.roadmap-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(253, 216, 53, 0.2);
}

.roadmap-title {
    color: var(--sia-yellow);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.roadmap-steps {
    list-style: none;
    padding: 0;
}

.roadmap-step {
    padding: 0.6rem 0;
    padding-right: 2rem;
    padding-left: 0;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    border-right: 2px solid rgba(253, 216, 53, 0.4);
    border-left: none;
    margin-bottom: 0.5rem;
    text-align: right;
}

.roadmap-step:before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    right: -13px;
    left: auto;
    top: 0.6rem;
    background: var(--sia-yellow);
    color: var(--sia-black);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.roadmap-steps {
    counter-reset: step-counter;
}

.learning-resources {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(253, 216, 53, 0.2);
}

.resources-title {
    color: var(--sia-yellow);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.resource-item {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--sia-yellow);
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.resource-item:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateX(5px);
}

.resource-link {
    color: var(--sia-yellow);
    text-decoration: none;
    font-weight: 500;
}

.resource-link:hover {
    text-decoration: underline;
}

/* Activity Log */
.activity-log-section {
    margin: 3rem 0;
}

.activity-log-container {
    background: rgba(31, 31, 35, 0.8);
    border: 2px solid rgba(253, 216, 53, 0.2);
    border-radius: 15px;
    padding: 2rem;
    max-height: 500px;
    overflow-y: auto;
}

.activity-log-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.3s ease;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: rgba(253, 216, 53, 0.1);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(253, 216, 53, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sia-yellow);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-action {
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.activity-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Charts */
.chart-container {
    background: rgba(31, 31, 35, 0.8);
    border: 2px solid rgba(253, 216, 53, 0.2);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.chart-title {
    color: var(--sia-yellow);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-name {
        font-size: 2rem;
    }

    .profile-picture {
        width: 150px;
        height: 150px;
    }

    .profile-actions {
        flex-direction: column;
    }

    .profile-actions .btn {
        width: 100%;
    }

    .salary-comparison {
        grid-template-columns: 1fr;
    }

    .career-header {
        flex-direction: column;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Scrollbar Styling */
.activity-log-container::-webkit-scrollbar {
    width: 8px;
}

.activity-log-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.activity-log-container::-webkit-scrollbar-thumb {
    background: var(--sia-yellow);
    border-radius: 10px;
}

.activity-log-container::-webkit-scrollbar-thumb:hover {
    background: #f4d03f;
}

/* Modal Styling */
.modal-content {
    border: 2px solid rgba(253, 216, 53, 0.3);
}

.modal-header {
    border-bottom-color: rgba(253, 216, 53, 0.2);
}

.modal-footer {
    border-top-color: rgba(253, 216, 53, 0.2);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--sia-yellow);
    box-shadow: 0 0 0 0.2rem rgba(253, 216, 53, 0.25);
}
