/* Sealagoon Careers Styling */
@import url('https://fonts.googleapis.com/css2?family=Berkshire+Swash&display=swap');
.career-listings {
    padding: 0px 100px;
    margin-bottom: 30px;
}

.career-item {
    background-color: #FFF;
    border: solid 4px #fff;
    margin-bottom: 25px;
    padding: 20px;
    box-shadow: 0px 0px 16px 12px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    position: relative;
}

.career-item:hover {
    box-shadow: 0px 0px 16px 12px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}

.career-header {
    margin-bottom: 15px;
    border-bottom: 1px solid #F1D0AE;
    padding-bottom: 10px;
}

.career-title {
    font-size: 22px;
    margin: 0px 0px 8px 0px;
    font-family: 'Berkshire Swash', cursive;
    color: #9c2500;
    font-weight: normal;
}

.career-title-text {
    color: #9c2500;
    text-decoration: none;
    text-shadow: 1px 1px 0px #FCFFDA;
    cursor: pointer;
}

.career-title-text:hover {
    color: #bc350a;
    text-decoration: underline;
}

.career-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 8px;
}

.career-meta span {
    background-color: #bd9165;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-shadow: 0px -1px 0px rgba(30, 30, 30, 0.8);
}

.career-meta .job-type {
    background: linear-gradient(0deg, #972400 30%, #bc350a 70%);
    border: solid 1px #771e02;
}

.career-meta .location {
    background-color: #4c2314;
}

.career-meta .salary {
    background-color: #602400;
}

.career-content {
    margin: 15px 0px;
    font-size: 14px;
    line-height: 20px;
    text-shadow: 0px 0px 13px #ffe1b3;
    color: #333;
}

.career-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #F1D0AE;
}

.career-footer .experience,
.career-footer .deadline {
    font-size: 13px;
    color: #4c2314;
    font-weight: 600;
}

.apply-button {
    background: linear-gradient(0deg, #972400 30%, #bc350a 70%);
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: 0px -1px 0px rgba(30, 30, 30, 0.8);
    border: solid 1px #771e02;
    transition: all 0.3s ease;
}

.apply-button:hover {
    background: linear-gradient(0deg, #bc350a 30%, #d63e0c 70%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.view-details-button {
    background: linear-gradient(0deg, #4c2314 30%, #602400 70%);
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: 0px -1px 0px rgba(30, 30, 30, 0.8);
    border: solid 1px #2a1209;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-right: 10px;
}

.view-details-button:hover {
    background: linear-gradient(0deg, #602400 30%, #7a2e00 70%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.no-careers {
    text-align: center;
    font-size: 16px;
    color: #9c2500;
    padding: 40px;
    background-color: rgba(245, 222, 179, 0.3);
    border-radius: 4px;
    font-family: 'Berkshire Swash', cursive;
}

/* Responsive Design */
@media (max-width: 768px) {
    .career-listings {
        padding: 0px 20px;
    }
    
    .career-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .career-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .career-meta span {
        display: inline-block;
        width: fit-content;
    }
}

/* Modal Styles */
.career-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.career-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: solid 4px #fff;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0px 0px 30px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
}

.career-modal-close {
    color: #9c2500;
    float: right;
    font-size: 35px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 10px;
    z-index: 10001;
    cursor: pointer;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
}

.career-modal-close:hover,
.career-modal-close:focus {
    color: #bc350a;
    background-color: rgba(255, 255, 255, 1);
}

#career-modal-body {
    padding: 30px;
}

.career-modal-header {
    margin-bottom: 25px;
    border-bottom: 2px solid #F1D0AE;
    padding-bottom: 15px;
}

.career-modal-header h2 {
    font-size: 28px;
    margin: 0px 0px 12px 0px;
    font-family: 'Berkshire Swash', cursive;
    color: #9c2500;
    font-weight: normal;
    text-shadow: 1px 1px 0px #FCFFDA;
}

/* Career Management List Styles */
.career-management-list {
    margin-top: 20px;
}

.career-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.career-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.career-item-header h3 {
    margin: 0;
    color: #9c2500;
    font-size: 18px;
}

.career-item-actions {
    display: flex;
    gap: 10px;
}

.edit-career-btn, .delete-career-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.edit-career-btn {
    background-color: #007cba;
    color: white;
}

.edit-career-btn:hover {
    background-color: #005a87;
}

.delete-career-btn {
    background-color: #dc3232;
    color: white;
}

.delete-career-btn:hover {
    background-color: #a02622;
}

.career-item-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
}

.career-item-meta span {
    padding: 2px 8px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.no-careers-management {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.loading-message, .error-message {
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.error-message {
    color: #dc3232;
}

.career-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 12px;
}

.career-modal-meta span {
    background-color: #bd9165;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-shadow: 0px -1px 0px rgba(30, 30, 30, 0.8);
}

.career-modal-meta .job-type {
    background: linear-gradient(0deg, #972400 30%, #bc350a 70%);
    border: solid 1px #771e02;
}

.career-modal-meta .location {
    background-color: #4c2314;
}

.career-modal-meta .salary {
    background-color: #602400;
}

.career-modal-details {
    margin-bottom: 25px;
    background-color: rgba(245, 222, 179, 0.2);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #F1D0AE;
}

.detail-item {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 20px;
}

.detail-item strong {
    color: #4c2314;
    font-weight: 700;
    display: inline-block;
    min-width: 140px;
}

.detail-item a {
    color: #9c2500;
    text-decoration: none;
}

.detail-item a:hover {
    text-decoration: underline;
}

.career-modal-description {
    margin-bottom: 25px;
}

.career-modal-description h3 {
    font-size: 20px;
    margin: 0px 0px 15px 0px;
    font-family: 'Berkshire Swash', cursive;
    color: #9c2500;
    font-weight: normal;
    text-shadow: 1px 1px 0px #FCFFDA;
}

.career-modal-description p {
    font-size: 14px;
    line-height: 22px;
    text-shadow: 0px 0px 13px #ffe1b3;
    color: #333;
    margin-bottom: 15px;
}

.career-modal-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #F1D0AE;
}

.career-loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #9c2500;
    font-family: 'Berkshire Swash', cursive;
}

.career-error {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #bc350a;
    background-color: rgba(188, 53, 10, 0.1);
    border-radius: 4px;
    border: 1px solid #bc350a;
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .career-modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 80vh;
    }
    
    #career-modal-body {
        padding: 20px;
    }
    
    .career-modal-header h2 {
        font-size: 22px;
        margin-right: 40px;
    }
    
    .career-modal-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .career-modal-meta span {
        display: inline-block;
        width: fit-content;
    }
    
    .detail-item strong {
        display: block;
        margin-bottom: 3px;
        min-width: auto;
    }
}

