/* Global styling */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    display: flex;
    flex-grow: 1;
}

.container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.form h1 {
    margin-bottom: 20px;
    font-size: 32px;
    color: #000;
}
  
.form label {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    color: #000;
}
  
.form input {
    width: 90%;
    padding: 10px 0 10px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}
  
.form button {
    width: 98%;
    padding: 10px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.form p {
    margin-top: 20px;
}

.form a {
    color: #000;
    text-decoration: none;
}

.form a:hover {
    text-decoration: underline;
}

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

.form-group label {
    display: block;
    margin-bottom: .5rem;
}

.form-group input {
    width: 95%;
    padding: 8px 0 8px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.alert {
    padding: 10px;
    margin-bottom: 1rem;
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.alert-success {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    font-size: 14px;
    font-weight: 500;
}

.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.mt-3 {
    margin-top: 1rem;
}

/* Main content area */
.content {
    position: sticky;
    top: 0;
    flex: 1;
    padding: 20px;
    min-height: 100vh;
    overflow-y: auto;
    z-index: 1;
    background-image: url("../images/background-3lQ8Cg_.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #ffffff;  /* White background */
    color: #000000;  /* Black text */
}

/* Profile details section */
.profile-section {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.profile-item {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.profile-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #000;
    text-transform: uppercase;
}

.info-group {
    margin-bottom: 15px;
}

.info-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.info-group p {
    font-size: 16px;
    color: #000;
    margin: 0;
    padding: 8px 0;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background-color: #28a745;
    color: white;
}

.status-badge.inactive {
    background-color: #dc3545;
    color: white;
}

.profile-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    display: none;
}

.edit-button:hover {
    background-color: #333;
    color: white;
    text-decoration: none;
}

.edit-button svg {
    width: 16px;
    height: 16px;
}

/* Hover states */
.btn-primary:hover {
    color: #000000;
    background-color: #CF9B00;
    border-color: #CF9B00;
}

/* Disabled states */
.btn-primary.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button with icon alignment */
.btn-primary svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.employer-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 40px; /* Ensure consistent height */
}

.employer-group label {
    font-size: 1rem;
    color: #333;
    min-width: 80px;
    margin: 0; /* Remove default margin */
    display: flex;
    align-items: center;
}

.employer-display {
    font-size: 1.1rem;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
}

.employer-display strong {
    font-weight: 600;
    line-height: 1; /* Ensure text is vertically centered */
}

.terms-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0; /* Prevent checkbox from shrinking */
}

.checkbox-wrapper label {
    margin: 0;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    line-height: 1; /* Ensure text is vertically centered */
    text-align: center;
}

/* Responsive design for smaller devices */
@media (max-width: 768px) {
    .content {
        width: 100%;
        margin-left: 0;
        padding: 0;
        transition: margin-left 0.3s ease;
    }

    .profile-section {
        padding: 16px;
    }

    .profile-section h1 {
        margin: 0;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .profile-item {
        padding: 16px;
    }

    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .edit-button {
        position: absolute;
        right: 0;
        top: 100%;
        transform: translateY(-50%);
        width: auto;
    }
}

@media (max-width: 440px) {
    .form {
        padding: 0 0 10px;
    }

    .form-group input {
        width: 85%;
    }

    .form button {
        width: 88%;
    }
}

.services-container {
    background-color: #ffffff;
    padding: 30px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 45px;
    margin-top: 30px;
}

.service-card {
    background: #CF9B001A;
    border-radius: 8px;
    padding: 80px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.service-header {
    margin-bottom: 1rem;
}

.service-header h3 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.service-limit {
    font-size: 0.9rem;
    color: #666;
}

.service-actions {
    margin-top: 1rem;
}

.no-services {
    text-align: center;
    padding: 3rem;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 2% auto;
    width: 95%;
    height: 90%;
    border-radius: 8px;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 10px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2100;
}

.close-modal:hover {
    color: #000;
}

#service-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.btn-link {
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 60px;
}

.btn-link:hover {
    background-color: #CF9B00;
    border-color: #CF9B00;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.btn-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.wrapper {
    font-size: 1rem;
    font-weight: 400;
    font-style: normal;
    line-height: 1.438em;
    padding: 16px;
}

.scroll-top-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #e5a40f;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    transition: opacity 0.3s ease !important;
}

.scroll-top-btn:hover {
    background-color: #37281c;
}

.icon-container {
    margin-bottom: 15px;
}

.icon-container .fas {
    font-size: 80px;
    color: #CF9B00;
}

/* Welcome Panel */
.welcome-panel {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.welcome-panel h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.intro-text {
    color: #5d6778;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.features-section {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #cf9b00;
}

.features-section h2 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-list {
    list-style-type: none;
    padding: 0;
}

.feature-list li {
    padding: 0.8rem 0;
    color: #5d6778;
    line-height: 1.5;
    border-bottom: 1px solid #eaecef;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-title {
    font-weight: 600;
    color: #cf9b00;
}

.closing-text {
    color: #5d6778;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #cf9b00;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #cf9b00;
}

.btn-secondary {
    background-color: white;
    color: #cf9b00;
    border: 1px solid #cf9b00;
    justify-content: center;
}

.btn-secondary:hover {
    background-color: #f0f7fc;
}

/* Services Preview Section */
.services-preview {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.services-preview h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eaecef;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.service-icon {
    font-size: 2rem;
    color: #cf9b00;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    height: 40px;
}

.service-link {
    display: inline-block;
    color: #cf9b00;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
}

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

.view-all {
    background-color: #ebf5fb;
    border: 1px dashed #cf9b00;
}

.goto-login {
    display: grid;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .welcome-panel, .services-preview {
        padding: 1.5rem;
    }

    .services-container {
        padding: 16px;
    }

    .services-container h1 {
        margin: 0;
    }

    .services-grid {
        margin-top: 16px;
    }
}