* {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.funcBtn {
    padding: 0.7rem 1.2rem;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #252060;
}
.funcBtn img {
    width: 1.2rem;
    margin-left: 0.6rem;
}
.funcBtn:hover {
    cursor: pointer;
    background-color: grey;
}

/* modals */
.modalBackground {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.562);
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
}

.modalBase {
    padding: 1.5rem;
    box-sizing: border-box;
    min-width: 20rem;
    background-color: white;
    border-radius: 7px;
    overflow-y: auto;
    overflow-x: auto;
    max-height: 90vh;
}

.closeIcon {
    width: 1rem;
    height: 1rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

/* tables */

.standardTable {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    border-collapse: collapse;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

thead {
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.tableRow th {
    text-align: left;
    padding: 0.85rem 1rem;
    color: white;
    background-color: #79121c;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

tbody tr {
    border-bottom: 1px solid #ddd;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    transition: background 0.2s ease-in-out;
}

.tableRow td {
    padding: 0.85rem 1rem;
}

tbody tr:hover {
    background-color: rgba(141, 5, 5, 0.05);
}

th:first-child {
    border-top-left-radius: 8px;
}

th:last-child {
    border-top-right-radius: 8px;
}

/* inputs */

.form-group {
    margin-bottom: 0.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    background-color: white;
    color: #374151;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:invalid {
    border-color: #ef4444;
}

.form-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.btn-next {
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-next:hover {
    background-color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/* Switch Root (the track) */
.switch-root {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: 60px;
    min-height: 36px;
    height: 2rem;
    border-radius: 9999px;
    padding: 3px;
    background-color: #e5e5e5; /* unchecked bg */
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}
.switch-root[data-state="checked"] {
    background-color: #252061; /* checked bg */
}
.switch-root:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #252061; /* focus ring */
}
.switch-root:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Switch Thumb (the knob) */
.switch-thumb {
    width: 30px;
    height: 2rem;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
    transform: translateX(0);
}
.switch-thumb[data-state="checked"] {
    transform: translateX(24px);
}
/* Switch Root for canvas (the track) */
.switch-root2 {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    width: 46px;          /* narrower */
    min-height: 20px;     /* smaller */
    height: 20px;         /* smaller */
    border-radius: 9999px;
    padding: 2px;
    background-color: #e5e5e5; /* unchecked bg */
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}
.switch-root2[data-state="checked"] {
    background-color: #252061; /* checked bg */
}
.switch-root2:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #252061; /* focus ring */
}
.switch-root2:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Switch Thumb (the knob) */
.switch-thumb2 {
    width: 16px;          /* smaller knob */
    height: 16px;         /* smaller knob */
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
    transform: translateX(0);
}
.switch-thumb2[data-state="checked"] {
    transform: translateX(26px); /* adjusted for new width */
}

.invisibleBtn {
    border: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
}
