/* Syphon Helpdesk - Modern Redesign (style.css) */
:root {
    --accent-primary-rgb: 14, 165, 233; /* RGB values for Sky Blue for use with alpha */
    /* Color Variables */
    --bg-dark: #111827;
    --bg-container: #1f2937;
    --bg-element: #374151;
    --bg-input: #2c3440;
    --accent-primary: #0ea5e9; /* Sky Blue */
    --accent-primary-hover: #0284c7; /* Darker Sky Blue */
    --accent-primary-shadow-color: rgba(14, 165, 233, 0.25); /* For focus rings etc. */
    --accent-primary-shadow-hover-color: rgba(2, 132, 199, 0.35);

    --accent-secondary: #4b5563; /* Gray */
    --accent-secondary-hover: #5b6675; /* Lighter/Darker Gray for hover */

    --text-primary: #f3f4f6; /* Lightest gray for main text */
    --text-secondary: #d1d5db; /* Slightly darker gray */
    --text-muted: #9ca3af;    /* Muted gray for less important text */

    --border-color: #374151; /* Border for containers and elements */

    --success-bg: #10b981;    /* Green */
    --success-text: #f0fdf4;   /* Very light green for text on success-bg */
    --error-bg: #dc2626;      /* Red (original accent red, now for errors) */
    --error-text: #fef2f2;    /* Very light red for text on error-bg */
    --warning-bg: #f59e0b;    /* Orange */
    --warning-text: #1f2937;  /* Dark text for contrast on orange bg */
    --info-bg: #3b82f6;       /* Blue */
    --info-text: #eff6ff;     /* Very light blue for text on info-bg */
    
    --link-unvisited: #63b3ed;
    --link-visited: #c4b5fd;
    --link-hover: #90cdf4;
    --link-active: #4299e1;
    
    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius: 0.375rem;
    --border-radius-lg: 0.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.25);
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    
    /* Transitions */
    --transition-fast: 150ms;
    --transition: all 0.3s ease;

    /* Status Indicators */
    --status-online: #28a745; /* Green */
    --status-offline: #dc3545; /* Red */

    /* Status Indicator Classes */
.status-online {
    color: var(--status-online);
    font-weight: bold;
}

.status-offline {
    color: var(--status-offline);
    font-weight: bold;
}

/* Message/Alert Specific Colors */
    --success-rgb: 16, 185, 129;
    --success-bg-soft: rgba(var(--success-rgb), 0.1);
    --success-text-strong: #047857;

    --error-rgb: 220, 38, 38;
    --error-bg-soft: rgba(var(--error-rgb), 0.1);
    --error-text-strong: #b91c1c; /* Darker red for better contrast on soft bg */

    --warning-rgb: 245, 158, 11;
    --warning-bg-soft: rgba(var(--warning-rgb), 0.1);
    --warning-text-strong: #b45309; /* Darker orange */

    --info-rgb: 59, 130, 246;
    --info-bg-soft: rgba(var(--info-rgb), 0.1);
    --info-text-strong: #1d4ed8; /* Darker blue */
    
    /* Admin Editor UI Elements */
    --admin-action-bg: rgba(14, 165, 233, 0.1);
    --admin-action-border: rgba(14, 165, 233, 0.3);
    --admin-action-hover-bg: rgba(14, 165, 233, 0.2);
    --admin-popup-bg: #2d3748;
    --admin-popup-border: #4a5568;
    --admin-popup-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    background-image: url('https://bugs.gemstonero.com/background.webp');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: var(--transition);
    min-height: 100vh;
}

/* Main Containers */
.container, .login-container, .dashboard-container, .admin-section, .player-section, .report-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
    background-color: var(--bg-container);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition), transform var(--transition);
    border: 1px solid var(--border-color);
}

/* Bug Descriptions */
.bug-description-wrapper {
    height: 100%;
    overflow-y: auto;
    max-height: 350px;
}

