/* static/css/styles.css */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap");

@layer base {
    html {
        font-family: "Inter", sans-serif;
    }
}

input {
    border: 1px solid #857e7e;
    border-radius: 0.1rem;
    padding: 0 0.5rem;
    margin-top: 0.5rem;
    height: 2.2rem;
    font-size: 1rem;
    width: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    accent-color: #000000;
}
input[type="checkbox"],
input[type="radio"] {
    width: 1rem !important;
    height: 1rem !important;
    margin: 0 !important;
    accent-color: #000000 !important;
    border-color: #000000 !important;
    cursor: pointer;
}

/* Specifiek voor de container div om alignment te fixen */
.checkbox-container,
.radio-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
} 

input:focus {
    font-size: 1rem;
    border: 2px solid #000000;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: black !important;
    background-color: white !important;
    font-size: 1rem !important;
}

:root {
    --tw-ring-color: #000000 !important;
}

.button {
    background-color: #000000;
    color: #ffffff;
    border: none;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    padding: 7px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.875rem;
}

.button:hover {
    background-color: #333333;
    color: #ffffff;
}

.big-input {
    margin-top: 0.25rem; /* mt-1 */
    padding: 0.25rem; /* p-1 */
    font-size: 1.125rem; /* text-l */
    display: block; /* block */
    width: 100%; /* w-full */
    border: 1px solid #d1d5db; /* border border-gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); /* shadow-sm */
    accent-color: #000000;
}

no-hover:hover {
    background-color: #00000000 !important;
}

h2 {
    color: black;
}

h3 {
    color: black;
}

* {
    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
}

label {
    font-size: 1rem;
    color: #000000;
    display: block;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 42rem;
    max-height: 90vh;
    overflow-y: auto;
    margin: 1rem;
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: black;
}

.modal-body {
    margin-bottom: 1.5rem;
}

.modal-footer {
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
}

.action-button {
    background-color: black;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

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

.stepper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #e5e7eb;
    color: #6b7280;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
}

.step.active .step-icon,
.step.completed .step-icon {
    background-color: #4b5563;
    color: white;
}

.step-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    text-align: center;
}

.step.active .step-name,
.step.completed .step-name {
    color: #4b5563;
}

.step-line {
    flex: 1;
    height: 1px;
    background-color: #e5e7eb;
    margin-top: 1.25rem;
}

.step-line.completed {
    background-color: #4b5563;
}

.step-info {
    font-size: 0.75rem;
    color: #4b5563;
    margin-top: 0.5rem;
    text-align: center;
}

.step-info .error {
    color: #ef4444;
    margin-top: 0.25rem;
}

.introjs-tooltip {
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    max-width: 350px;
}

.introjs-button {
    text-shadow: none;
    background-image: none;
    text-align: center;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 0.25rem;
    border: 1px solid #e5e7eb;
    margin-right: 5px;
    color: #4b5563;
}

.introjs-prevbutton {
    margin-right: 5px;
}

.introjs-nextbutton {
    background-color: #000000 !important;
    color: white !important;
    border: none !important;
}

.introjs-nextbutton:hover, 
.introjs-nextbutton:focus {
    background-color: #333333 !important;
    color: white !important;
    box-shadow: none !important;
}

