* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f59e0b;
    --dark: #1f2937;
    --light: #f8fafc;
    --gray: #6b7280;
    --success: #10b981;
    --danger: #ef4444;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e6e6e6;
    line-height: 1.6;
    min-height: 100vh;
}

.centerText {
    display: flex;
    justify-content: center;
    align-items: center;
  
}
/* Navigation */
.navbar {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #334155;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #f8c630;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: #e6e6e6;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f8c630;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #e6e6e6;
}

/* Fix Logout Button Styles */
.logout-btn {
    background: none;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer !important;
    font-size: 0.8rem;
    transition: all 0.3s;
    pointer-events: auto !important;
    position: relative;
    z-index: 1001 !important;
}

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

/* Ensure the user-info container doesn't block clicks */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #e6e6e6;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}

/* Make sure nav-links container allows clicks */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1000;
    pointer-events: auto;
}

/* Debug styles to check if button is visible and clickable */
.logout-btn::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(0, 255, 0, 0.5);
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
}

/* Remove this after debugging */
.logout-btn:hover::after {
    opacity: 1;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #2d0c53 0%, #16213e 100%);
    border-radius: 15px;
    margin-bottom: 3rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #f8c630;
    text-shadow: 0 0 20px rgba(248, 198, 48, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #d97706 100%);
    color: var(--dark);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-block {
    width: 100%;
    display: block;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: rgba(30, 41, 59, 0.8);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #334155;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #f8c630;
    margin-bottom: 1rem;
}

/* Authentication */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem;
}

.auth-card {
    background: rgba(30, 41, 59, 0.9);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #334155;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.auth-card h1 {
    color: #f8c630;
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e6e6e6;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #0f172a;
    color: #e6e6e6;
    font-size: 1rem;
}

.auth-form input:focus {
    outline: none;
    border-color: #f8c630;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
}

.auth-links a {
    color: #f8c630;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

.message {
    padding: 0.75rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
}

.message.success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #10b981;
}

.message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
}

.message.hidden {
    display: none;
}