.bug-description {
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--bg-element);
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.container:hover, .login-container:hover, .dashboard-container:hover,
.admin-section:hover, .player-section:hover, .report-details-container:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Card-based layout */
.card {
    background-color: var(--bg-element);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Add a fancy accent to cards */
.card-accent {
    border-top: 4px solid var(--accent-primary);
}

.card-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(var(--accent-primary-rgb), 0.05);
    transition: height 0.3s ease;
}

.card-accent:hover::before {
    height: 100%;
}

/* Add a fancy top border for cards */
.card-accent {
    border-top: 4px solid var(--accent-primary);
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-primary);
    margin-bottom: 1em;
    font-weight: 600;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.5em;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 35px;
    text-align: center;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
}

h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-primary); }

.fw-bold { font-weight: 700; }
.fw-semibold { font-weight: 600; }
.fw-medium { font-weight: 500; }
.fw-normal { font-weight: 400; }

.fs-lg { font-size: 1.125rem; }
.fs-sm { font-size: 0.875rem; }
.fs-xs { font-size: 0.75rem; }

/* General Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-strong);
}

/* Admin Popup Menu */
.admin-popup {
    position: absolute;
    z-index: 100;
    background-color: var(--card-bg);
    border: 1px solid var(--admin-action-border);
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    padding: 1rem;
    min-width: 280px;
    max-width: 400px;
    display: none;
}

.admin-popup h4 {
    margin-top: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.admin-popup-closer {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    color: var(--text);
    font-size: 18px;
    line-height: 1;
}

.admin-popup-closer:hover {
    color: var(--text-strong);
}

.admin-popup form {
    margin-bottom: 0;
}

/* Admin Action Buttons */
.admin-action-btn {
    background-color: var(--admin-action-bg);
    border: 1px solid var(--admin-action-border);
    color: var(--info-text-strong);
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.admin-action-btn:hover {
    background-color: var(--admin-action-hover-bg);
}

.admin-action-icon {
    display: inline-block;
    margin-right: 4px;
    font-size: 0.8rem;
}

/* Admin Popup Menus */
.admin-popup {
    display: none;
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    max-width: 90%;
    background-color: var(--admin-popup-bg);
    border: 1px solid var(--admin-popup-border);
    border-radius: var(--border-radius);
    box-shadow: var(--admin-popup-shadow);
    z-index: 1101;
    padding: 1.5rem;
    transition: top 0.2s;
}

/* Overlay for popup focus */
.admin-popup-overlay {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
}
.admin-popup.show { display: block; }
.admin-popup-overlay.show { display: block; }

/* Feedback Message Styles */
.feedback-message {
    position: fixed;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    min-width: 340px;
    max-width: 90vw;
    padding: 1.1rem 2.5rem 1.1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    font-size: 1.08rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.28), 0 1.5px 8px rgba(14,165,233,0.09);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.25s, top 0.2s;
    pointer-events: auto;
}
.feedback-message:not(.show) { opacity: 0; pointer-events: none; }
.feedback-success { background: var(--success-bg); color: var(--success-text); border: 1.5px solid #19c37d; }
.feedback-error { background: var(--error-bg); color: var(--error-text); border: 1.5px solid #ff4d4f; }
.feedback-info { background: var(--info-bg); color: var(--info-text); border: 1.5px solid #60a5fa; }
.feedback-warning { background: var(--warning-bg); color: var(--warning-text); border: 1.5px solid #fbbf24; }
.feedback-close {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
    padding: 0 0.3rem;
    line-height: 1;
}
.feedback-close:hover { opacity: 1; }
.feedback-text { flex: 1; text-align: center; }

.admin-popup h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-primary);
    padding-right: 2rem;
}

.admin-popup-closer {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
}

.admin-popup-closer:hover {
    color: var(--text-primary);
}

/* Editable Field */
.editable-field {
    display: inline-block;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    position: relative;
}

.editable-field:hover {
    background-color: var(--admin-action-bg);
    cursor: pointer;
}

.editable-field:hover::after {
    content: '✏️';
    font-size: 0.7rem;
    position: relative;
    top: -1px;
    margin-left: 4px;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95em;
    transition: var(--transition);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    box-sizing: border-box;
    font-size: 1em;
    background-color: var(--bg-input);
    color: var(--text-primary);
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="email"]:hover,
input[type="url"]:hover,
select:hover,
textarea:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-primary-shadow-color);
    background-color: var(--bg-input);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 3rem;
}

input[type="file"] {
    padding: 10px;
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button {
    background-color: var(--bg-element);
    color: var(--text-primary);
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    margin-right: 12px;
    transition: var(--transition);
    cursor: pointer;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background-color: var(--accent-primary);
}

.button,
button,
input[type="submit"],
.btn {
    background-color: var(--accent-primary);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1em;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px var(--accent-primary-shadow-color);
    position: relative;
    overflow: hidden;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.btn:hover {
    background-color: var(--accent-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--accent-primary-shadow-hover-color);
}

.button:active,
button:active,
input[type="submit"]:active,
.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px var(--accent-primary-shadow-color);
}

.button-secondary,
.btn-secondary {
    background-color: var(--accent-secondary);
    color: var(--text-primary);
}

.button-secondary:hover,
.btn-secondary:hover {
    background-color: var(--accent-secondary-hover);
}

.button-success,
.btn-success {
    background-color: var(--success-bg);
    color: var(--success-text);
}

.button-warning,
.btn-warning {
    background-color: var(--warning-bg);
    color: var(--warning-text);
}

.button-danger,
.btn-danger {
    background-color: var(--error-bg);
    color: var(--error-text);
}

/* Primary button style */
.btn-primary {
    background-color: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-primary-hover);
}

/* Two-column form layout */
.form-row {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px; /* Space between columns */
    margin-bottom: 25px;
}

/* Alert messages */
.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
}