/* Frontend Login Form Styles */
.career-login-form {
    max-width: 400px;
    margin: 30px auto;
    background-color: #FFF;
    padding: 30px;
    border: solid 4px #fff;
    box-shadow: 0px 0px 16px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.career-login-form h3 {
    font-size: 24px;
    margin: 0px 0px 20px 0px;
    font-family: 'Berkshire Swash', cursive;
    color: #9c2500;
    text-align: center;
    text-shadow: 1px 1px 0px #FCFFDA;
}

.career-login-form .form-group {
    margin-bottom: 20px;
}

.career-login-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4c2314;
    font-size: 14px;
}

.career-login-form input[type="text"],
.career-login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: solid 1px #F1D0AE;
    border-radius: 4px;
    background-color: #bd9165;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
    box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.25);
}

.career-login-form input[type="text"]::placeholder,
.career-login-form input[type="password"]::placeholder {
    color: #F1D0AE;
}

.login-button {
    background: linear-gradient(0deg, #972400 30%, #bc350a 70%);
    color: #fff;
    padding: 12px 24px;
    border: solid 1px #771e02;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    text-shadow: 0px -1px 0px rgba(30, 30, 30, 0.8);
    transition: all 0.3s ease;
}

.login-button:hover {
    background: linear-gradient(0deg, #bc350a 30%, #d63e0c 70%);
    transform: translateY(-1px);
}

.career-logged-in,
.career-login-required,
.career-access-denied {
    text-align: center;
    padding: 20px;
    border-radius: 4px;
    font-size: 16px;
    margin: 20px 0;
}

.career-logged-in {
    background-color: rgba(117, 174, 16, 0.1);
    color: #4c2314;
    border: 1px solid #75ae10;
}

.career-login-required,
.career-access-denied {
    background-color: rgba(188, 53, 10, 0.1);
    color: #bc350a;
    border: 1px solid #bc350a;
}

#career-login-message .error-message {
    background-color: rgba(188, 53, 10, 0.1);
    color: #bc350a;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #bc350a;
    margin-top: 10px;
}

#career-login-message .success-message {
    background-color: rgba(117, 174, 16, 0.1);
    color: #4c2314;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #75ae10;
    margin-top: 10px;
}

