
/* ---------------- General Popup ---------------- */

.popup {
	font-family: Roboto, sans-serif;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: white;
	width: 400px;
	border: 1px solid #ECECEC;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	z-index: 1000;
}

.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.3);
	z-index: 999;
}

.popup-header {
	width: 100%;
	text-align: center;
	/*font-weight: bold;*/
	font-size: 20px;
	padding-bottom: 20px;
}

.label-input-container {
	width: 100%;
	background-color: #F5F5F5;
}

.popup-label {
	font-size: 12px;
	color: #333;
	padding-left: 8px;
}

.popup-input {
	width: 390px;
	font-size: 18px;
	background-color: #F5F5F5;
	padding-top: 8px;
	padding-left: 8px;
	padding-bottom: 8px;
	border: none;
	border-bottom: 1px solid #777;
}

.popup-button-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding-top: 12px;
	background-color: white;	
}

.popup-btn {
	color: white;
	font-weight: bold;
	width: 72px;
	margin: 8px 2px;
	padding: 8px 10px 8px 10px;
	border: none;
	border-radius: 3px;
}

.popup-cancel-btn {
	background-color: #D73448;
}
.popup-cancel-btn:hover {
	background-color: #BB2D3B;
	cursor: pointer;
}

.popup-save-btn {
	background-color: #288755;
}
.popup-save-btn:hover {
	background-color: #157347;
	cursor: pointer;
}

.popup-cancel-reject-btn {
	background-color: #005EA2;
}
.popup-cancel-reject-btn:hover {
	background-color: #27447E;
	cursor: pointer;
}

.popup-reject-btn {
	background-color: #D73448;
}
.popup-reject-btn:hover {
	background-color: #BB2D3B;
	cursor: pointer;
}

.popup-accept-btn {
	background-color: #288755;
}
.popup-accept-btn:hover {
	background-color: #157347;
	cursor: pointer;
}

.popup-close-btn {
	background-color: #D73448;
}
.popup-close-btn:hover {
	background-color: #BB2D3B;
	cursor: pointer;
}

/* ---------------- General Toast Container ---------------- */

#toast-container {
    position: fixed;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toast {
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 14px;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.toast.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

/* ---------------- Artifact Details ---------------- */

#withdraw-cancel-btn {
	background-color: #005EA2;
}
#withdraw-cancel-btn:hover {
	background-color: #27447E;
	cursor: pointer;
}
#withdraw-confirm-btn {
	margin-left: auto;
	margin: 8px 2px;
	padding: 8px 10px 8px 10px;
	background-color: #D73448;
	color: white;
	font-weight: bold;
	border: none;
	border-radius: 3px;
	cursor: pointer;
}
#withdraw-confirm-btn:hover {
	background-color: #BB2D3B;
}

.vote-btn:hover {
	cursor: pointer;
}

.up-vote-btn {
    background-color: #288755;
}
.up-vote-btn:hover {
    background-color: #157347;
}

.down-vote-btn {
    background-color: #D73448;
}
.down-vote-btn:hover {
    background-color: #BB2D3B;
}

.rescind-vote-btn {
	width: 110px;
	margin-left: 100px;
    background-color: #005EA2;
}
.rescind-vote-btn:hover {
    background-color: #27447E;
}

button.vote-btn:disabled {
    opacity: 0.4;
	background-color: #CCC;
	color: #666;
    cursor: not-allowed;
}

.done-btn {
    background-color: #005EA2;
}
.done-btn:hover {
    background-color: #27447E;
	cursor: pointer;
}

.view-votes-popup {
	width: 800px;
	max-height: 600px;
}

/* ---------------- User Management ---------------- */

.modal.hidden { display:none; }
.modal {
    position:fixed;
    top:0; left:0;
    width:100%; height:100%;
    background:rgba(0,0,0,0.5);
}
.modal-content {
    background:#fff;
    padding:20px;
    width:400px;
    margin:100px auto;
    border-radius:8px;
}
.modal-actions {
    display:flex;
    justify-content:space-between;
    margin-top:20px;
}

/* toggles */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
/* hide default checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
/* slider background */
.slider {
    position: absolute;
    cursor: pointer;
    background-color: #ccc;
    border-radius: 24px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.3s;
}
/* knob */
.slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #444;   /* dark gray knob */
    border-radius: 50%;
    transition: 0.3s;
}
/* default off color */
.switch input + .slider {
    background-color: #CCC;
}
/* bulk upload green when on */
.bulk-toggle-row .switch input:checked + .slider {
    background-color: #288755;
}
/* suspended red when on */
.suspended-toggle-row .switch input:checked + .slider {
    background-color: #D73448;
}
/* move knob to right */
.switch input:checked + .slider::before {
    transform: translateX(26px);
}
.switch input:not(:checked) ~ span:first-child {
    font-weight: bold;
    color: #000;
}
.switch input:checked ~ span:last-child {
    font-weight: bold;
    color: #000;
}
.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
/* default */
.toggle-label {
    color: #777;
    transition: 0.2s;
}
/* OFF state → No is bold */
.toggle-row:has(input:not(:checked)) .toggle-no {
    font-weight: bold;
    color: #000;
}
/* ON state → Yes is bold */
.toggle-row:has(input:checked) .toggle-yes {
    font-weight: bold;
    color: #000;
}

.modal-submit-btn {
    background-color: #CCC;
}
.modal-submit-btn:enabled {
    background-color: #288755;
}
.modal-submit-btn:enabled:hover {
    background-color: #157347;
    cursor: pointer;
}
.modal-submit-btn:disabled {
    background-color: #CCC;
    cursor: not-allowed;
    opacity: 0.6;
}