/* Custom CSS for HR Landing Page */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
}

/* Image Container */
.image-container {
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.image-container img {
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9) contrast(1.1);
}

/* Links Container */
.links-container {
    background-color: #ffffff;
    padding: .5rem;
    min-height: 100vh;
}

.links-wrapper {
    max-width: 400px;
    margin: 0;
}

.links-wrapper h2 {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1.75rem;
    margin-bottom: .7rem;
    text-align: center;
}

/* Settings Button */
.settings-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height:1px;
}

.settings-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1.1rem;
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.settings-btn:hover {
    background-color: rgba(108, 117, 125, 0.1);
    color: #495057;
}

.extension-display {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

/* Custom Navigation Links */
.link-nav .nav {
    gap: 0.5rem;
}

.custom-link {
    display: flex;
    align-items: center;
    padding: .45rem 1.25rem;
    color: #ffa64e !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
    border: 1px solid transparent;
    margin-bottom: 0.25rem;
}

.custom-link:hover {
    background-color: rgba(255, 138, 51, 0.12);
    border-color: rgba(255, 138, 51, 0.3);
    color: #e67635 !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 138, 51, 0.2);
}
/*.custom-link {
    display: flex;
    align-items: center;
    padding: .45rem 1.25rem;
    color: #000000 !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: transparent;
    border: 1px solid transparent;
    margin-bottom: 0.25rem;
}

.custom-link:hover {
    background-color: rgb(145 145 145 / 12%);
    border-color: rgb(10 10 10 / 30%);
    color: #000000e3 !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(80 80 80 / 20%);
}*/

.custom-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 138, 51, 0.25);
    background-color: rgba(255, 138, 51, 0.12);
}

/* Link Icons */
.link-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.875rem;
    flex-shrink: 0;
    color: inherit;
}

.site-slogan {
    font-size: 13px;
    font-style: italic;
    color: #999999;
}

/* Accordion customization */
.accordion-button {
    background-color: transparent !important;
    border: 1px solid transparent;
    color: #ffa64e !important;
    font-weight: 500;
    border-radius: 12px !important;
    margin-bottom: 0.25rem;
    box-shadow: none !important;
}

.accordion-button:hover {
    background-color: rgba(255, 138, 51, 0.12) !important;
    border-color: rgba(255, 138, 51, 0.3);
}

/*.accordion-button {
    background-color: transparent !important;
    border: 1px solid transparent;
    color: #000000 !important;
    font-weight: 500;
    border-radius: 12px !important;
    margin-bottom: 0.25rem;
    box-shadow: none !important;
}

.accordion-button:hover {
    background-color: rgb(145 145 145 / 12%);
    border-color: rgb(10 10 10 / 30%);
}*/

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(255, 138, 51, 0.25) !important;
}

.accordion-item {
    border: none !important;
    background: transparent;
}

.accordion-body {
    padding: 0 0 0 1rem;
}

.accordion-body .custom-link {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Responsive Design */
@media (max-width: 767.98px) {
    .image-container {
        height: 40vh;
        min-height: 300px;
    }
    
    .links-container {
        min-height: auto;
        padding: .7rem;
    }
    
    .links-wrapper h2 {
        font-size: 1.5rem;
        margin-bottom: .7rem;
    }
    
    .custom-link {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }
    
    .link-icon {
        width: 18px;
        height: 18px;
        margin-right: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .links-container {
        padding: .5rem;
    }
    
    .links-wrapper {
        max-width: 100%;
    }
}

/* Smooth scrolling for mobile */
@media (max-width: 767.98px) {
    html {
        scroll-behavior: smooth;
    }
}

/* Loading states and accessibility */
.custom-link:active {
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .custom-link {
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .custom-link {
        border: 2px solid #ffa64e;
    }
    
    .custom-link:hover {
        background-color: #ffa64e;
        color: #ffffff !important;
    }
}
        .link-nav {
        max-height: 80vh;        /* or any height you want */
        overflow-y: auto;        /* vertical scroll */
        overflow-x: hidden;      /* no horizontal scroll */
        }
        .version-text {
            font-size: 10px;
            padding: 2px 4px;
            border-radius: 12px;
            background: #28a745;
            color: #ffffff;
            font-weight: bold;
            /* min-width: 40px; */
            text-align: center;
        }
        
        .version-error {
            margin-left: auto;
            color: #dc3545;
            font-size: 14px;
            animation: pulse 2s infinite;
        }
        
        .version-loading {
            margin-left: auto;
            color: #6c757d;
            font-size: 12px;
            animation: spin 1s linear infinite;
        }
        
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.5; }
            100% { opacity: 1; }
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .status-indicator {
            margin-left: 8px;
            font-size: 10px;
        }
        
        .status-success {
            color: #28a745;
        }
        
        .status-error {
            color: #dc3545;
        }

        @media (min-width: 1600px) {
            .d-xxxl-none {
                display: none !important;
            }
            .d-xxxl-inline {
                display: inline !important;
            }
        }
        .company-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            margin-bottom: 8px;
            background: #f8f9fa;
            border-radius: 6px;
            transition: background 0.2s;
        }
        
        .company-item:hover {
            background: #e9ecef;
        }
        
        .company-name {
            flex-grow: 1;
            margin-right: 10px;
        }
        
        .delete-company {
            color: #dc3545;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: background 0.2s;
        }
        
        .delete-company:hover, #btnDeleteAll:hover  {
            background: rgba(220, 53, 69, 0.1);
        }
        
        .import-export-buttons {
            display: flex;
            gap: 10px;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #dee2e6;
        }
        
        .import-export-buttons button {
            flex: 1;
        }
        
        #fileInput {
            display: none;
        }
        
        .company-list-container {
            max-height: 45vh;
            overflow-y: auto;
            margin-top: 15px;
            padding-right: 5px;
        }
        
        .company-list-container::-webkit-scrollbar {
            width: 6px;
        }
        
        .company-list-container::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }
        
        .company-list-container::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 3px;
        }
        
        .company-list-container::-webkit-scrollbar-thumb:hover {
            background: #555;
        }
        
        .selected-company-badge {
            background: #28a745;
            color: white;
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 11px;
            margin-left: 8px;
        }
        /* Wrapper for input + button */
        .company-input-wrap {
            position: relative;
            width: 100%;
        }

        /* Input styling */
        .company-input-wrap input#newCompanyInput {
            width: 100%;
            height: 50px;
            padding: 0 90px 0 10px; /* space for button on right */
            font-size: 0.9em;
            border-radius: 5px;
            border: none;
            box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.19);
        }

        /* Button styling */
        .company-input-wrap button#addCompanyBtn {
            position: absolute;
            right: 10px;
            top: 10px;
            height: 30px;
            padding: 0 15px;
            border: none;
            border-radius: 5px;
            background-color: #28a745;
            color: #fff;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.19);
        }

        .company-input-wrap button#addCompanyBtn:hover {
            background-color: #28a746e2;
            box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.19);
        }

        /* Icon inside the button */
        .company-input-wrap button#addCompanyBtn i {
            margin: 0;
        }
