/* 

    Container for switch and label 

*/
.switch {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    margin-left: 10px;
}

/* Hide the default checkbox */
.switch input[type="checkbox"] {
    display: none;
}

/* Custom slider toggle */
.switch .slider {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: background-color 0.3s;
}

/* Slider knob */
.switch .slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

/* When checkbox is checked, change background and slide knob */
.switch input:checked+.slider {
    background-color: #FF5F1F;
}

.switch input:checked+.slider::before {
    transform: translateX(26px);
}

/* Optional: label text next to the toggle */
.switch .label-text {
    font-size: 16px;
    user-select: none;
}


/* 
   Buttons
 */
.button-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    height: fit-content;
    transition: background 0.3s;
    cursor: pointer;
    margin-left: 10px;
}

.button-primary:hover {
    background: #ccc;
    color: #000;
}

.button {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ccc;
    color: #000;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    height: fit-content;
    transition: background 0.3s;
    cursor: pointer;
    margin-left: 10px;
}

.button:hover {

    background: #333;
    color: #fff;
}


/*
 Tag buttons
*/

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 20px;
}


.tag-button {
    cursor: pointer;
    border: none;
    background: #ccc;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: "Space Mono", monospace;
    transition: background 0.3s;
    text-transform: lowercase;
}

.tag-button:hover {
    background: #333;
    color: #fff;
}

.tag-button.active {
    background: #000;
    color: #fff;
}


/*
    Text input
*/

.input-text {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-text:focus {
    outline: none;
    border-color: #0077cc;
    box-shadow: 0 0 4px rgba(0, 119, 204, 0.4);
    background-color: #fff;
}