#career-login-message .loading-message {
    background-color: rgba(245, 222, 179, 0.3);
    color: #9c2500;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #F1D0AE;
    margin-top: 10px;
    text-align: center;
}

/* Career Management Dashboard Styles */
.career-management-dashboard {
    padding: 0px 100px;
    margin: 30px 0;
}

.career-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F1D0AE;
}

.career-dashboard-header h2 {
    font-size: 28px;
    margin: 0;
    font-family: 'Berkshire Swash', cursive;
    color: #9c2500;
    text-shadow: 1px 1px 0px #FCFFDA;
}

.dashboard-actions {
    display: flex;
    gap: 15px;
}

.add-career-button {
    background: linear-gradient(0deg, #972400 30%, #bc350a 70%);
    color: #fff;
    padding: 10px 20px;
    border: solid 1px #771e02;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    text-shadow: 0px -1px 0px rgba(30, 30, 30, 0.8);
    transition: all 0.3s ease;
    text-decoration: none;
}

.add-career-button:hover {
    background: linear-gradient(0deg, #bc350a 30%, #d63e0c 70%);
    transform: translateY(-1px);
}

.logout-button {
    background: linear-gradient(0deg, #4c2314 30%, #602400 70%);
    color: #fff;
    padding: 10px 20px;
    border: solid 1px #2a1209;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0px -1px 0px rgba(30, 30, 30, 0.8);
    transition: all 0.3s ease;
}

.logout-button:hover {
    background: linear-gradient(0deg, #602400 30%, #7a2e00 70%);
    transform: translateY(-1px);
    color: #fff;
}

/* Career Form Styles */
.career-form-container {
    background-color: #FFF;
    padding: 30px;
    margin-bottom: 30px;
    border: solid 4px #fff;
    box-shadow: 0px 0px 16px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.career-form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #4c2314;
    font-size: 14px;
}

.career-form-container input,
.career-form-container select,
.career-form-container textarea {
    width: 100%;
    padding: 12px;
    border: solid 1px #F1D0AE;
    border-radius: 4px;
    background-color: #bd9165;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
    box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.25);
    font-family: Roboto, sans-serif;
}

.career-form-container input::placeholder,
.career-form-container textarea::placeholder {
    color: #F1D0AE;
}

.career-form-container textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #F1D0AE;
}

.save-career-button {
    background: linear-gradient(0deg, #972400 30%, #bc350a 70%);
    color: #fff;
    padding: 12px 24px;
    border: solid 1px #771e02;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    text-shadow: 0px -1px 0px rgba(30, 30, 30, 0.8);
    transition: all 0.3s ease;
}

.save-career-button:hover {
    background: linear-gradient(0deg, #bc350a 30%, #d63e0c 70%);
    transform: translateY(-1px);
}

.cancel-button {
    background: linear-gradient(0deg, #666 30%, #888 70%);
    color: #fff;
    padding: 12px 24px;
    border: solid 1px #444;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    text-shadow: 0px -1px 0px rgba(30, 30, 30, 0.8);
    transition: all 0.3s ease;
}

.cancel-button:hover {
    background: linear-gradient(0deg, #888 30%, #aaa 70%);
    transform: translateY(-1px);
}

/* Career List Container */
.career-list-container {
    background-color: #FFF;
    padding: 30px;
    border: solid 4px #fff;
    box-shadow: 0px 0px 16px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.career-list-container h3 {
    font-size: 22px;
    margin: 0px 0px 20px 0px;
    font-family: 'Berkshire Swash', cursive;
    color: #9c2500;
    text-shadow: 1px 1px 0px #FCFFDA;
}

.career-list-placeholder,
.career-list-info {
    text-align: center;
    padding: 40px;
    color: #9c2500;
    font-style: italic;
    background-color: rgba(245, 222, 179, 0.3);
    border-radius: 4px;
    border: 1px solid #F1D0AE;
}

/* Responsive Design for Management Interface */
@media (max-width: 768px) {
    .career-management-dashboard {
        padding: 0px 20px;
    }
    
    .career-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .dashboard-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .add-career-button,
    .logout-button {
        text-align: center;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .career-login-form {
        margin: 20px;
        padding: 20px;
    }
}