@charset "utf-8";

/* Pagination (bbs_list.jsp, list.jsp) */
.page-item.active .page-link {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}
.page-link {
    color: #495057;
}

/* Search Input (list.jsp) */
#findkw {
    box-shadow: none;
    border: 1px solid #ced4da;
    transition: none;
}
#findkw:focus {
    border-color: #ced4da !important;
    border-right-color: #586674 !important;
    background-color: #fcfcfc;
}

/* Highlight (list.jsp, view.jsp) */
.highlight {
    background-color: #ffe566;
    padding: 0 2px;
}

/* Admin Floating Badge (list.jsp) - Nested Pill Design */
.selection-badge { 
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); 
    background-color: #2d3436; color: white; 
    padding: 4px 6px 4px 16px; 
    border-radius: 50px; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.2); 
    z-index: 1050; 
    display: flex; align-items: center; gap: 10px; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 98vw; 
    flex-wrap: nowrap; 
    justify-content: center;
    animation: badgeSlideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes badgeSlideUp { 0% { opacity: 0; transform: translateX(-50%) translateY(30px); } 100% { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes badgeSlideDown { 0% { opacity: 1; transform: translateX(-50%) translateY(0); } 100% { opacity: 0; transform: translateX(-50%) translateY(30px); } }
.selection-badge.slide-down { animation: badgeSlideDown 0.3s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards; }

.selection-status { font-size: 0.95rem; font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.selection-actions {
    background-color: #e9ecef; color: #2d3436; border-radius: 40px; padding: 4px 12px;
    display: flex; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.selection-actions::-webkit-scrollbar { display: none; }
.selection-actions .btn-link { color: #2d3436 !important; }
.selection-actions .btn-link.text-danger { color: #dc3545 !important; }
.selection-actions .btn-link:hover { color: #0d6efd !important; }
.selection-actions .vr { height: 12px; align-self: center; }

.btn-close-badge {
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; flex-shrink: 0; margin-left: 2px;
}
.btn-close-badge:hover { background: rgba(255,255,255,0.25); transform: rotate(90deg); color: #fff; }

@media (max-width: 576px) {
    .selection-badge { bottom: 20px; padding: 8px 10px; border-radius: 20px; gap: 6px; flex-wrap: wrap; }
    .selection-actions { width: 100%; justify-content: center; order: 3; margin-top: 2px; }
    .selection-status { order: 1; flex-grow: 1; text-align: left; padding-left: 5px; }
    .btn-close-badge { order: 2; }
}

.transition-width { transition: all 0.3s ease-in-out; }
.transition-all { transition: all 0.3s ease-in-out; }

/* Checkbox Selected Row */
.table-active-custom, .table-active-custom > td, .table-active-custom > th {
    background-color: #e8f0fe !important;
}

/* View Page Input Clear Button (view.jsp) */
.input-clear-btn {
    cursor: pointer;
}
.input-group > .form-control:not(:last-child) {
    border-right: 0;
}
.input-group > .input-clear-btn {
    border-left: 0;
    background-color: white;
}
.form-control:focus + .input-clear-btn {
    border-color: #86b7fe;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

/* Board View Settings (bbs_view.jsp) */
#bs_bdtitle_limit, #bs_viewcnt, #bs_newcnt, #bs_filenum, #bs_filemax, #bs_filemax_reply{ width:60px; }

@media screen and (min-width: 900px) {
    #bs_name { width:50%; }
    .settings_table thead th { 
        width:15%; 
        text-align:left; 
        padding:0.7rem; 
        vertical-align:middle;
    }
    .settings_table thead td { 
        width:35%; 
        padding:0.7rem; 
        background-color:white; 
        vertical-align:middle; 
    }
    .settings_table input { padding-left:5px; padding-top: 5px;}
}

@media screen and (max-width: 900px) {
    #bs_bdtitle_recovermt{
        padding: 1;
    }
    #bs_bdtitle_limit, #bs_viewcnt, #bs_newcnt, #bs_filenum, #bs_filemax, #bs_filemax_reply{ width:40px; text-align:left;}
    .settings_table thead th { 
        width:20%; 
        padding:0.5rem; 
        text-align:left; 
        vertical-align:middle;
    }
    .settings_table thead td { 
        padding:0.5rem; 
        text-align:left; 
        background-color:white;  
        vertical-align:middle;
    }
    .settings_table th, .settings_table td{ 
        padding-top:5px; 
        padding-bottom:5px; 
    }
    #bd_table input::placeholder{
        color: #cccccc !important;
        font-style: italic;
        font-size: 10px;
        text-align:start;
        padding-left:0;
    }
    .bs_tbnm{
        width:20%;
    }
}

/* Reply (reply.jsp) */
#replySaveBtn:hover .material-icons {
    color: var(--bs-white) !important;
}
.disabled-btn {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Pin Modal (pin.jsp) - Scoped to #id01 to avoid Bootstrap conflict */
#id01 .imgcontainer {
    text-align: center;
    margin: 24px 0 12px 0;
    position: relative;
}
#id01 .container {
    padding: 16px;
}
#id01 span.psw {
    float: right;
    padding-top: 16px;
}
#id01.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}
#id01 .modal-content {
    background-color: #fefefe;
    margin: 5% auto 15% auto;
    border: 1px solid #888;
    width: 80%;
}
#id01 .close {
    position: absolute;
    right: 25px;
    top: 0;
    color: #000;
    font-size: 35px;
    font-weight: bold;
}
#id01 .close:hover,
#id01 .close:focus {
    color: red;
    cursor: pointer;
}
#id01 .animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s
}
@-webkit-keyframes animatezoom {
    from {-webkit-transform: scale(0)} 
    to {-webkit-transform: scale(1)}
}
@keyframes animatezoom {
    from {transform: scale(0)} 
    to {transform: scale(1)}
}