.alert strong {
    font-weight: 600;
    margin-right: 5px;
}

.alert-warning {
    background-color: var(--warning-bg-soft);
    border-color: var(--warning-bg);
    color: var(--warning-text-strong);
}

.form-column {
    flex: 1; /* Each column takes equal space */
    min-width: 250px; /* Minimum width before wrapping */
}

.form-column .form-group {
    margin-bottom: 0; /* Remove bottom margin from individual groups if they are inside a column */
}

/* Form Validation Styling */
.is-invalid {
    border-color: var(--error-bg) !important;
}

.invalid-feedback {
    color: var(--error-bg);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Buttons */
.btn, button, input[type="submit"] {
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast) ease;
    text-decoration: none;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}

.btn:focus,
button:focus,
input[type="submit"]:focus,
.button:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-primary-shadow-color);
}

/* Button Variants */
.btn-primary,
input[type="submit"],
.button {
    background-color: var(--accent-primary);
    color: white !important;
}

.btn-primary:hover,
input[type="submit"]:hover,
.button:hover {
    background-color: var(--accent-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(var(--accent-primary-rgb), 0.4);
}

.btn-secondary {
    background-color: var(--accent-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #5b6675;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background-color: var(--accent-primary);
    color: white;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 1.125rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg,
.btn-icon img {
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
}

.btn-icon-only {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 50%;
}

.button-group {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.btn-danger {
    background-color: var(--error-bg);
    color: white !important;
}

.btn-danger:hover {
    background-color: var(--error-text-strong);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(var(--error-rgb), 0.4);
}

/* Modern Alert Messages */
.alert-message {
    position: relative;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    border-left: 5px solid transparent;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-text);
    border-left: 4px solid var(--error-bg);
}

.error-message:before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23dc3545' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'></circle><line x1='12' y1='8' x2='12' y2='12'></line><line x1='12' y1='16' x2='12.01' y2='16'></line></svg>");
}

.success-message {
    background-color: var(--success-bg);
    color: var(--success-text);
    border-left-color: var(--success-bg);
}

.success-message:before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2328a745' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 11.08V12a10 10 0 1 1-5.93-9.14'></path><polyline points='22 4 12 14.01 9 11.01'></polyline></svg>");
}

.info-message {
    background-color: var(--info-bg);
    color: var(--info-text);
    border-left-color: var(--info-bg);
}

.info-message:before {
    content: 'ℹ';
    color: var(--info-text);
}

.warning-message {
    background-color: var(--warning-bg);
    color: var(--warning-text);
    border-color: var(--warning);
}

.warning-message:before {
    content: '!';
    color: var(--warning);
}

/* Header & Navigation */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background-color: var(--dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 30px;
}

.app-logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.app-logo img {
    height: 32px;
    margin-right: 10px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2em;
}

.user-details {
    text-align: right;
}

.user-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.user-role {
    font-size: 0.8em;
    color: var(--light-gray);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: inline-block;
    margin: 0 5px;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--link-hover);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active:after {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 3px;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
}

.logout-link {
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    text-decoration: none;
}

.logout-link:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Modern Table Styling */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    color: var(--text-primary);
    background: var(--bg-darker);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.data-table th,
.data-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table th {
    background-color: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table.hover-effect tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.table-responsive {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    position: relative;
}

/* Sort links styling */
.sort-link {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.sort-link:hover {
    color: var(--accent-primary);
}

.sort-indicator {
    display: inline-block;
    color: var(--accent-primary);
    font-weight: bold;
}

.bug-reports-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--bg-element);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 1.5rem 0;
}

.bug-reports-table thead {
    background-color: var(--bg-container);
    border-bottom: 2px solid var(--border-color);
}

.bug-reports-table th {
    padding: 1rem 0.75rem;
    font-weight: 600;
    text-align: left;
    color: var(--text-primary);
    text-transform: uppercase;
}

.bug-reports-table th a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.bug-reports-table th a:hover {
    color: var(--link-hover);
    text-decoration: none;
}

.bug-reports-table th a:active {
    color: var(--link-active);
}

/* Sort indicators */
.bug-reports-table th.sort-asc a::after,
.bug-reports-table th.sort-desc a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5rem;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.bug-reports-table th.sort-asc a::after {
    border-bottom: 5px solid var(--accent-primary);
}

.bug-reports-table th.sort-desc a::after {
    border-top: 5px solid var(--accent-primary);
}

.bug-reports-table tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.detail-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

/* Character Reset Panel */
#character-reset-panel h3 {
    color: var(--error-text-strong);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

#character-reset-panel h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--error-bg);
    border-radius: 2px;
    opacity: 0.7;
}

