/* ===============================
   BUTTONS
=============================== */
button {
    padding:10px 14px;
    border:none;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
}

button.add {
    margin-left: 15px;
    Margin-bottom: 10px;
    background:var(--primary);
    color: white;
}

button.add:hover {
    margin-left: 15px;
    Margin-bottom: 10px;
    background:var(--secondary);
    color: var(--white);
}

button.edit {
    background:var(--hippo);
    color: var(--white);
}

button.edit:hover {
    background:var(--secondary);
    color: var(--hippo);
}

button.delete {
    background:var(--alert);
    color: var(--white);
}

button.delete:hover {
    background:var(--secondary);
    color: var(--alert);
}

button.save {
    background:var(--primary);
    color: var(--white);
}

/* ===============================
   UNDO BAR
================================ */
.undo-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: var(--white);
    padding: .6rem 1rem;
    border-radius: 20px;
    display: flex;
    gap: .8rem;
    align-items: center;
    z-index: 10001;
}
.undo-bar.hidden { display: none; }
.undo-bar button {
    background: var(--hippo);
    border: none;
    border-radius: 12px;
    padding: .2rem .6rem;
    cursor: pointer;
}

/* ===============================
   BLUE ?
=============================== */

.job-help {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--secondary);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.job-help:hover {
    background: var(--secondary);
    color: var(--white);
}

/* ===============================
   Recycle Bin
=============================== */
/* Sticky trash button */
#recycleBinBtn {
    position: flex;
    width: 52px;
    height: 52px;
    background: var(--alert);
    color: var(--white);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1000;
}

#recycleBinBtn:hover {
    background: #c0392b;
    transform: scale(1.08);
}

/* Modal sizing */
#recycleBinModal .modal-content {
    width: 80%;
    max-width: 95%;
    display: flex;
    flex-direction: column;
}

/* Scrollable content area */
#recycleBinContent {
    margin-top: 10px;
    overflow-y: auto;
    max-height: 55vh;
    padding-right: 4px;
}

/* Buttons */
#recycleBinModal .modal-actions {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===============================
   MOBILE RECYCLE BIN
=============================== */

@media (max-width:768px){

    #recycleBinModal .modal-content {
        width: 100%;
        max-width: 100%;
        height: 80vh;
        border-radius: 20px 20px 0 0;
        padding: 20px;
    }

    #recycleBinContent {
        flex: 1;
        overflow-y: auto;
        max-height: none;
    }

    #recycleBinModal h3 {
        text-align: center;
        margin-bottom: 10px;
    }

    #recycleBinModal button {
        padding: 12px 16px;
        font-size: 1rem;
    }

    #recycleBinContent table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#recycleBinContent th,
#recycleBinContent td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

.recycle-table-wrap {
    width: 100%;
    overflow-x: auto;
}

#recycleBinContent table{
    font-size:12px;
}

#recycleBinContent th,
#recycleBinContent td{
    padding:6px;
}
}

/* ===============================
   MOBILE RECYCLE BIN
=============================== */

@media (max-width:768px){

    #recycleBinModal .modal-content {
        width: 100%;
        max-width: 100%;
        height: 80vh;
        border-radius: 20px 20px 0 0;
        padding: 20px;
    }

    #recycleBinContent {
        flex: 1;
        overflow-y: auto;
        max-height: none;
    }

    #recycleBinModal h3 {
        text-align: center;
        margin-bottom: 10px;
    }

    #recycleBinModal button {
        padding: 20px 16px;
        font-size: 1rem;
    }

    #recycleBinContent table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#recycleBinContent th,
#recycleBinContent td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

.recycle-table-wrap {
    width: 100%;
    overflow-x: auto;
}

#recycleBinContent table{
    font-size:12px;
}

#recycleBinContent th,
#recycleBinContent td{
    padding:6px;
}
}

/* ===============================
   FILTER BUTTONS
=============================== */
.filter-but a {
    text-decoration:none;
    color:#2c3e50;
    padding:20px 12px;
    border-radius:6px;
    font-weight:500;
    transition:all 0.2s ease;
}

.filter-but a:hover {
    background:#eef6ff;
    color:#3498db;
}

/* ===============================
   DELETE BUTTONS
=============================== */
#job-card td .delete-btn {
    background: var(--alert) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
}

.delete-btn {
    background: var(--alert);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.delete-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.delete-btn:active {
    transform: scale(0.95);
}