/* Enhanced styling matching v2.iplaylaserforce.com dk-blue theme */

body {
    background: #0B3E6F !important;
    color: white !important;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
}

#WidgetContainer {
    width: 1110px;
    margin: 0 auto;
    position: relative;
    padding-top: 10px;
}

#EntryArea {
    padding: 10px 0;
    position: relative;
}

#EntryArea input[type="text"] {
    background: #051F38;
    color: #FFF;
    border: 1px solid #1F4F7F;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 3px;
    outline: none;
}

#EntryArea input[type="text"]:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

#EntryArea button, .ipl-btn {
    background: #1F4F7F;
    color: white;
    border: 1px solid #336699;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
}

#EntryArea button:hover, .ipl-btn:hover {
    background: #2E6DA4;
    border-color: #4A90E2;
}

#EntryArea button:disabled {
    background: #112233;
    color: #556677;
    border-color: #223344;
    cursor: not-allowed;
}

.top-bar-controls {
    position: absolute;
    right: 0;
    top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.status-pill {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
}

.status-pill.public {
    background: #084B24;
    color: #44FF88;
    border: 1px solid #00AA44;
}

.status-pill.locked {
    background: #5A111A;
    color: #FFAAAA;
    border: 1px solid #AA2233;
}

/* Rank Movement Badges */
.rank-movement {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    font-family: monospace;
    padding: 1px 4px;
    border-radius: 2px;
    min-width: 48px;
    text-align: center;
}

.rank-up {
    color: #00FF88;
}

.rank-down {
    color: #FF5566;
}

.rank-same {
    color: #88AACC;
}

.rank-new {
    color: #FFCC00;
    font-weight: bold;
}

/* Tab 5: Podivné hry & Tab 6: Admin */
#anomalySelections, #adminSelections {
    padding: 6px 0 10px 0;
}

#anomalySelections label, #adminSelections label {
    font-weight: bold;
    color: white;
    font-size: 13px;
}

#anomalySelections select, #Selections select {
    background: #051F38;
    color: white;
    border: 1px solid #1F4F7F;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 13px;
}

.admin-card {
    background: #08294A;
    border: 1px solid #1F4F7F;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 14px;
}

.admin-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #FFCC00;
    font-size: 15px;
    border-bottom: 1px solid #1F4F7F;
    padding-bottom: 6px;
}

.admin-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #1A3047;
    transition: .3s;
    border-radius: 22px;
    border: 1px solid #336699;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #00AA44;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.admin-console {
    background: #030F1A;
    border: 1px solid #1A3047;
    border-radius: 3px;
    padding: 10px;
    font-family: monospace;
    font-size: 11px;
    color: #00FF88;
    height: 180px;
    overflow-y: auto;
    margin-top: 8px;
}

.admin-console div {
    margin-bottom: 3px;
    line-height: 1.3;
}

.admin-console .err { color: #FF5566; }
.admin-console .warn { color: #FFCC00; }
.admin-console .succ { color: #00FF88; }

/* Modal overlay */
.ipl-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.ipl-modal-overlay.active {
    display: flex;
}

.ipl-modal {
    background: #0B3E6F;
    border: 2px solid #1F4F7F;
    border-radius: 6px;
    padding: 24px;
    width: 380px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    color: white;
}

.ipl-modal h3 {
    margin-top: 0;
    color: #FFCC00;
    font-size: 18px;
    margin-bottom: 12px;
}

.ipl-modal .form-group {
    margin-bottom: 12px;
}

.ipl-modal label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 4px;
}

.ipl-modal input[type="text"],
.ipl-modal input[type="password"] {
    width: 100%;
    background: #051F38;
    border: 1px solid #1F4F7F;
    color: white;
    padding: 6px 8px;
    font-size: 14px;
    border-radius: 3px;
}

.ipl-modal-btns {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}
