* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5;
}

#user-profile {
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0px 0px 19px -9px rgba(255, 122, 61, 1);
    overflow: hidden;
}

#profile-header {
    display: flex;
    padding: 30px;
    background: white;
    border-bottom: 1px solid #eee;
}

.profile-image {
    position: relative;
    width: 120px;
    height: 120px;
    margin-right: 20px;
}

.default-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ff7a3d;
}

.default-avatar i {
    font-size: 48px;
    color: #666;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff7a3d;
    display: none; /* Hide by default, will be shown when image is uploaded */
}

.edit-image {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: white;
    border: none;
    color: #ff7a3d;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.edit-image:hover {
    background: #ff7a3d;
    color: white;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 2em;
    margin-bottom: 5px;
    color: #333;
}

.profile-info p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #666;
}

.profile-stats {
    display: flex;
    gap: 20px;
}

.profile-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #666;
}

.profile-stats i {
    color: #ff7a3d;
}

#profile-content {
    display: flex;
    min-height: 500px;
}

#profile-sidebar {
    width: 220px;
    background: #f8f8f8;
    border-right: 1px solid #eee;
}

#profile-sidebar nav ul {
    list-style: none;
}

#profile-sidebar nav li {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-size: 0.95em;
    color: #666;
}

#profile-sidebar nav li:hover {
    background: #eee;
    color: #ff7a3d;
}

#profile-sidebar nav li.active {
    background: #ff7a3d;
    color: white;
}

#profile-main {
    flex: 1;
    padding: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.edit-button {
    background: none;
    border: 1px solid #ff7a3d;
    color: #ff7a3d;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s;
}

.edit-button:hover {
    background: #ff7a3d;
    color: white;
}

.tab-content {
    display: none;
}

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

.tab-content h2 {
    color: #333;
    font-size: 1.5em;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-size: 0.95em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.3s;
}

.form-group input:read-only {
    background: #f8f8f8;
}

.form-group input:hover,
.form-group input:focus,
.form-group select:hover,
.form-group select:focus {
    border-color: #ff7a3d;
    outline: none;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    cursor: pointer;
}

.toggle-password:hover {
    color: #ff7a3d;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.save-button {
    background-color: #ff7a3d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.3s;
}

.save-button:hover {
    background-color: #ff5e1f;
}

.cancel-button {
    background-color: #f8f8f8;
    color: #666;
    border: 1px solid #eee;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.3s;
}

.cancel-button:hover {
    background-color: #eee;
    color: #333;
}

/* Applications and Saved Jobs Styles */
.application-item,
.saved-job-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.application-item:hover,
.saved-job-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.application-details,
.job-details {
    width: 100%;
}

.application-details h3,
.job-details h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.application-details h3 a,
.job-details h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.application-details h3 a:hover,
.job-details h3 a:hover {
    color: #ff7a3d;
}

.application-details p,
.job-details p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.application-actions,
.job-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 15px;
}

.status {
    color: #666;
    font-size: 14px;
}

.apply-now-button {
    background-color: #ff7a3d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.apply-now-button:hover {
    background-color: #ff5a1a;
}

.remove-job-button {
    background: none;
    border: none;
    color: #ff7a3d;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.remove-job-button:hover {
    color: #ff5a1a;
}

/* Settings Styles */
#settings .section-header {
    margin-bottom: 20px;
}

#settings .form-group {
    margin-bottom: 20px;
}

#settings .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

#settings .form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#settings .form-group input:read-only {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

/* Responsive Design */
@media only screen and (max-width: 920px) {
    #profile-content {
        flex-direction: column;
    }

    #profile-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    #profile-sidebar nav ul {
        display: flex;
        overflow-x: auto;
        padding: 10px 0;
    }

    #profile-sidebar nav li {
        white-space: nowrap;
        padding: 10px 15px;
    }
}

