* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #808080;
    color: #ffffff;
    font-family: Arial, sans-serif;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 24px;
}

.boards-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.board {
    background-color: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 8px;
    padding: 20px;
    min-width: 280px;
    max-width: 320px;
    flex: 1;
    position: relative;
}

/* Clear Screen Button */
.clear-screen-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: transparent;
    color: #666666;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 5;
}

.clear-screen-btn:hover {
    background-color: #333333;
    color: #ff6b6b;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333333;
}

.player-name-input {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    background-color: #2a2a2a;
    border: 1px solid #444444;
    border-radius: 4px;
    padding: 6px 10px;
    flex: 1;
    min-width: 0;
}

.player-name-input:focus {
    outline: none;
    border-color: #666666;
    background-color: #333333;
}

.role-input {
    font-size: 14px;
    color: #cccccc;
    background-color: #333333;
    border: 1px solid #444444;
    border-radius: 4px;
    padding: 4px 8px;
    min-width: 80px;
}

.role-input:focus {
    outline: none;
    border-color: #666666;
    background-color: #3a3a3a;
}

.board-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-size: 12px;
    color: #cccccc;
    text-transform: uppercase;
    font-weight: bold;
}

input[type="text"],
textarea {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #cccccc;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    width: 100%;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #666666;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

.email-subject {
    font-weight: 500;
}

.email-body-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.html-toggle-btn {
    background-color: #4a4a4a;
    color: #ffffff;
    border: 1px solid #666666;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.2s;
}

.html-toggle-btn:hover {
    background-color: #5a5a5a;
}

.html-toggle-btn.expanded {
    background-color: #6a6a6a;
}

.email-body-html {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #cccccc;
    border-radius: 4px;
    padding: 12px;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
    font-size: 14px;
    font-family: Arial, sans-serif;
    word-wrap: break-word;
}

.email-body-html:empty::before {
    content: "No email content";
    color: #999999;
    font-style: italic;
}

.email-body-raw {
    min-height: 100px;
    max-height: 300px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #444444;
}

.sms-message {
    min-height: 80px;
}

.phone {
    font-family: monospace;
}

.phone:not(:read-only) {
    background-color: #ffffff;
    color: #000000;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    color: #ffffff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    border: 2px solid #1a1a1a;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.5);
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notification-badge.visible {
    opacity: 1;
    transform: scale(1);
}

.notification-badge.pulse {
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(255, 71, 87, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 2px 16px rgba(255, 71, 87, 0.8);
        transform: scale(1.1);
    }
}

/* Activity Log */
.activity-log-container {
    margin-top: 30px;
    margin-bottom: 20px;
}

.activity-log-container h2 {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 10px;
    text-align: center;
}

.activity-log {
    background-color: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 8px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.log-entry {
    color: #ffffff;
    padding: 6px 0;
    border-bottom: 1px solid #333333;
    line-height: 1.4;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-empty {
    color: #888888;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

.log-entry.clickable {
    cursor: pointer;
    transition: background-color 0.2s, padding-left 0.2s;
}

.log-entry.clickable:hover {
    background-color: #2a2a2a;
    padding-left: 10px;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding: 10px;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 6px;
}

.pagination-btn {
    background-color: #4a4a4a;
    color: #ffffff;
    border: 1px solid #666666;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #5a5a5a;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    background-color: #2a2a2a;
    color: #666666;
    cursor: not-allowed;
    border-color: #444444;
}

.pagination-info {
    color: #cccccc;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

/* Editable title styles */
h1[contenteditable="true"] {
    outline: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
    padding-bottom: 5px;
}

h1[contenteditable="true"]:hover {
    border-bottom-color: #555555;
}

h1[contenteditable="true"]:focus {
    border-bottom-color: #00ff00;
}

.status {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    font-size: 14px;
}

#connection-status {
    padding: 8px 16px;
    border-radius: 4px;
    display: inline-block;
}

#connection-status.connected {
    background-color: #00ff00;
    color: #000000;
}

#connection-status.disconnected {
    background-color: #ff0000;
    color: #ffffff;
}

#connection-status.connecting {
    background-color: #ffaa00;
    color: #000000;
}

/* Responsive design */
@media (max-width: 1400px) {
    .boards-container {
        justify-content: flex-start;
    }
    
    .board {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .boards-container {
        flex-direction: column;
        align-items: center;
    }
    
    .board {
        width: 100%;
        max-width: 100%;
    }
}

