/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: auto;
    min-width: 1200px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: white;
    min-height: 100vh;
    min-width: 1200px;
}

.container {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 2rem 0;
    backdrop-filter: blur(10px);
    position: relative;
}

/* Corner Logos */
.corner-logo {
    position: absolute;
    top: 20px;
    height: 80px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.corner-logo:hover {
    opacity: 1;
}

.corner-logo-left {
    left: 20px;
}

.corner-logo-right {
    right: 20px;
}

.header h1 {
    font-size: 2.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-item {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 120px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #cc5200;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #cccccc;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filters */
.filters {
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Stats and Search Row */
.stats-and-search {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.stats-and-search .stat-item {
    background: rgba(204, 82, 0, 0.1);
    border: 1px solid #cc5200;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.stats-and-search .stat-item:hover {
    transform: translateY(-2px);
    background: rgba(204, 82, 0, 0.2);
}

.stats-and-search .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #cc5200;
    margin-bottom: 0.3rem;
}

.stats-and-search .stat-label {
    color: #cccccc;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #cccccc;
}

.search-box input {
    width: 100%;
    padding: 12px 45px;
    border: 2px solid #555;
    border-radius: 8px;
    font-size: 1rem;
    background: #1a1a1a;
    color: #f0f0f0;
    transition: border-color 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #cc5200;
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.add-scrim-btn {
    background: #cc5200;
    color: #f0f0f0;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-scrim-btn:hover {
    background: #994000;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #555;
    background: #1a1a1a;
    color: #cccccc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #cc5200;
    color: #f0f0f0;
    border-color: #cc5200;
}

/* Clanwar Grid */
.clanwar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.clanwar-card {
    background: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}


.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #cc5200 0%, #994000 100%);
    color: #f0f0f0;
}

.card-match {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.7rem;
    text-align: center;
    line-height: 1.2;
}

.card-date {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.8rem;
    text-align: center;
    font-style: italic;
}

.card-score {
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    padding: 0.5rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.score-win {
    background: rgba(0, 0, 0, 0.3) !important;
}

.score-loss {
    background: rgba(0, 0, 0, 0.3) !important;
}

.score-draw {
    background: rgba(0, 0, 0, 0.3) !important;
}

.card-body {
    padding: 1.5rem;
    color: #f0f0f0;
}

.card-info {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-weight: 600;
    color: #cccccc;
}

.info-value {
    color: #f0f0f0;
}

.card-screenshots {
    margin-top: 1rem;
}

.screenshots-label {
    font-weight: 600;
    color: #cccccc;
    margin-bottom: 0.5rem;
    display: block;
}

.screenshot-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
}

.screenshot-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 2px solid transparent;
}

.screenshot-thumb:hover {
    transform: scale(1.05);
    border-color: #cc5200;
}

.screenshot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* More screenshots overlay */
.more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 6px;
    transition: background 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.screenshot-thumb.more-screenshots:hover .more-overlay {
    background: rgba(204, 82, 0, 0.9);
}

/* Ensure the more-screenshots thumbnail is properly clickable */
.screenshot-thumb.more-screenshots {
    cursor: pointer;
}


.no-screenshots {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 1rem;
    background: #1a1a1a;
    border-radius: 6px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 10px;
    width: 98%;
    max-width: 1600px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    max-width: 93%;
    max-height: 87vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.modal-image:hover {
    transform: scale(1.02);
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close:hover {
    opacity: 0.7;
}

/* Modal Image Container */
.modal-image-container {
    position: relative;
    cursor: pointer;
}

.fullsize-hint {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1002;
}

.modal-image-container:hover .fullsize-hint {
    opacity: 1;
}

.fullsize-hint i {
    margin-right: 6px;
}

/* Modal Navigation */
.modal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    padding: 0 20px;
    z-index: 1001;
}

.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-center {
    justify-content: center;
}

.nav-right {
    justify-content: flex-end;
}

#prev-btn, #next-btn {
    background: rgba(0, 0, 0, 0.8);
    border: none;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    min-width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#prev-btn:hover, #next-btn:hover {
    background: rgba(204, 82, 0, 0.9);
    transform: scale(1.1);
}

#prev-btn:disabled, #next-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

#image-counter {
    color: white;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.8);
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
}

#fullsize-link {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fullsize-link:hover {
    background: rgba(52, 152, 219, 0.9);
    transform: scale(1.05);
}


