.config-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.config-container {
    
    background: radial-gradient(circle at center, #3d0a0a 0%, #1a0505 100%);

    position: relative;
    
    border: 4px solid #EFD461; 
    border-radius: 20px;

    width: 90%;
    max-width: 1100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    pointer-events: auto;
}

.config-header {
    text-align: center;
    position: relative;
    margin-top: 2rem;
}

.config-title {

   background: linear-gradient(
        to bottom, 
        #F9E598 0%,
        #FDFBC5 50%,
        #D8A13E 80%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Georgia', serif;
    font-size: 190%;
    font-weight: 900;
    letter-spacing: 1px;
    filter: drop-shadow(2px 3px 2px rgba(0, 0, 0, 0.8));
}

.config-grid {
    padding: 0 1rem 0 1rem;
}

.config-grid.row {
    margin: 0; 
    width: 100%;
}

.section-title {
    font-family: 'Georgia', serif;
    color: #FDFCBA;
    font-size: 1.3rem;
    padding-top: 1.5rem;
    padding-bottom: 8px;
    text-align: left;
    margin-bottom: 1rem;
}

.setting-item-inline {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.gold-text-left {
    color: #F4E0A1;
    font-size: 14px;
    font-weight: 600;
    min-width: 120px;
    text-align: left;
    margin: 0;
}

.flex-grow-input {
    flex: 1;
}

.entry-list {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 12px;
}

.entry-list::-webkit-scrollbar {
    width: 6px;
}

.entry-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.entry-list::-webkit-scrollbar-thumb {
    background: #EFD461;
    border-radius: 10px;
}

.gold-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #734B00;
    border-radius: 8px;
    color: #F4E0A1;
    padding: 10px 15px;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
}

.gold-input:focus {
    border-color: #EFD461;
    box-shadow: 0 0 10px rgba(239, 212, 97, 0.3);
}

.gold-input::placeholder {
    color: #B3A15C;
}

.gold-input::-webkit-input-placeholder {
    color: #B3A15C;
}

.gold-input:-moz-placeholder {
    color: #B3A15C;
}

.delete-btn {
    background: #c0392b;
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: 0.2s;
}

.delete-btn:hover {
    background: #e74c3c;
    transform: scale(1.1);
}

.config-footer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.btn-add-entry {
    background: linear-gradient(to bottom, #5FC54F 0%, #16950C 60%, #5FC54F 100%);
    border: 3px solid #E9C47B;
    border-radius: 20px;
    color: white;
    padding: 12px 50px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.2s;
}

.btn-save-config {
    background: linear-gradient(to bottom, #5FC54F 0%, #16950C 60%, #5FC54F 100%);
    border: 3px solid #E9C47B;
    border-radius: 20px;
    color: white;
    padding: 12px 50px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.2s;
}

.btn-cancel-config {
    background: linear-gradient(to bottom, #C45749 0%, #911311 60%, #C45749 100%);
    border: 3px solid #E9C47B;
    border-radius: 20px;
    color: white;
    padding: 12px 50px;
    border-radius: 50px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s;
}

.configuration-close {
    position: absolute;
    top: 2%;
    right: 2%;
    background: none;
    border: none;
    color: #F4E0A1;
    font-size: 28px;
    cursor: pointer;
}

.entry-card {
    border-radius: 8px;
    padding: 1rem;
    border: 2px solid #95795C;
}

.weight-control-group {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #734B00;
    border-radius: 8px;
    color: #F4E0A1;
    width: 100%;
    outline: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 4px 10px;
    width: 100%;
}

.weight-value-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.weight-control-group:focus-within {
    border-color: #EFD461;
    box-shadow: 0 0 10px rgba(239, 212, 97, 0.3);
}

.weight-btn {
    background: transparent;
    border: none;
    color: #B3A15C;
    font-size: 20px;
    padding: 0 8px;
    cursor: pointer;
}

.weight-btn:hover {
    color: #EFD461;
}

.weight-value-input {
    background: transparent;
    border: none;
    color: #F4E0A1;
    width: 30px;
    text-align: center;
    font-weight: bold;
    width: 100%;
}

.weight-value-input::-webkit-outer-spin-button,
.weight-value-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.weight-value-input[type=number] {
  -moz-appearance: textfield;
}

.delete-x-btn {
    background: transparent;
    border: none;
    color:#B3A15C;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    padding: 0;
}

.drag-controls {
    min-width: 25px;
    height: 100%;
}

.btn-entry-updown {
    background: transparent;
    border: none;
    padding: 2px;
}

.btn-entry-updown i {
    color: #B3A15C;
    font-size: 16px;
    font-weight: bold;
}

.btn-upload-prize-img {
    background: transparent;
    border: 0px;
}

.weight-control-group i,
.btn-upload-prize-img i {
    color: #B3A15C;
    font-size: 16px;
}