/* css/global.css */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P:wght@400;700&family=VT323:wght@400;700&display=swap');

:root {
  /* Define global colors based on the theme */
  --primary: #fa6800;     /* Main interactive color */
  --secondary: #D2691E;  /* Secondary interactive color */
  --accent: #FFD700;      /* Highlights, focus rings */
  --success: #2ecc71;      /* Success messages, confirmation */
  --warning: #f1c40f;      /* Warnings, alerts */
  --error: #e74c3c;        /* Errors, danger actions */
  --info: #17a2b8;         /* Informational messages, links */

  /* Define base theme colors */
  --bg-color: #F5F5DC;          /* Page background - beige */
  --surface-color: #F8F6E9;     /* Panel/Card background - light beige */
  --text-color: #2d3b2f;         /* Main text color - dark green */
  --border-color: #C8B88A;      /* Borders for panels/cards - tan */
  --shadow-color: #B09B6A;      /* Solid shadow effect - brown */
}


/* -----TYPE------- */
body {
    font-family: 'VT323', 'Courier New', Courier, monospace;
    color: var(--text-color);
    background-color: var(--bg-color);
}

h1, h2, h3, h4 {
  font-family: 'Press Start 2P', monospace;
  color: var(--primary);
  text-shadow: 1px 1px 0px #000000;
  margin: 0 0 20px 0;
}

h1 {
  font-size: 2.8em;

  color: #00ddfa;}

h2 {
    font-size: 1.8em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

h3 {
    font-size: 1.4em;
}


/* -----PANELS------- */
/* A generic container for a major section of a page */
.panel {
    background: rgba(248, 246, 233, 0.95); /* Semi-transparent version of surface-color */
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 24px;
    box-shadow: 6px 6px 0 var(--shadow-color);
    backdrop-filter: blur(5px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel:hover {
    transform: translateY(-2px);
    box-shadow: 8px 8px 0 var(--shadow-color);
}


/* -----CARDS------- */
/* For smaller, repeatable items within a panel or grid */
.card {
    background: rgba(248, 246, 233, 0.95);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 4px 4px 0 var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 var(--shadow-color);
}


/* -----MODALS------- */
/* The full-screen overlay for the modal */
.modal-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 126, 108, 0.8);
    backdrop-filter: blur(3px);
}

/* The modal window itself */
.modal-content {
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    margin: 5% auto;
    padding: 25px;
    border-radius: 10px;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 8px 8px 0 var(--shadow-color);
}

/* The close button (X) for the modal */
.modal-close {
    color: var(--primary);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: var(--primary);
    opacity: 1;
    transform: scale(1.1);
}

/* Loot distribution controls */
.loot-distribution-controls {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
}

.loot-distribution-controls .btn {
    font-size: 16px;
    padding: 12px 24px;
}

.loot-distribution-notice {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background-color: var(--surface-color);
    border: 2px solid var(--warning-color);
    border-radius: 8px;
    color: var(--warning-color);
}

.success-message {
    color: var(--success-color);
    font-weight: bold;
    margin: 0;
}


/* -----INPUTS & CONTROLS------- */
/* Base button style */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: 'VT323', 'Courier New', Courier, monospace;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
}

/* Button variations */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary {
    background-color: var(--surface-color);
    border-color: var(--border-color);
    color: var(--text-color);
}
.btn-secondary:hover {
    background-color: var(--border-color);
    border-color: var(--shadow-color);
}

.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
}
.btn-info:hover {
    background-color: #138496;
    border-color: #117a8b;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}
.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}
.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Generic form input and select styling */
.form-control {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(248, 246, 233, 0.95);
    color: var(--text-color);
    font-family: 'VT323', 'Courier New', Courier, monospace;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

/* Notification System Styles */
.notifications-container {
    position: relative;
    margin-right: 15px;
}

.notification-bell {
    position: relative;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.notification-bell:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--error);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.notifications-dropdown {
    position: fixed;
    top: 60px; /* Position below header */
    right: 20px; /* Position from right edge of viewport */
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.notifications-header {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.close-button {
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

.close-button:hover {
    background: #da190b;
}

.notifications-header h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 16px;
}

.notifications-header button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.notifications-header button:hover {
    background: var(--secondary);
}

.notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(200, 184, 138, 0.3);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.notification-item:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.notification-item.unread {
    background-color: rgba(255, 215, 0, 0.1);
    font-weight: bold;
}

.notification-item.read {
    opacity: 0.7;
}

.notification-title {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 4px;
    font-size: 14px;
}

.notification-message {
    color: var(--text-color);
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.notification-time {
    color: #666;
    font-size: 11px;
}

/* Notification action buttons */
.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

.btn-accept, .btn-deny {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-accept {
    background-color: #4CAF50;
    color: white;
}

.btn-accept:hover {
    background-color: #45a049;
    transform: translateY(-1px);
}

.btn-deny {
    background-color: #f44336;
    color: white;
}

.btn-deny:hover {
    background-color: #da190b;
    transform: translateY(-1px);
}

.btn-accept:active, .btn-deny:active {
    transform: translateY(0);
}

/* Last updated: 2025-10-18 18:47:00 */
