/* Tournament Admin Panel Specific Styles */

body {
    /* Ensure body allows scrolling if content exceeds viewport */
    overflow-y: auto;
    padding-bottom: 80px; /* Space for back button */
}

.container {
    max-width: 800px; /* Wider container for admin panel */
}

.header h1 {
    font-size: 20px; /* Slightly smaller header */
}

.admin-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-section h2 {
    /* Use main font, bold */
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 18px; /* Slightly larger for Arial */
    margin-top: 0;
    margin-bottom: 20px;
    color: #3390ec;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

/* Form Styles */
#tournamentForm label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

#tournamentForm input[type="text"],
#tournamentForm input[type="datetime-local"],
#tournamentForm textarea {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit; /* Use body font */
}

#tournamentForm textarea {
    resize: vertical;
}

#tournamentForm button {
    margin-top: 20px;
    margin-right: 10px;
    opacity: 1; /* Override default button opacity if needed */
}

/* Tournament List Styles */
.tournament-list {
    margin-top: 20px;
}

.list-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.list-item div:first-child {
    flex-grow: 1;
    margin-right: 15px;
}

.list-item strong {
    font-size: 15px;
    color: #eee;
}

.list-item small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    display: block; /* Ensure they stack */
    line-height: 1.4;
}

.item-actions button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 5px;
    transition: background-color 0.2s;
}

.item-actions button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.item-actions button:last-child {
    background: rgba(255, 80, 80, 0.2);
    border-color: rgba(255, 80, 80, 0.3);
}

.item-actions button:last-child:hover {
    background: rgba(255, 80, 80, 0.4);
}

/* Back button */
.back-button-container {
    margin-top: 40px;
}

/* Message Modal Styles (Ensure they are present or copy from styles.css if needed) */
.message-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.message-modal-content {
    background: rgba(0, 0, 0, 0.9);
    padding: 25px;
    border-radius: 16px;
    width: 90%;
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.message-modal-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.message-modal-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    background: #3390ec;
    color: white;
}

/* Error message specific to admin */
.error {
     text-align: center;
     font-size: 16px;
     padding: 40px 20px;
     color: #ff6b6b; /* Use error color */
     /* Use main font */
     font-family: 'Arial', sans-serif;
     font-weight: bold; /* Make error message bold */
}

/* Styles for deleted tournaments - REMOVED */

/* Remove rules for .list-item-deleted, .deletion-marker, .deletion-info, .view-deleted-container */ 