/**
 * Ship Communication UI Styles
 */

.ship-communication-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);

.ship-communication-modal.hidden {
    display: none;

.ship-communication-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #00d4ff;
    border-radius: 12px;
    padding: 24px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.3);
    position: relative;

.ship-communication-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #00d4ff;

.ship-communication-header h2 {
    margin: 0;
    color: #00d4ff;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);

.ship-communication-header .close-btn {
    background: transparent;
    border: 2px solid #00d4ff;
    color: #00d4ff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;

.ship-communication-header .close-btn:hover {
    background: #00d4ff;
    color: #1a1a2e;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.7);

.ship-communication-body {
    display: flex;
    flex-direction: column;
    gap: 20px;

.target-ship-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    border-radius: 8px;
    padding: 15px;

.target-ship-info h3 {
    margin: 0 0 10px 0;
    color: #00d4ff;
    font-size: 20px;

.target-ship-info p {
    margin: 5px 0;
    color: #e0e0e0;
    font-size: 14px;

.disposition-friendly {
    color: #4caf50 !important;

.disposition-neutral {
    color: #ffc107 !important;

.disposition-hostile {
    color: #f44336 !important;

.disposition-authority {
    color: #2196f3 !important;

.disposition-pirate {
    color: #ff5722 !important;

.communication-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;

.comm-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    border: 2px solid #00d4ff;
    border-radius: 8px;
    color: #00d4ff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;

.comm-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);

.comm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;

.hail-btn {
    border-color: #4caf50;
    color: #4caf50;

.hail-btn:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);

.negotiate-btn {
    border-color: #ffc107;
    color: #ffc107;

.negotiate-btn:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);

.threat-btn {
    border-color: #f44336;
    color: #f44336;

.threat-btn:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.5);

.communication-log {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #00d4ff;
    border-radius: 8px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;

.communication-log h4 {
    margin: 0 0 15px 0;
    color: #00d4ff;
    font-size: 18px;

.log-entries {
    display: flex;
    flex-direction: column;
    gap: 10px;

.log-entry {
    background: rgba(0, 212, 255, 0.05);
    border-left: 3px solid #00d4ff;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;

.log-entry.log-hail {
    border-left-color: #4caf50;

.log-entry.log-negotiate {
    border-left-color: #ffc107;

.log-entry.log-threat {
    border-left-color: #f44336;

.log-entry.log-error {
    border-left-color: #f44336;
    background: rgba(244, 67, 54, 0.1);

.log-entry.log-warning {
    border-left-color: #ff9800;
    background: rgba(255, 152, 0, 0.1);

.log-message {
    color: #e0e0e0;
    margin-bottom: 8px;

.log-message strong {
    color: #00d4ff;

.log-response {
    color: #b0b0b0;
    margin-bottom: 5px;
    font-style: italic;

.log-response strong {
    color: #00d4ff;

.log-time {
    color: #888;
    font-size: 12px;
    margin-top: 5px;

.negotiation-panel,
.threat-panel {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid #00d4ff;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;

.negotiation-panel.hidden,
.threat-panel.hidden {
    display: none;

.negotiation-panel h4,
.threat-panel h4 {
    margin: 0 0 10px 0;
    color: #00d4ff;
    font-size: 18px;

.negotiation-panel select,
.negotiation-panel input,
.negotiation-panel textarea,
.threat-panel select,
.threat-panel textarea {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00d4ff;
    border-radius: 4px;
    padding: 10px;
    color: #e0e0e0;
    font-size: 14px;
    font-family: inherit;

.negotiation-panel select:focus,
.negotiation-panel input:focus,
.negotiation-panel textarea:focus,
.threat-panel select:focus,
.threat-panel textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);

.negotiation-panel textarea,
.threat-panel textarea {
    min-height: 80px;
    resize: vertical;

.negotiation-panel button,
.threat-panel button {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
    border: 2px solid #00d4ff;
    border-radius: 8px;
    color: #00d4ff;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;

.negotiation-panel button:hover,
.threat-panel button:hover {
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);

/* Scrollbar styling */
.communication-log::-webkit-scrollbar,
.ship-communication-content::-webkit-scrollbar {
    width: 8px;

.communication-log::-webkit-scrollbar-track,
.ship-communication-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;

.communication-log::-webkit-scrollbar-thumb,
.ship-communication-content::-webkit-scrollbar-thumb {
    background: #00d4ff;
    border-radius: 4px;

.communication-log::-webkit-scrollbar-thumb:hover,
.ship-communication-content::-webkit-scrollbar-thumb:hover {
    background: #00b8e6;

}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}