/* ===== Custom Tool Modal ===== */
.custom-tool-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 300px;
}

.modal-actions {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}

/* ===== Custom Tools Actions ===== */
.custom-tools-actions {
    display: inline-block;
    float: right;
}

/* ===== Edit Mode ===== */
.edit-mode .edit-mode-btn {
    animation: blink-slow 1.5s infinite;
}

@keyframes blink-slow {
    0%   { color: black; background-color: transparent; }
    25%  { color: black; background-color: transparent; }
    50%  { color: black; background-color: yellow; }
    75%  { color: black; background-color: yellow; }
    100% { color: black; background-color: transparent; }
}

.edit-controls {
    display: none;
    white-space: nowrap;
    margin-left: 5px;
}

.edit-mode .edit-controls {
    display: inline;
}

.save-btn {
    background-color: #4CAF50;
    color: white;
}

.move-btn {
    cursor: move;
}

/* ===== Table Layout ===== */
.kol {
    width: 100%;
    table-layout: fixed;
}

.kol td {
    width: 20%;
    word-wrap: break-word;
    padding: 5px;
}

/* ===== Custom Tools List ===== */
.custom-tools-list {
    flex-wrap: wrap;
    padding: 10px;
    align-items: center;
    gap: 5px;
    line-height: 1.8;
}

.custom-tools-list a {
    white-space: nowrap;
}

.custom-tools-list a:hover {
    background: lime;
    color: #000;
    text-decoration: none;
}

.custom-tools-list .category-group {
    color: black;
    font-size: 1em;
    display: block;
}

/* ===== Category Checkboxes / Radios ===== */
#category-checkboxes {
    max-height: 150px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#category-checkboxes div {
    display: flex;
    align-items: center;
    gap: 5px;
}

#category-checkboxes input[type="checkbox"] {
    margin: 0;
}

#category-radios input[type="radio"] {
    margin: 0;
}

#category-radios label {
    cursor: pointer;
}

/* ===== Marquee ===== */
.marquee-container {
    height: 20px;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    width: 100%;
}

.marquee-content {
    position: absolute;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.marquee-content.active {
    opacity: 1;
    transform: translateY(0);
}

.marquee-content.exiting {
    opacity: 0;
    transform: translateY(-20px);
}

/* ===== TD Color Classes ===== */
td.sky      { background: #d3edf8; }
td.black    { background: #e6e6e6; }
td.green    { background: #CCFFCC; }
td.blue     { background: #ccccff; }
td.orange   { background: #ffedcc; }
td.orangeb  { background: #ffc966; }
td.purple   { background: #ffccff; }
td.yellow   { background: #ffff00; }
td.hostinger { background: #DBA6E2; }

/* ===== Dropdown (header) ===== */
.dropdown-toggle {
    background: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    margin-top: 4px;
    z-index: 1001;
    min-width: 200px;
    right: 0;
    border-radius: 3px;
    overflow: hidden;
}

.dropdown-content a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #eee;
}

.dropdown-content a:hover {
    background-color: #f5f5f5;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

/* ===== Edit Mode Button ===== */
.edit-mode-btn {
    cursor: pointer;
    position: absolute;
    left: 45%;
    background: none;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0px 8px;
}

.edit-mode .custom-tools-list a {
    cursor: pointer;
    position: relative;
    color: black;
}

.edit-mode .custom-tools-list a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-image: linear-gradient(90deg, transparent 25%, red 25%, red 50%, transparent 50%, transparent 75%, red 75%, red);
    background-size: 10px 2px;
    background-repeat: repeat-x;
}

.edit-mode .custom-tools-list a:hover {
    background: red;
    color: #fff;
}

/* ===== Simple Dropdown ===== */
.simple-dropdown {
    position: relative;
    display: inline-block;
}

.simple-dropdown .drop-btn {
    background: #d3edf8;
    color: #000;
    border: 0px solid transparent;
    cursor: pointer;
    display: inline-block;
}

.simple-dropdown .drop-content {
    position: absolute;
    top: 100%;
    left: -42;
    background: #d3edf8;
    border: 1px solid #ccc;
    min-width: 126px;
    display: none;
    z-index: 99999;
    margin-top: 6px;
}

.simple-dropdown .drop-content a {
    display: block;
    padding: 6px 9px;
    text-decoration: none;
    color: black;
    background: #d3edf8;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

.simple-dropdown .drop-content a:last-child {
    border-bottom: none;
}

.simple-dropdown .drop-content a:hover {
    background: #22a5dd;
}

.simple-dropdown input.drop-trigger {
    display: none;
}

.simple-dropdown input.drop-trigger:checked ~ .drop-content {
    display: block;
}

/* ===== Modal field spacing ===== */
.modal-field {
    margin-top: 10px;
}

.modal-field label {
    display: block;
    margin-bottom: 3px;
}

.modal-field input,
.modal-field textarea {
    width: 100%;
}

/* ===== Category radios grid ===== */
.category-radios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-top: 5px;
}

/* ===== Bookmark preview list ===== */
.bookmark-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 5px;
    align-items: center;
}

/* ===== Delete button ===== */
.delete-btn {
    background-color: #ff4444;
    color: white;
}
