/* =========================================================================
   ADMIN PANEL STYLES
   ========================================================================= */

/* Login Screen */
.login-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    z-index: 9999;
}

.login-box {
    background: #1a1a1a;
    border: 1px solid #c4975a;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    padding: 40px 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 30px rgba(196,151,90,0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.login-header h1 {
    font-family: 'Teko', sans-serif;
    font-size: 32px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #e8e8e8;
}

.login-header h1 span {
    color: #d93636;
}

.login-header p {
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #e8e8e8;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #c4975a;
    box-shadow: 0 0 0 2px rgba(196,151,90,0.15);
}

.login-error {
    padding: 10px 14px;
    background: rgba(217,54,54,0.12);
    border: 1px solid rgba(217,54,54,0.3);
    border-radius: 4px;
    color: #d93636;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #a07840, #c4975a);
    border: none;
    border-radius: 4px;
    color: #0a0a0a;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Teko', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(196,151,90,0.3);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.login-footer a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
}

.login-footer a:hover {
    color: #c4975a;
}

/* Admin Notification */
.admin-notification {
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-notification.success {
    background: rgba(46,170,64,0.12);
    border: 1px solid rgba(46,170,64,0.3);
    color: #2eaa40;
}

.admin-notification.error {
    background: rgba(217,54,54,0.12);
    border: 1px solid rgba(217,54,54,0.3);
    color: #d93636;
}

.admin-notification.info {
    background: rgba(58,143,212,0.12);
    border: 1px solid rgba(58,143,212,0.3);
    color: #3a8fd4;
}

/* Active tab button */
.header-link.tab-active {
    background: rgba(196,151,90,0.15) !important;
    border-color: #c4975a !important;
    color: #c4975a !important;
}

/* Admin action buttons */
.admin-actions-cell {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-admin-action {
    padding: 5px 10px;
    border: 1px solid;
    border-radius: 3px;
    font-size: 11px;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    background: transparent;
}

.btn-unban {
    border-color: rgba(46,170,64,0.4);
    color: #2eaa40;
}
.btn-unban:hover {
    background: rgba(46,170,64,0.15);
    box-shadow: 0 0 6px rgba(46,170,64,0.2);
}

.btn-edit {
    border-color: rgba(196,151,90,0.4);
    color: #c4975a;
}
.btn-edit:hover {
    background: rgba(196,151,90,0.15);
}

.btn-delete {
    border-color: rgba(217,54,54,0.4);
    color: #d93636;
}
.btn-delete:hover {
    background: rgba(217,54,54,0.15);
}

.btn-violations {
    border-color: rgba(58,143,212,0.4);
    color: #3a8fd4;
}
.btn-violations:hover {
    background: rgba(58,143,212,0.15);
}

/* Edit form */
.edit-form .form-group {
    margin-bottom: 16px;
}

.edit-form label {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.edit-form input,
.edit-form select,
.edit-form textarea {
    width: 100%;
    padding: 10px 12px;
    background: #1e1e1e;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #e8e8e8;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    outline: none;
}

.edit-form textarea {
    resize: vertical;
    min-height: 80px;
}

.edit-form input:focus,
.edit-form select:focus,
.edit-form textarea:focus {
    border-color: #c4975a;
}

.edit-form .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-save {
    padding: 10px 24px;
    background: linear-gradient(135deg, #a07840, #c4975a);
    border: none;
    border-radius: 4px;
    color: #0a0a0a;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-save:hover {
    box-shadow: 0 4px 12px rgba(196,151,90,0.3);
}

.btn-cancel {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    color: #999;
    font-size: 13px;
    cursor: pointer;
}

.btn-cancel:hover {
    border-color: #666;
    color: #e8e8e8;
}

/* Log items */
.log-line {
    padding: 6px 0;
    border-bottom: 1px solid #1e1e1e;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #999;
    word-break: break-all;
}

.log-line:last-child {
    border-bottom: none;
}

/* Player search results */
.player-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
}

.player-card h3 {
    color: #c4975a;
    font-family: 'Teko', sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.player-card .player-info-row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #999;
    margin-bottom: 8px;
}

.player-card .player-info-row strong {
    color: #e8e8e8;
}

/* Delete violation button in modal */
.btn-delete-violation {
    padding: 3px 8px;
    background: transparent;
    border: 1px solid rgba(217,54,54,0.3);
    border-radius: 3px;
    color: #d93636;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-delete-violation:hover {
    background: rgba(217,54,54,0.15);
}