/* Dashboard */
.dashboard-header {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(135deg, #2d0c53 0%, #16213e 100%);
    border-radius: 15px;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: #f8c630;
    margin-bottom: 0.5rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.dashboard-content h2 {
    color: #f8c630;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #334155;
    padding-bottom: 0.5rem;
}

/* Campaigns Grid */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.campaign-card {
    background: rgba(30, 41, 59, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #334155;
    transition: all 0.3s;
}

.campaign-card:hover {
    border-color: #f8c630;
    transform: translateY(-2px);
}

.campaign-card h3 {
    color: #f8c630;
    margin-bottom: 1rem;
}

.campaign-player, .campaign-style, .campaign-location, .campaign-level, .campaign-updated {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.campaign-actions {
    margin-top: 1rem;
}

.no-campaigns {
    text-align: center;
    padding: 3rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 10px;
    border: 2px dashed #334155;
}

/* Campaign Chat */
.campaign-container {
    display: flex;
    flex-direction: column;
    height: 80vh;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 15px;
    border: 1px solid #334155;
    overflow: hidden;
}

.campaign-info {
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.9);
    border-bottom: 1px solid #334155;
}

.campaign-info h1 {
    color: #f8c630;
    margin-bottom: 0.5rem;
}

.game-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat {
    background: rgba(248, 198, 48, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #f8c630;
    color: #f8c630;
    font-size: 0.9rem;
}

.statButton{
    cursor: pointer; 
    background: rgba(248, 198, 48, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #f8c630;
    color: #f8c630;
    font-size: 0.9rem;
}

.chat-container {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    padding: 1rem;
    border-radius: 10px;
    max-width: 80%;
    animation: fadeIn 0.3s ease-in;
}

.player-message {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.dm-message {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border-left: 4px solid #f8c630;
}

.message-sender {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.player-message .message-sender {
    color: #93c5fd;
}

.dm-message .message-sender {
    color: #f8c630;
}

.message-content {
    line-height: 1.5;
}

.message-time {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 0.5rem;
    text-align: right;
}

.input-container {
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.9);
    border-top: 1px solid #334155;
    display: flex;
    gap: 1rem;
}

#message-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #1e293b;
    color: #e6e6e6;
    font-size: 1rem;
}

#message-input:focus {
    outline: none;
    border-color: #f8c630;
}

.typing-indicator {
    padding: 1rem 1.5rem;
    color: #f8c630;
    font-style: italic;
    display: none;
}

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

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1e293b;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #334155;
    width: 90%;
    max-width: 500px;
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #e6e6e6;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #0f172a;
    color: #e6e6e6;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #f8c630;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Add these styles to your existing style.css file */

/* Character Creation Styles */
.character-creation-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.character-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .character-form {
        grid-template-columns: 1fr;
    }
}

.form-section {
    background: rgba(30, 41, 59, 0.8);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #334155;
}

.form-section h2 {
    color: #f8c630;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #334155;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #e6e6e6;
    font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #0f172a;
    color: #e6e6e6;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.character-button-group {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.character-preview {
    grid-column: 1 / -1;
    background: rgba(30, 41, 59, 0.8);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #334155;
    margin-top: 20px;
}

.preview-content {
    white-space: pre-wrap;
    font-family: monospace;
    background: #0f172a;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #334155;
    max-height: 400px;
    overflow-y: auto;
}

.required::after {
    content: " *";
    color: #ef4444;
}

.character-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.stat-input {
    text-align: center;
}

.stat-input label {
    font-size: 0.9rem;
}

.stat-input input {
    text-align: center;
    font-weight: bold;
}

/* Character creation specific button styles */
.btn-character {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 1rem;
}

.btn-character-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-character-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.btn-character-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #d97706 100%);
    color: var(--dark);
}

.btn-character-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}
/* Character Selection Styles */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.character-card {
    background: rgba(30, 41, 59, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #334155;
    transition: all 0.3s;
}

.character-card:hover {
    border-color: #f8c630;
    transform: translateY(-2px);
}

.character-card h3 {
    color: #f8c630;
    margin-bottom: 1rem;
}

.character-preview-text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    max-height: 100px;
    overflow: hidden;
}

.character-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.character-divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.character-divider hr {
    border: none;
    border-top: 1px solid #334155;
    margin: 1rem 0;
}

.character-divider span {
    background: rgba(30, 41, 59, 0.9);
    padding: 0 1rem;
    color: #f8c630;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
}

/* Character Creation Button Styles */
.character-button-group {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    border: 1px solid #334155;
    flex-wrap: wrap;
}

.character-button-group .btn-character {
    margin: 5px;
}

/* Ensure buttons have proper styling */
.btn-character {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 1rem;
    min-width: 120px;
}

.btn-character-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-character-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.btn-character-secondary {
    background: linear-gradient(135deg, var(--secondary) 0%, #d97706 100%);
    color: var(--dark);
}

.btn-character-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.4);
}

.btn-character:not(.btn-character-primary):not(.btn-character-secondary) {
    background: rgba(30, 41, 59, 0.9);
    color: #e6e6e6;
    border: 1px solid #334155;
}

.btn-character:not(.btn-character-primary):not(.btn-character-secondary):hover {
    background: rgba(30, 41, 59, 1);
    border-color: #f8c630;
    color: #f8c630;
}