#character-reset-panel .text-muted {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.reset-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.reset-option {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, var(--bg-element), #2a3441);
    padding: 1.25rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.reset-option:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.reset-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--warning-bg), var(--error-bg));
}

.reset-option label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    text-transform: uppercase;
}

.reset-option input {
    margin-bottom: 1rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    text-align: center;
    transition: border-color 0.2s ease;
}

.reset-option input:focus {
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-primary-shadow-color);
}

.reset-btn {
    background: linear-gradient(to right, var(--warning-bg), #ed8936);
    color: var(--warning-text);
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.reset-btn:active {
    transform: translateY(0);
}

.reset-btn::before {
    content: '⟲';
    margin-right: 6px;
    font-size: 14px;
}

.char-reset-form .btn-danger {
    background: linear-gradient(to right, var(--error-bg), #e53e3e);
    color: var(--error-text);
    padding: 0.85rem 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.char-reset-form .btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.4);
}

.char-reset-form .btn-danger:active {
    transform: translateY(-1px);
}

.mt-3 {
    margin-top: 1.5rem;
}

.char-reset-form h4 {
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.bug-details-cards {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.bug-details-cards .card {
    height: 100%;
}

.bug-details-cards .card-bug-description {
    grid-column: 3;
    grid-row: 1;
}

.bug-details-cards .card-basic-info {
    grid-column: 1;
    grid-row: 1;
}

.bug-details-cards .card-reporter-info {
    grid-column: 2;
    grid-row: 1;
}

@media (max-width: 1200px) {
    .bug-details-cards {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .bug-details-cards .card-bug-description {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 768px) {
    .bug-details-cards {
        grid-template-columns: 1fr;
    }
    
    .bug-details-cards .card-basic-info,
    .bug-details-cards .card-reporter-info,
    .bug-details-cards .card-bug-description {
        grid-column: 1;
    }
    
    .bug-details-cards .card-basic-info {
        grid-row: 1;
    }
    
    .bug-details-cards .card-reporter-info {
        grid-row: 2;
    }
    
    .bug-details-cards .card-bug-description {
        grid-row: 3;
    }
}

.bug-reports-table tbody tr:hover {
    background-color: rgba(var(--accent-primary-rgb, 14, 165, 233), 0.1); /* Use RGB version of accent for alpha */
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.bug-reports-table td {
    padding: 1rem 0.75rem;
    color: var(--text-primary);
    vertical-align: middle;
}

/* Global link styling */
a {
    color: var(--link-unvisited);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:visited {
    color: var(--link-visited);
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

a:active {
    color: var(--link-active);
}

/* Attachment Grid Styling */
.attachments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin: 0.75rem 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding: 0 0.5rem;
}

.attachment-box {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-element);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.attachment-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.attachment-preview {
    height: 120px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.attachment-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.attachment-preview:hover img {
    transform: scale(1.05);
}

.non-image-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    color: var(--text-muted);
}

.attachment-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
}

.attachment-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
}

.attachment-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.attachment-download {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-primary);
    color: var(--text-primary) !important;
    padding: 0.4rem 0.75rem;
    border-radius: var(--border-radius-sm);
    margin-top: auto;
    font-weight: 500;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.attachment-download:hover {
    background-color: var(--accent-primary-hover);
    text-decoration: none !important;
}

.attachment-download .fas {
    margin-right: 0.5rem;
}

.file-input-help {
    display: block;
    margin-top: 0.3rem;
    color: var(--text-muted);
    font-style: italic;
}

/* File Upload Progress Bar */
.progress-bar-wrapper {
    width: 100%;
    height: 20px;
    background-color: var(--bg-darker);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2) inset;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%
    );
    background-size: 30px 30px;
    animation: progress-animation 1s linear infinite;
}

@keyframes progress-animation {
    0% { background-position: 0 0; }
    100% { background-position: 30px 0; }
}

.upload-progress-text {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.submit-disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.submit-loading {
    position: relative;
}

.submit-loading::after {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal Dialog Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--bg-element);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 550px;
    position: relative;
    border: 1px solid var(--border-color);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
}

.modal-header h3 i {
    margin-right: 0.5rem;
}

.close-modal {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
}

.close-modal:hover {
    color: var(--accent-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

/* Reward Tiers Styling */
.reward-tiers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.25rem 0;
}

.reward-tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-darker);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--accent-primary);
}

.reward-tier:nth-child(2) {
    border-left-color: #3182ce;
}

.reward-tier:nth-child(3) {
    border-left-color: #805ad5;
}

.reward-tier-info h4 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.reward-tier-info h4 i {
    color: gold;
    font-size: 0.875rem;
}

.tips-section {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

.tips-section h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.tips-section ul {
    margin: 0;
    padding-left: 1.5rem;
}

.tips-section li {
    margin-bottom: 0.5rem;
}

.tips-section li:last-child {
    margin-bottom: 0;
}

.bug-reports-table td a:hover {
    text-decoration: underline;
    color: var(--link-hover);
}

/* Status and Priority Styles */
.status-badge,
.priority-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    white-space: nowrap;
}

/* Status badges */
.status-badge.status-new {
    background-color: rgba(13, 110, 253, 0.15);
    color: #0d6efd;
}

.status-badge.status-in-progress {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.status-badge.status-closed {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.status-badge.status-rejected {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.status-badge.status-on-hold {
    background-color: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

/* Priority badges */
.priority-badge.priority-low {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.priority-badge.priority-medium {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.priority-badge.priority-high {
    background-color: rgba(255, 117, 24, 0.15);
    color: #ff7518;
}

.priority-badge.priority-critical {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

/* Status badges with modern design */
.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    min-width: 85px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: relative;
}

.status-badge:before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 5px;
    position: relative;
    top: -1px;
    animation: pulse 2s infinite;
}

.status-new { background-color: var(--info); color: white; }
.status-new:before { background-color: white; }

.status-investigating { background-color: var(--warning); color: #333; }
.status-investigating:before { background-color: #333; }

.status-need-info { background-color: var(--light-gray); color: #333; }
.status-need-info:before { background-color: #333; }

.status-fixed { background-color: var(--success); color: white; }
.status-fixed:before { background-color: white; }

.status-wont-fix { background-color: var(--danger); color: white; }
.status-wont-fix:before { background-color: white; }

.status-duplicate { background-color: var(--gray); color: white; }
.status-duplicate:before { background-color: white; }

.status-closed { background-color: #333; color: white; }
.status-closed:before { background-color: white; }

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

/* Modern Priority indicators */
.priority-indicator {
    display: flex;
    align-items: center;
}

.priority-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    z-index: 1;
}

.priority-critical .priority-dot { 
    background-color: #ff1744; 
    box-shadow: 0 0 12px rgba(255, 23, 68, 0.8); 
    animation: pulse-critical 1.5s infinite;
}

.priority-high .priority-dot { 
    background-color: #ff9100; 
    box-shadow: 0 0 6px rgba(255, 145, 0, 0.6);
}

.priority-medium .priority-dot { 
    background-color: #ffea00; 
    box-shadow: 0 0 4px rgba(255, 234, 0, 0.5);
}

.priority-low .priority-dot { 
    background-color: #00e676; 
    box-shadow: 0 0 4px rgba(0, 230, 118, 0.5);
}

@keyframes pulse-critical {
0% { box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.7); }
70% { box-shadow: 0 0 0 10px rgba(255, 23, 68, 0); }
100% { box-shadow: 0 0 0 0 rgba(255, 23, 68, 0); }
}

/* Bug detail cards */
.bug-card {
    background-color: rgba(255,255,255,0.03);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary);
    transition: var(--transition);
}

.bug-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background-color: rgba(255,255,255,0.05);
}

.bug-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.bug-card-title {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0;
}

.bug-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9em;
    color: var(--light-gray);
}

.bug-card-meta-item {
    display: flex;
    align-items: center;
}

.bug-card-meta-item:before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: var(--primary);
    margin-right: 8px;
    border-radius: 50%;
}

/* Card Components */
.card {
    background-color: rgba(17, 24, 39, 0.85); /* Semi-transparent dark background */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border-top: 3px solid var(--accent-primary);
    backdrop-filter: blur(5px);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-primary);
    position: relative;
    margin-top: 0;
    text-align: center;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-accent {
    border-top: 3px solid var(--accent-primary);
}

/* Card variations */
.card-compact .card-body {
    padding: 1rem;
}

.card-dark {
    background-color: var(--bg-darkest);
}

.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.card-simple {
    padding: 24px;
    transition: all 0.3s ease;
}

.card {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

/* Specific container adjustments */
.login-container {
    max-width: 450px;
    margin-top: 5rem; /* Adjust vertical position */
}

/* Panel Header Styling */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-element);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.panel-header h1 {
    font-size: 1.75rem; /* Smaller for header context */
    margin: 0;
    padding: 0;
    color: var(--accent-primary);
    letter-spacing: 0.5px;
    font-weight: 700;
}

.panel-header h1::after {
    display: none; /* Remove the underline from main h1 style */
}

.panel-header .welcome-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    background-color: rgba(var(--accent-primary-rgb), 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    border-left: 3px solid var(--accent-primary);
}

.panel-header nav {
    display: flex;
    gap: 0.75rem;
}

/* Enhance hover effects for navigation buttons */
.panel-header nav .btn {
    transform: translateY(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.panel-header nav .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header h3 {
    margin: 0;
    padding: 0;
    font-size: 1.2em;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
}

.panel-header .welcome-message {
    margin-bottom: 15px; /* Space below the welcome message */
    font-size: 0.95em;
    color: var(--text-muted);
    text-align: center; /* Center-align the text */
}

/* Dashboard layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Stats cards for dashboard */
.stat-card {
    display: flex;
    align-items: center;
    padding: 24px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    font-size: 22px;
}

.stat-card .stat-content {
    flex-grow: 1;
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-card .stat-label {
    color: var(--light-gray);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-total .stat-icon { background-color: rgba(23, 162, 184, 0.2); color: var(--info); }
.stat-new .stat-icon { background-color: rgba(255, 62, 62, 0.2); color: var(--primary); }
.stat-fixed .stat-icon { background-color: rgba(40, 167, 69, 0.2); color: var(--success); }
.stat-pending .stat-icon { background-color: rgba(255, 193, 7, 0.2); color: var(--warning); }

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
}

.header-bar .welcome-message {
    font-size: 1.1em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container, .login-container, .dashboard-container, .admin-section, .player-section, .report-details-container {
        width: 95%;
        padding: 20px;
        margin: 20px auto;
    }

    h1 {
        font-size: 1.8em;
    }

    input[type="submit"],
    button,
    .button {
        width: 100%;
        padding: 15px;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Report Details Specific */
.report-meta span {
    display: block;
    margin-bottom: 5px;
    color: #aaa;
}
.report-content, .comment-content {
    background-color: #3a3a3a;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    white-space: pre-wrap; /* Preserve formatting */
}

/* Modern Comments Section Modernization */

.bug-section-card {
    background: #232a36;
    border-radius: 16px;
    box-shadow: 0 2px 16px 0 rgba(36,49,81,0.10);
    padding: 2rem 2.5rem 1.5rem 2.5rem;
    margin-bottom: 32px;
    border: 1.5px solid #283347;
}
.section-title {
    font-size: 1.35em;
    font-weight: 700;
    color: #7dd3fc;
    margin-top: 0;
    margin-bottom: 1.2em;
    letter-spacing: 0.5px;
    text-align: left;
    border-left: 4px solid #38bdf8;
    padding-left: 14px;
}

.sort-toggle-group {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #232a36;
    border-radius: 8px;
    padding: 5px 12px;
    margin-bottom: 10px;
    box-shadow: 0 1px 6px 0 rgba(36,49,81,0.06);
}
.sort-toggle-btn {
    background: transparent;
    color: #7dd3fc;
    border: none;
    border-radius: 6px;
    padding: 7px 18px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    outline: none;
    border: 1.5px solid transparent;
}
.sort-toggle-btn:hover, .sort-toggle-btn:focus {
    background: #1e293b;
    color: #38bdf8;
    border: 1.5px solid #38bdf8;
}
.sort-toggle-btn.active {
    background: #2563eb;
    color: #fff;
    border: 1.5px solid #2563eb;
    box-shadow: 0 2px 8px 0 rgba(36, 49, 81, 0.11);
    cursor: default;
}

.comments-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.comments-section h3 {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.comments-section h3:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 3px;
    background-color: var(--primary);
    margin-right: 10px;
    border-radius: 2px;
}

.comment {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-left: 3px solid transparent;
    position: relative;
}

.comment:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.comment-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    position: relative;
    gap: 15px;
}

.comment-author {
    flex: 0 0 auto;
}

.comment-time {
    flex: 1;
    text-align: left;
    padding-right: 25px; /* Make room for the trash icon */
}

.comment-delete-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--error-bg);
    font-size: 0.85rem;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.comment-delete-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    color: var(--error-text-strong);
}

.comment-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.comment-author {
    font-weight: 600;
    color: var(--light);
    display: flex;
    align-items: center;
}

.comment-author:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    margin-right: 8px;
    border-radius: 50%;
}

.comment-date {
    font-size: 0.85em;
    color: var(--text-muted);
}

.comment-text {
    font-size: 0.95em;
    line-height: 1.6;
    white-space: pre-wrap;
    padding: 5px 0;
    font-family: 'Poppins', sans-serif;
    color: var(--light);
}

.add-comment-form textarea {
    min-height: 120px;
    resize: vertical;
    margin-bottom: 15px;
}

/* Login page styling */
.login-container {
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    padding: 2rem;
    background-color: var(--bg-container);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.login-logo {
    max-width: 200px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
}