@media only screen and (max-width: 480px) {
    #profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .profile-image {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .profile-stats {
        justify-content: center;
    }

    #profile-main {
        padding: 20px;
    }

    .application-item,
    .saved-job-item {
        padding: 15px;
    }

    .application-details,
    .job-details {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Profile Details Styles */
.skills-input-container {
    margin-bottom: 10px;
}

.skill-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.skill-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.skill-input:read-only {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.skill-tag {
    background-color: #f0f0f0;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.skill-tag .remove-skill {
    color: #666;
    cursor: pointer;
    font-size: 12px;
}

.skill-tag .remove-skill:hover {
    color: #ff7a3d;
}

#profile-details-form input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

#profile-details-form input[type="text"]:read-only {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

#profile-details-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
}

#profile-details-form textarea:read-only {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

.add-skill-button {
    background-color: #f0f0f0;
    color: #666;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.add-skill-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.add-skill-button:not(:disabled):hover {
    background-color: #e0e0e0;
}

.add-skill-button i {
    font-size: 12px;
}

/* Experience Styles */
.experience-input-container {
    margin-bottom: 10px;
}

.experience-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.experience-position-input,
.experience-company-input,
.experience-start-date,
.experience-end-date {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-range-inputs span {
    color: #666;
}

.experience-position-input:read-only,
.experience-company-input:read-only,
.experience-start-date:read-only,
.experience-end-date:read-only {
    background-color: #f0f0f0;
    cursor: not-allowed;
}

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

.experience-tag {
    background-color: #f0f0f0;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.experience-tag .experience-title {
    font-weight: 600;
    color: #333;
}

.experience-tag .experience-company {
    color: #666;
}

.experience-tag .experience-dates {
    color: #666;
    font-size: 13px;
}

.experience-tag .remove-experience {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}

.experience-tag .remove-experience:hover {
    color: #ff7a3d;
}

.add-experience-button {
    background-color: #f0f0f0;
    color: #666;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
}

.add-experience-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.add-experience-button:not(:disabled):hover {
    background-color: #e0e0e0;
}

/* Wymagania dotyczące hasła */
.passwordRequirements {
    text-align: left;
    width: 100%;
    margin-bottom: 10px;
}

.passwordRequirements ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
    display: block;
}

.passwordRequirements li {
    color: #cccccc9e;  /* Szary kolor początkowy */
    text-align: left;
    display: block;
    font-size: 16px;
    padding: 10px 0;
}

.passwordRequirements li.valid {
    color: #ff7a3d;  /* Kolor, gdy wymaganie jest spełnione */
}

.passwordRequirements .icon-check {
    margin-right: 10px;
    color: #ccc;
    transition: transform 0.3s ease, color 0.3s ease;
}

.passwordRequirements .icon-check.checked {
    color: #ff7a3d;  /* Kolor, gdy ikona jest zaznaczona */
    transform: scale(1.2);
}

.passwordRequirements .icon-check.unchecked {
    color: #aaa;  /* Kolor, gdy ikona nie jest zaznaczona */
    transform: scale(1);
}

/* Placeholder styles */
.experience-placeholder,
.skills-placeholder {
    margin-bottom: 10px;
}

.add-experience-btn,
.add-skill-btn {
    background-color: transparent;
    border: 2px dashed #ccc;
    color: #ccc;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: flex-start;
    transition: all 0.3s ease;
    text-align: left;
}

.add-experience-btn i,
.add-skill-btn i {
    color: #ccc;
    transition: color 0.3s ease;
}

.profile-details-form.editing .add-experience-btn i,
.profile-details-form.editing .add-skill-btn i {
    color: #ff7a3d;
}

.add-experience-btn span,
.add-skill-btn span {
    font-size: 14px;
    color: inherit;
}

/* Ensure placeholders are visible */
.experience-placeholder,
.skills-placeholder {
    display: block !important;
}

/* Hide placeholders only when input module is visible */
.experience-input-wrapper ~ .experience-placeholder,
.skill-input-wrapper ~ .skills-placeholder {
    display: none !important;
}

/* Input module styles */
.experience-input-wrapper,
.skill-input-wrapper {
    display: none;
    background-color: #fff;
    border: 2px solid #ff7a3d;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.experience-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-input-wrapper {
    display: flex;
    gap: 10px;
}

.experience-input-wrapper input,
.skill-input-wrapper input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.date-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.date-range-inputs input {
    flex: 1;
}

.add-experience-button,
.add-skill-button {
    background-color: #ff7a3d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
}

.add-experience-button:hover,
.add-skill-button:hover {
    background-color: #ff5e1f;
}

.add-experience-button i,
.add-skill-button i {
    font-size: 12px;
}

.profile-details-form.editing .experience-input-wrapper,
.profile-details-form.editing .skill-input-wrapper {
    display: block;
}

.remove-experience,
.remove-skill {
    background: none;
    border: none;
    color: #ccc;
    cursor: default;
    padding: 5px;
    transition: all 0.3s ease;
}

.profile-details-form.editing .remove-experience,
.profile-details-form.editing .remove-skill {
    color: #ff7a3d;
    cursor: pointer;
}

.profile-details-form.editing .remove-experience:hover,
.profile-details-form.editing .remove-skill:hover {
    color: #ff5e1f;
}

.remove-experience:disabled,
.remove-skill:disabled {
    opacity: 0.5;
    cursor: default;
}

#personal-info-form input:read-only {
    background-color: #f5f5f5;
    color: #666;
    cursor: default;
}

#personal-info-form input:not(:read-only) {
    background-color: #fff;
    color: #000;
}

#saved-jobs h2,
#applications h2 {
    margin-bottom: 30px;
}