/* Disabled state */
.btn-character:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Make sure the Back to Dashboard button has proper styling */
.character-button-group a.btn-character {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Character Creation Button Styles */
.character-button-group .btn-character[type="reset"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
}

.character-button-group .btn-character[type="reset"]:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.character-button-group .btn-character[href="/dashboard.php"] {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.character-button-group .btn-character[href="/dashboard.php"]:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* Ensure consistent button sizing */
.character-button-group .btn-character {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 1rem;
    min-width: 120px;
}

/* Make sure the reset and dashboard buttons have proper spacing */
.character-button-group {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    border: 1px solid #334155;
    flex-wrap: wrap;
}

.character-button-group .btn-character {
    margin: 5px;
}

/* Character Creation Page Specific Styles */
.character-creation-container .character-button-group .btn-character[type="reset"] {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
}

.character-creation-container .character-button-group .btn-character[type="reset"]:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.character-creation-container .character-button-group .btn-character[href="/dashboard.php"] {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.character-creation-container .character-button-group .btn-character[href="/dashboard.php"]:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* Character Stats Alignment */
.character-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
    align-items: start;
}

.stat-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-input label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f8c630;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-input input {
    width: 80px;
    padding: 10px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #0f172a;
    color: #e6e6e6;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
}

.stat-input input:focus {
    outline: none;
    border-color: #f8c630;
    box-shadow: 0 0 0 2px rgba(248, 198, 48, 0.2);
}

.stat-input input:hover {
    border-color: #f8c630;
}

/* Responsive design for ability scores */
@media (max-width: 768px) {
    .character-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-input input {
        width: 70px;
        font-size: 1rem;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .character-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-input {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    
    .stat-input label {
        margin-bottom: 0;
        margin-right: 15px;
        flex: 1;
    }
    
    .stat-input input {
        width: 70px;
        flex-shrink: 0;
    }
}
/*here*/
/* Visual enhancements for ability scores */
.stat-input {
    position: relative;
}

.stat-input::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f8c630, transparent);
    opacity: 0.7;
}

.stat-input input {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid #475569;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-input input:focus {
    border-color: #f8c630;
    box-shadow: 0 0 0 3px rgba(248, 198, 48, 0.1), 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Points System Styles */
.points-system {
    background: rgba(15, 23, 42, 0.8);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #334155;
    margin-bottom: 20px;
    text-align: center;
}

.points-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.points-label {
    color: #e6e6e6;
    font-weight: 600;
}

.points-value {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    min-width: 40px;
    display: inline-block;
}

.points-help {
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Stat Controls */
.stat-controls {
    display: flex;
    gap: 5px;
    margin-top: 8px;
    justify-content: center;
}

.stat-controls button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 4px;
    background: #374151;
    color: #e6e6e6;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-controls button:hover:not(:disabled) {
    background: #4b5563;
    transform: scale(1.1);
}

.stat-controls button:active:not(:disabled) {
    transform: scale(0.95);
}

.stat-controls button:disabled {
    background: #1f2937;
    color: #6b7280;
    cursor: not-allowed;
    transform: none;
}

.stat-increase {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.stat-increase:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.stat-decrease {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.stat-decrease:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
}

/* Update stat input styles for the new system */
.stat-input input {
    width: 80px;
    padding: 10px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #0f172a;
    color: #e6e6e6;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
}

.stat-input input:focus {
    outline: none;
    border-color: #f8c630;
    box-shadow: 0 0 0 2px rgba(248, 198, 48, 0.2);
}

/* Responsive design for points system */
@media (max-width: 480px) {
    .points-display {
        flex-direction: column;
        gap: 5px;
    }
    
    .stat-controls {
        margin-top: 5px;
    }
    
    .stat-controls button {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
}

/* Remove number input arrows */
.stat-input input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.stat-input input[type="number"]::-webkit-outer-spin-button,
.stat-input input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Ensure the input styling remains consistent */
.stat-input input {
    width: 80px;
    padding: 10px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #0f172a;
    color: #e6e6e6;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
}

.stat-input input:focus {
    outline: none;
    border-color: #f8c630;
    box-shadow: 0 0 0 2px rgba(248, 198, 48, 0.2);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .stat-input input {
        width: 70px;
        font-size: 1rem;
        padding: 8px;
    }
}

/* Disabled button styles */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Message styles for character requirement */
.message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

.message.error a {
    color: #f8c630;
    text-decoration: underline;
    font-weight: 600;
}

.message.error a:hover {
    color: #f59e0b;
}

/* Campaign Actions Improvements */
.campaign-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.campaign-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

/* Campaign card delete state */
.campaign-card[style*="opacity: 0.5"] {
    transition: opacity 0.3s ease;
}

/* Responsive campaign actions */
@media (max-width: 480px) {
    .campaign-actions {
        flex-direction: column;
    }
    
    .campaign-actions .btn {
        min-width: auto;
    }
}
/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .dashboard-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .message {
        max-width: 95%;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

/* Dice Roller Styles */
.dice-roller-card {
    position: sticky;
    top: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 1px solid #475569;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: white;
}

.dice-roller-card h3 {
    margin-top: 0;
    text-align: center;
    color: #f8c630;
    border-bottom: 2px solid #475569;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.dice-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.dice-btn, .quick-roll-btn, #custom-roll-btn {
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: inherit;
}

.dice-btn {
    padding: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border: 1px solid #3b82f6;
}

.quick-roll-btn {
    padding: 8px 12px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    border: 1px solid #8b5cf6;
    font-size: 14px;
}

#custom-roll-btn {
    padding: 10px 16px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: 1px solid #10b981;
}

.dice-btn:hover, .quick-roll-btn:hover, #custom-roll-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

#custom-roll-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #475569;
    border-radius: 6px;
    background: #1e293b;
    color: white;
    font-size: 14px;
    font-family: inherit;
}

#custom-roll-input::placeholder {
    color: #64748b;
}

#custom-roll-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.roll-results {
    margin-top: 15px;
}

#roll-result {
    background: #0f172a;
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 15px;
    min-height: 60px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: #f8c630;
    display: flex;
    align-items: center;
    justify-content: center;
}

#roll-details {
    margin-top: 10px;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
    min-height: 16px;
}