.introjs-helperLayer {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Reset and override all IntroJS skip button styling */
.introjs-skipbutton {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    color: #666 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    text-decoration: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 20px !important;
    height: 20px !important;
    line-height: 20px !important;
    text-align: center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 999999 !important;
    cursor: pointer !important;
    font-family: sans-serif !important;
}

/* Add extra space in tooltip to accommodate the skip button */
.introjs-tooltip {
    padding-top: 10px !important;
}

/* Ensure buttons have consistent styling */
.introjs-button {
    text-shadow: none !important;
    background-image: none !important;
    text-align: center !important;
    font-size: 14px !important;
    padding: 5px 10px !important;
    border-radius: 0.25rem !important;
    border: 1px solid #e5e7eb !important;
    margin-right: 5px !important;
    color: #4b5563 !important;
}

.introjs-prevbutton {
    margin-right: 5px !important;
}

.introjs-nextbutton {
    background-color: #000000 !important;
    color: white !important;
    border: none !important;
}

.introjs-nextbutton:hover, 
.introjs-nextbutton:focus {
    background-color: #333333 !important;
    color: white !important;
    box-shadow: none !important;
}

.introjs-helperLayer {
    background-color: rgba(255, 255, 255, 0.9) !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 100%;
    position: relative;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.close-button:hover {
    color: black;
}

.modal-title {
    margin-top: 0;
    margin-bottom: 15px;
}

.modal-footer {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.rating-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.rating-label {
    cursor: pointer;
}
.rating-input {
    position: absolute;
    left: -9999px;
}
.rating-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: white;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.2s;
}
.rating-input:checked + .rating-button {
    background-color: #000000;
    color: white;
    border-color: #000000;
}
.rating-button:hover {
    background-color: #f3f4f6;
}
.rating-input:checked + .rating-button:hover {
    background-color: #333333;
}
/* Add style for disabled action buttons */
.action-button:disabled {
    background-color: #d1d5db; /* gray-300 */
    color: #6b7280; /* gray-500 */
    cursor: not-allowed;
    opacity: 0.7;
}
.action-button:disabled:hover {
    background-color: #d1d5db; /* Keep the disabled background color on hover */
}
.introjs-tooltip.introjs-tooltip-wide {
    max-width: 600px !important;
    min-width: 400px !important;
    width: auto !important;
    white-space: normal;
}

@keyframes enter {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes leave {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.animate-enter {
    animation: enter 0.3s ease-out;
}

.animate-leave {
    animation: leave 0.3s ease-in forwards;
}

/* Custom Company Dropdown Styles */
.company-dropdown-container {
    position: relative;
    display: inline-flex !important; /* Use inline-flex instead of inline-block */
    align-items: center !important; /* Center vertically within container */
    flex-shrink: 0 !important; /* Prevent container from affecting header height */
    height: 36px !important; /* Match button height exactly */
    max-height: 36px !important; /* Force maximum height */
    min-height: 36px !important; /* Force minimum height */
    vertical-align: middle !important;
    margin: 0 !important;
}

.company-dropdown-button {
    width: 200px !important; /* Fixed width for consistency */
    text-align: left;
    border: none !important; /* Remove border to match select styling */
    transition: all 0.2s ease;
    height: 36px !important; /* Smaller height to match select exactly */
    max-height: 36px !important; /* Force maximum height */
    min-height: 36px !important; /* Force minimum height */
    line-height: 20px !important; /* Tighter line height */
    box-sizing: border-box !important;
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflow text */
    padding: 8px 12px !important; /* Smaller padding */
    font-size: 14px; /* Match select font size */
    margin: 0 !important; /* Remove any default margins */
    vertical-align: middle !important;
}

.company-dropdown-button:hover {
    background-color: #f9fafb;
}

.company-dropdown-button:focus {
    outline: none;
    background-color: #ffffff;
}

.company-dropdown-button .truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0; /* Allow flex child to shrink below content size */
}

.company-dropdown-button svg {
    vertical-align: middle;
}

/* Force header height consistency */
header.h-16 {
    height: 64px !important;
    max-height: 64px !important;
    min-height: 64px !important;
}

header.h-16 > div {
    height: 100% !important;
}

.company-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 50;
    margin-top: 0.5rem;
    width: 16rem;
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.company-search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.company-search-input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.company-list {
    max-height: 16rem;
    overflow-y: auto;
}

.company-item {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.company-item:hover,
.company-item.highlighted {
    background-color: #f3f4f6;
    color: #111827;
}

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

/* Scrollbar styling for company list */
.company-list::-webkit-scrollbar {
    width: 4px;
}

.company-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.company-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.company-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}