/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: white;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
}


/* Hide content initially */
.main {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main.loaded {
    opacity: 1;
}

/* Game type badges */
.game-badge {
    display: inline-block;
    background: #cc5200;
    color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}



/* Add Scrim Form */
.form-modal {
    max-width: 600px;
    padding: 2rem;
}

.form-modal h2 {
    color: #f0f0f0;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #cccccc;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input {
    padding: 10px;
    border: 2px solid #555;
    border-radius: 6px;
    background: #1a1a1a;
    color: #f0f0f0;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #cc5200;
}

.form-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #555;
}

.btn-cancel {
    background: #555;
    color: #f0f0f0;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-cancel:hover {
    background: #666;
}

.btn-submit {
    background: #cc5200;
    color: #f0f0f0;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #994000;
}


/* File Upload Styles */
.form-group.full-width {
    grid-column: 1 / -1;
}

.file-upload-area {
    position: relative;
    border: 2px dashed #666;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #cc5200;
    background: rgba(204, 82, 0, 0.1);
}

.file-upload-area.dragover {
    border-color: #cc5200;
    background: rgba(204, 82, 0, 0.2);
    transform: scale(1.02);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-prompt i {
    font-size: 2rem;
    color: #cc5200;
    margin-bottom: 0.5rem;
}

.upload-prompt p {
    margin: 0.5rem 0;
    color: #ffffff;
    font-weight: 500;
}

.upload-prompt small {
    color: #cccccc;
}

.file-preview {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.file-preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.file-preview-item:hover {
    border-color: #cc5200;
    transform: translateY(-2px);
}

.file-preview-image {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px 6px 0 0;
}

.file-preview-name {
    padding: 8px;
    font-size: 12px;
    color: #ffffff;
    text-align: center;
    word-break: break-word;
    background: rgba(0, 0, 0, 0.7);
}

.file-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.file-remove-btn:hover {
    background: #e74c3c;
    opacity: 1;
    transform: scale(1.1);
}




/* Delete Button Styles */
.delete-scrim-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(231, 76, 60, 0.85);
    color: white;
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0.7;
    visibility: visible;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    backdrop-filter: blur(4px);
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Ensure the card has relative positioning for absolute delete button */
.clanwar-card {
    position: relative;
}

.clanwar-card:hover .delete-scrim-btn {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    animation: delete-pulse 2s ease-in-out infinite;
}

.delete-scrim-btn:hover {
    background: rgba(192, 57, 43, 0.95);
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 6px 16px rgba(192, 57, 43, 0.5);
    animation: none;
}

.delete-scrim-btn:active {
    transform: translateY(0) scale(0.98);
    transition: all 0.1s ease;
    animation: none;
}


/* Add a subtle pulsing animation for better visibility */
@keyframes delete-pulse {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    }
    50% { 
        box-shadow: 0 2px 8px rgba(231, 76, 60, 0.5);
    }
}

/* Confirmation Modal Styles */
.confirmation-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.confirmation-modal-content {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: white;
}

.confirmation-modal h3 {
    margin-top: 0;
    color: #e74c3c;
    font-size: 1.5rem;
}

.confirmation-modal p {
    margin: 1.5rem 0;
    color: #ecf0f1;
}

.confirmation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.confirmation-buttons button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.confirm-delete {
    background: #e74c3c;
    color: white;
}

.confirm-delete:hover {
    background: #c0392b;
}

.cancel-delete {
    background: #95a5a6;
    color: white;
}

.cancel-delete:hover {
    background: #7f8c8d;
}

/* Admin Login Styles */
.admin-login-btn, .admin-logout-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.admin-login-btn:hover, .admin-logout-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f618d 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.admin-logout-btn {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
}

.admin-logout-btn:hover {
    background: linear-gradient(135deg, #d35400 0%, #a04000 100%);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.3);
}

.admin-login-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 0.75rem;
    border-radius: 6px;
    margin: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Admin status indicator */
.admin-status {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(46, 204, 113, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1000;
    backdrop-filter: blur(4px);
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 120px;
}

.admin-status.show {
    display: flex;
}

.admin-status .admin-logs-btn {
    background: rgba(52, 152, 219, 0.9);
    border: none;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}

.admin-status .admin-logs-btn:hover {
    background: rgba(41, 128, 185, 1);
    transform: translateY(-1px);
}

/* Hide delete buttons for non-admin users */
.delete-scrim-btn.admin-only {
    display: none;
}

.admin-logged-in .delete-scrim-btn.admin-only {
    display: flex;
}


/* Admin Logs Modal Styles */
.logs-modal {
    width: 95%;
    max-width: 900px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.logs-controls {
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.logs-filters {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.logs-search-input, .logs-filter-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
}

.logs-search-input {
    min-width: 200px;
    flex: 1;
}

.logs-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.logs-filter-select {
    min-width: 150px;
}

.logs-filter-select option {
    background: #2c3e50;
    color: white;
}

.btn-refresh {
    background: rgba(46, 204, 113, 0.9);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-refresh:hover {
    background: rgba(39, 174, 96, 1);
    transform: translateY(-1px);
}

.logs-container {
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    padding: 1rem;
}

.logs-loading {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem;
}

.log-entry {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.log-entry:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.log-action {
    font-weight: 600;
    color: #3498db;
}

.log-timestamp {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.log-details {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0.25rem 0;
}

.log-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.5rem;
}

.log-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Log action type colors */
.log-entry[data-action="LOGIN"] .log-action {
    color: #2ecc71;
}

.log-entry[data-action="LOGOUT"] .log-action {
    color: #e67e22;
}

.log-entry[data-action="LOGIN_FAILED"] .log-action {
    color: #e74c3c;
}

.log-entry[data-action*="DELETE"] .log-action {
    color: #e74c3c;
}

.log-entry[data-action*="ADD"] .log-action {
    color: #27ae60;
}

.log-entry[data-action*="UPLOAD"] .log-action {
    color: #3498db;
}

.log-entry[data-action*="SAVE"] .log-action {
    color: #9b59b6;
}

/* Empty state */
.logs-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem;
}

.logs-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}


/* Admin Authentication Styles */
.admin-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-login-btn {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-login-btn:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    transform: translateY(-1px);
}

.admin-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(204, 82, 0, 0.1);
    border: 1px solid #cc5200;
    border-radius: 6px;
    padding: 8px 12px;
}

.admin-welcome {
    color: #cc5200;
    font-weight: 500;
    font-size: 14px;
}

.admin-logout-btn {
    background: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-logout-btn:hover {
    background: #e74c3c;
    color: white;
}

/* Error Message */
.error-message {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
}

/* Delete Button for Scrim Cards */
.delete-scrim-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    opacity: 0.7;
    z-index: 2;
}

.delete-scrim-btn:hover {
    background: #e74c3c;
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

.clanwar-card {
    position: relative;
}

.card-header {
    position: relative;
}


/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1rem;
    flex-wrap: wrap;
}

.pagination-btn {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
}

.pagination-nav {
    background: rgba(204, 82, 0, 0.9);
    color: white;
    width: 50px;
}

.pagination-nav:hover:not(:disabled) {
    background: rgba(204, 82, 0, 1);
    transform: translateY(-1px);
}

.pagination-nav:disabled {
    background: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
    transform: none;
}

.pagination-number {
    background: rgba(255, 255, 255, 0.05);
    color: #cccccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pagination-number:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(204, 82, 0, 0.5);
}

.pagination-number.active {
    background: rgba(204, 82, 0, 0.9);
    color: white;
    border-color: rgba(204, 82, 0, 1);
    font-weight: 600;
}

.pagination-number:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: #666;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.05);
}