.roll-history {
    margin-top: 15px;
}

#roll-history-list {
    max-height: 120px;
    overflow-y: auto;
    font-size: 12px;
    color: #cbd5e1;
}

#roll-history-list::-webkit-scrollbar {
    width: 6px;
}

#roll-history-list::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 3px;
}

#roll-history-list::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

#roll-history-list::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

#clear-history {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    font-family: inherit;
}

#clear-history:hover {
    color: #dc2626;
}

/* Dice Roll Animation */
@keyframes diceRoll {
    0% { 
        transform: scale(1) rotate(0deg); 
    }
    50% { 
        transform: scale(1.1) rotate(180deg); 
    }
    100% { 
        transform: scale(1) rotate(360deg); 
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .dice-roller-sidebar {
        width: 100%;
        margin-top: 20px;
    }
    
    .dice-buttons {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .quick-roll-buttons {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Map Styles */
.map-section {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.map-container {
    background: #111827;
    border: 2px solid #4b5563;
    border-radius: 4px;
    padding: 20px;
    overflow: auto;
}

.map-grid {
    display: grid;
    gap: 1px;
    background: #374151;
    border: 1px solid #374151;
    margin: 0 auto;
    width: fit-content;
}

.map-cell {
    width: 30px;
    height: 30px;
    background: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px;
    color: #d1d5db;
    border: 1px solid #374151;
    cursor: default;
    user-select: none;
}

.map-cell:hover {
    background: #374151;
    transform: scale(1.1);
    z-index: 1;
    position: relative;
}

.map-cell-feature {
    background: #4b5563 !important;
}

/* Terrain Types */
.map-cell-floor {
    background: #1f2937;
    color: #6b7280;
}

.map-cell-wall {
    background: #4b5563 !important;
    color: #d1d5db;
}

.map-cell-water {
    background: #1e40af !important;
    color: #bfdbfe;
}

.map-cell-door {
    background: #92400e !important;
    color: #fde68a;
}

.map-cell-object {
    background: #065f46 !important;
    color: #a7f3d0;
}

.map-cell-character {
    background: #7c2d12 !important;
    color: #fed7aa;
}

.map-cell-player {
    background: #1e3a8a !important;
    color: #93c5fd;
    animation: pulse 2s infinite;
}

.map-cell-enemy {
    background: #7f1d1d !important;
    color: #fca5a5;
}

.map-cell-chest {
    background: #854d0e !important;
    color: #fef08a;
}

.map-legend {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Map Controls */
.map-controls {
    background: #374151;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
}

#location-description {
    background: #1f2937;
    border: 1px solid #4b5563;
    color: white;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

#location-description:focus {
    outline: none;
    border-color: #f8c630;
}

/* Responsive Design */
@media (max-width: 768px) {
    .map-grid {
        gap: 0.5px;
    }
    
    .map-cell {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .map-container {
        padding: 10px;
    }
}

/* Tab Styles */
.tools-tabs {
    display: flex;
    border-bottom: 2px solid #475569;
    margin-bottom: 20px;
}

.tool-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    color: #cbd5e1;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tool-tab:hover {
    color: #f8c630;
    background: rgba(248, 198, 48, 0.1);
}

.tool-tab.active {
    color: #f8c630;
    border-bottom-color: #f8c630;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Adjust map cell size for sidebar */
.map-cell {
    width: 25px;
    height: 25px;
    font-size: 12px;
}

/* Make sure the sidebar has enough height */
.game-tools-sidebar {
    width: 350px;
    flex-shrink: 0;
    max-height: 80vh;
    overflow-y: auto;
}

.tools-card {
    position: sticky;
    top: 20px;
}