

.dcdu-screen {
    background-color: #000;
    width: calc(100% - 3px);
    padding: 5px;
    display: inline-block;
 /*   font-family: 'Courier New', Courier, monospace; */
    font-family: B612;
    margin-bottom: 5px;
   
}

.header {
    display: flex;
    justify-content: space-between;
    color: #0f0;
    font-size: 12px;
    margin-bottom: 10px;
    width: calc(100% - 10px)
}

.message {
    color: #fff;
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
    max-height: 160px;
    overflow-y: auto;
}

.message .highlight{
    color: #24ffff;
   
}


.fpElement {
  color: #00f9ff;
}

.flight-plan {
  text-align: left;
  border-radius: 2px;
  width: 90%;
}

.flight-plan h1 {
  font-size: 18px;
  margin-bottom: 5px;
  padding: 1px
}

.flight-plan p {
  font-size: 18px;
  margin: 5px 0;
  color: #00f9ff;
}

.flight-plan span {
  color: #ffffff;
}



.buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f0;
    font-size: 12px;
    border: 1px solid #0f0;
    padding: 4px;
    border-radius: 3px;
}

.left {
    justify-content: flex-start;
}

.right {
    justify-content: flex-end;
}

.highlight-btn {
    background-color: #00ffb2;
    color: #000;
}


.wxText {
  font-size: 10pt;
}


/**************  Form layout ****************************/


  
  .form-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-gap: 10px;
    margin-bottom: 5px auto;
    background-color: black;
    font-family: 'B612', sans-serif;
    color: white;
    font-size: 10pt; /* Adjusted font size for better visibility */
  }
  
  .input-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    row-gap: 5px
  }

  /* Special handling for radio button containers */
  .radio-input-container {
    display: block;
  }
  
  .input-label {
    flex: 1;
    color: white;
  }
  
  .input-field {
    flex: 1;
    margin-left: 5px;
    background-color: #333;
    color: white;
    border: 1px solid #555;
    width: 50px; /* Ensure input fields take up available space */
  }
  
  input[type="text"] {
    padding: 5px;
  }

  input[type="text"]:disabled {
    background-color: transparent; /* Make the background transparent */
    border: 0px;
    color: greenyellow;
  }
  
  input[type="radio"] {
    margin-right: 5px;
  }

  /* Custom radio button styling for MSFS compatibility - high specificity */
  .custom-radio-button.input-field,
  .custom-radio-button {
    display: flex !important;
    align-items: center !important;
    cursor: pointer;
    padding: 8px 12px !important;
    margin: 2px 0 !important;
    border-radius: 5px !important;
    border: 1px solid #555 !important;
    background-color: #333 !important;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    min-height: 30px !important;
    box-sizing: border-box;
    width: auto !important;
    flex: 1;
    /* Override input field styles */
    height: auto !important;
  }

  .custom-radio-button:hover,
  .custom-radio-button.input-field:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #777 !important;
  }

  .custom-radio-button:focus,
  .custom-radio-button.input-field:focus {
    outline: 2px solid #00ff00 !important;
    outline-offset: 1px;
  }

  .custom-radio-button[data-selected="true"],
  .custom-radio-button.input-field[data-selected="true"] {
    background-color: rgba(0, 255, 0, 0.2) !important;
    border-color: #00ff00 !important;
  }

  .radio-indicator {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 16px !important;
    height: 16px !important;
    margin-right: 8px !important;
    font-size: 12px !important;
    color: #888 !important;
    border: 1px solid #555 !important;
    border-radius: 50% !important;
    background-color: #222 !important;
    flex-shrink: 0;
  }

  .custom-radio-button[data-selected="true"] .radio-indicator,
  .custom-radio-button.input-field[data-selected="true"] .radio-indicator {
    color: #00ff00 !important;
    background-color: #333 !important;
    border-color: #00ff00 !important;
  }

  .radio-label {
    color: white !important;
    font-size: 10pt !important;
    font-family: 'B612', sans-serif !important;
    flex: 1;
    text-align: left !important;
  }

  .custom-radio-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  .custom-radio-button:disabled:hover {
    background-color: transparent;
  }
  
.form-title{
    grid-area: 1 / span 5;
    font-size: large;
    padding-left:  5px;

}

.insideRightMenu {
  width: 280px;
  height: 100vh;
  background-color: #333;
  border-radius: 0;
  border-right: 2px solid #555;
  overflow-y: auto;
  padding: 10px;
  box-sizing: border-box;
  grid-column: 1;
  grid-row: 1 / -1;
}

/* Sidebar sections and styling */
.insideRightMenu .sidebar-section {
  display: block;
  border-bottom: 1px solid #444;
  padding: 12px 0;
  width: 100%;
}

.insideRightMenu .sidebar-title {
  display: block;
  padding: 12px 16px;
  font-weight: bold;
  color: #adff2f;
  font-size: 12px;
  text-transform: uppercase;
  margin: 0;
  width: 100%;
}

.insideRightMenu .sidebar-section a {
  display: block;
  padding: 10px 16px 10px 32px;
  color: white;
  text-decoration: none;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.2s;
}

.insideRightMenu .sidebar-section a:hover {
  background-color: #444;
}

.insideRightMenu .sidebar-section a i {
  margin-right: 8px;
  width: 20px;
  display: inline-block;
}

/* Fullscreen positioning for right menu */
.tablet.fullscreen.pocketsky-mode .insideRightMenu {
  width: 280px;
  height: 100vh;
  grid-column: 1;
  grid-row: 1 / -1;
}

.closeIconMessage {
  color: white;
  position: relative;
  font-size: medium;
  z-index: 5000;
  left: 70;
  top: 5;

}



.trashIconMessage {
  color: white;
  position: absolute;
  font-size: medium;
  z-index: 5000;
  left: 45;
  top: 5;

}

.peekToggleContainer {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5000;
  white-space: nowrap;
}

.peekToggleLabel {
  color: white;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
}

.peekToggleIcon {
  font-size: 32px;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.peekToggleIcon:hover {
  transform: scale(1.1);
}

/**** Mobile-specific styles for fullscreen + pocketsky mode ****/
@media (max-width: 768px) {
    /* DCDU screen adjustments */
    .dcdu-screen {
        padding: 8px;
        font-size: 12px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .header {
        font-size: 11px;
        margin-bottom: 8px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    /* Callsign and ICAO display in forms */
    .tablet.fullscreen.pocketsky-mode .dcdu-screen .input-container {
        background-color: transparent;
    }
    
    /* Labels like "ICAO" and "Callsign" */
    .tablet.fullscreen.pocketsky-mode .dcdu-screen label {
        color: #ffffff;
        font-size: 11pt;
    }
    
    /* Remove background badges and use original cyan color for highlighted text */
    .tablet.fullscreen.pocketsky-mode .dcdu-screen span:not(.radio-indicator):not(.radio-label) {
        /* Removed background-color, padding, border-radius */
        color: #24ffff; /* Use original cyan color */
        font-size: 12pt;
    }
    
    .message {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 15px;
        max-height: 140px;
    }
    
    /* Flight plan adjustments */
    .flight-plan {
        width: 95%;
    }
    
    .flight-plan h1 {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .flight-plan p {
        font-size: 14px;
        margin: 4px 0;
        word-break: break-word;
    }
    
    /* Button adjustments */
    .buttons {
        gap: 8px;
    }
    
    .btn {
        font-size: 10px;
        padding: 3px;
    }
    
    /* Form container adjustments - SINGLE COLUMN on mobile */
    .tablet.fullscreen.pocketsky-mode .screen.form-container,
    .tablet.fullscreen.pocketsky-mode .form-container {
        display: grid !important;
        grid-template-columns: 1fr !important; /* Single column */
        grid-gap: 8px !important;
        gap: 8px !important;
        max-width: 100% !important;
        width: 100% !important;
        font-size: 10pt !important;
        padding: 8px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        flex: 1;
    }
    
    /* Ensure form elements don't cause horizontal scroll */
    .form-container * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* UNIFORM INPUT HEIGHT - all single line */
    .tablet.fullscreen.pocketsky-mode .form-container input[type="text"],
    .tablet.fullscreen.pocketsky-mode .form-container .input-field,
    .tablet.fullscreen.pocketsky-mode .form-container .input {
        width: 100% !important; /* Full width */
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 6px 8px !important;
        font-size: 14px !important;
        line-height: 1.2 !important;
        box-sizing: border-box !important;
    }
    
    /* Labels styling - above inputs */
    .tablet.fullscreen.pocketsky-mode .form-container .input-label {
        margin-bottom: 4px !important;
        padding: 0 !important;
        font-size: 12px !important;
        color: #00ff00 !important;
        font-weight: 600 !important;
        width: 100% !important;
    }
    
    /* Form title takes full width */
    .form-title {
        grid-column: 1 / -1;
        width: 100%;
        margin-bottom: 4px;
    }
    
    /* Input containers - LABELS ABOVE INPUTS */
    .tablet.fullscreen.pocketsky-mode .input-container {
        width: 100% !important;
        grid-column: span 1 !important; /* Full width */
        display: flex !important;
        flex-direction: column !important; /* Stack label above input */
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 0 !important; /* Remove extra padding */
        margin: 4px 0 !important;
        row-gap: 4px !important;
        flex-direction: column;
        gap: 4px;
        padding: 4px 0;
    }
    
    /* Some elements should span both columns */
    .input-container:has(> .input-field[type="text"]):not(:has(> label.input-label)) {
        grid-column: 1 / -1;
    }
    
    /* Radio button containers span both columns */
    .radio-input-container {
        grid-column: 1 / -1;
    }
    
    /* Labels go above inputs */
    .input-container label {
        display: block;
        width: 100%;
        margin-bottom: 4px;
        font-weight: 500;
        font-size: 9pt;
    }
    
    /* Input fields take full width of their container */
    .input-field {
        width: 100% !important;
        max-width: 100%;
        min-width: unset;
    }
    
    input[type="text"] {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-title {
        font-size: 14px;
        padding-left: 3px;
    }
    
    .input-container {
        font-size: 9pt;
    }
    
    .input-field {
        font-size: 9pt;
        width: auto;
        min-width: 40px;
    }
    
    input[type="text"] {
        padding: 3px;
        font-size: 9pt;
    }
    
    /* Custom radio button adjustments - make them larger and easier to tap */
    .custom-radio-button.input-field,
    .custom-radio-button {
        padding: 10px 12px !important;
        font-size: 11pt !important;
        margin: 4px 0 !important;
        width: 100% !important;
        min-height: 44px !important;
    }
    
    .radio-indicator {
        width: 18px !important;
        height: 18px !important;
        margin-right: 10px !important;
        font-size: 12px !important;
    }
    
    .radio-label {
        font-size: 11pt !important;
        flex: 1;
    }
    
    /* Radio input containers need special handling */
    .radio-input-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px;
        width: 100%;
    }
    
    /* Icon positioning adjustments */
    .insideRightMenu {
        top: 45px;
        right: 15px;
    }
    
    .closeIconMessage {
        font-size: 14px;
    }
    
    .trashIconMessage {
        font-size: 14px;
    }
    
    /* Peek toggle adjustments */
    .peekToggleContainer {
        bottom: 8px;
        right: 8px;
        gap: 8px;
    }
    
    .peekToggleLabel {
        font-size: 12px;
    }
    
    .peekToggleIcon {
        font-size: 28px;
    }
    
    /* Weather text adjustments */
    .wxText {
        font-size: 9pt;
    }
}

/* Extra small devices (iPhone SE, etc.) */
@media (max-width: 375px) {
    .dcdu-screen {
        padding: 2px;
        font-size: 11px;
    }
    
    .header {
        font-size: 9px;
        margin-bottom: 4px;
    }
    
    .message {
        font-size: 12px;
        line-height: 1.3;
        max-height: 120px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .flight-plan {
        width: 98%;
    }
    
    .flight-plan h1 {
        font-size: 12px;
        word-wrap: break-word;
    }
    
    .flight-plan p {
        font-size: 12px;
        word-wrap: break-word;
    }
    
    .form-container {
        font-size: 10pt;
        padding: 6px;
        gap: 6px;
    }
    
    .form-title {
        font-size: 14px;
        word-wrap: break-word;
        margin-bottom: 6px;
    }
    
    .input-container {
        padding: 4px 0;
        gap: 3px;
    }
    
    .input-container label {
        font-size: 10pt;
    }
    
    .input-field {
        font-size: 10pt;
        padding: 6px;
    }
    
    input[type="text"] {
        padding: 6px;
        font-size: 10pt;
        max-width: 100%;
    }
    
    .custom-radio-button.input-field,
    .custom-radio-button {
        padding: 8px 10px !important;
        font-size: 10pt !important;
        min-height: 40px !important;
    }
    
    .radio-indicator {
        width: 16px !important;
        height: 16px !important;
        margin-right: 8px !important;
        font-size: 11px !important;
    }
    
    .radio-label {
        font-size: 10pt !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .btn {
        font-size: 9px;
        padding: 2px;
    }
    
    .peekToggleLabel {
        font-size: 11px;
    }
    
    .peekToggleIcon {
        font-size: 24px;
    }
}

/* Ensure text doesn't overflow - applies to all pocketsky mode */
/* Base styles for all sizes */
.tablet.fullscreen.pocketsky-mode .form-container {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.tablet.fullscreen.pocketsky-mode .dcdu-screen,
.tablet.fullscreen.pocketsky-mode .message,
.tablet.fullscreen.pocketsky-mode .flight-plan,
.tablet.fullscreen.pocketsky-mode .form-container {
    overflow-x: hidden;
}

.tablet.fullscreen.pocketsky-mode .input-label,
.tablet.fullscreen.pocketsky-mode .form-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Form title spans full width across all columns */
.tablet.fullscreen.pocketsky-mode .form-title {
    flex: 0 0 100% !important;
    width: 100% !important;
    margin-bottom: 12px !important;
}

/* Input containers stack vertically */
.tablet.fullscreen.pocketsky-mode .input-container {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    gap: 0 !important; /* Remove any gap between label and input */
}

/* Labels should be directly above inputs with minimal gap */
.tablet.fullscreen.pocketsky-mode .input-container .input-label {
    margin-bottom: 4px !important;
    margin-top: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Inputs full width */
.tablet.fullscreen.pocketsky-mode .form-container input[type="text"],
.tablet.fullscreen.pocketsky-mode .form-container .input-field,
.tablet.fullscreen.pocketsky-mode .form-container .input {
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 6px 8px !important;
    box-sizing: border-box !important;
}

/* SEND button and other action buttons */
.tablet.fullscreen.pocketsky-mode button,
.tablet.fullscreen.pocketsky-mode .btn,
.tablet.fullscreen.pocketsky-mode input[type="button"],
.tablet.fullscreen.pocketsky-mode input[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    min-height: 44px;
    margin: 8px 0;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Buttons grid for multiple buttons */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* Icon positioning in mobile forms */
.tablet.fullscreen.pocketsky-mode .insideRightMenu {
    top: 8px;
    right: 8px;
    z-index: 1000;
}

.tablet.fullscreen.pocketsky-mode .closeIconMessage,
.tablet.fullscreen.pocketsky-mode .trashIconMessage {
    font-size: 20px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive breakpoints for form layout */
@media (max-width: 479px) {
    /* Small mobile - 1 column */
    .tablet.fullscreen.pocketsky-mode .form-container {
        padding: 16px !important;
        column-gap: 8px !important;
        row-gap: 8px !important;
    }
    
    .tablet.fullscreen.pocketsky-mode .input-container {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

@media (min-width: 480px) and (max-width: 599px) {
    /* Large mobile - 2 columns */
    .tablet.fullscreen.pocketsky-mode .form-container {
        padding: 20px !important;
        column-gap: 12px !important;
        row-gap: 8px !important;
    }
    
    .tablet.fullscreen.pocketsky-mode .input-container {
        flex: 0 0 calc(50% - 6px) !important;
        width: calc(50% - 6px) !important;
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    /* Tablet - 2 columns with more spacing */
    .tablet.fullscreen.pocketsky-mode .form-container {
        padding: 24px !important;
        column-gap: 16px !important;
        row-gap: 8px !important;
    }
    
    .tablet.fullscreen.pocketsky-mode .input-container {
        flex: 0 0 calc(50% - 8px) !important;
        width: calc(50% - 8px) !important;
    }
}

@media (min-width: 900px) {
    /* Large tablet/iPad Pro - 3 columns */
    .tablet.fullscreen.pocketsky-mode .form-container {
        padding: 32px !important;
        column-gap: 20px !important;
        row-gap: 8px !important; /* Keep vertical spacing minimal! */
    }
    
    .tablet.fullscreen.pocketsky-mode .input-container {
        flex: 0 0 calc(33.333% - 14px) !important;
        width: calc(33.333% - 14px) !important;
    }
}

/* Label-only elements (like "FREE TEXT:" or "Reason:") - apply to all sizes */
.tablet.fullscreen.pocketsky-mode .input-container label.input-label {
    font-size: 11pt;
    font-weight: 600;
    color: #00ff00;
    margin-bottom: 4px !important; /* Keep labels close to inputs */
}

/* Special styling for section headers in forms */
.tablet.fullscreen.pocketsky-mode .input-container:has(> label:only-child) {
    padding-top: 8px; /* Reduced from 12px */
    padding-bottom: 0px; /* Reduced from 4px */
}

/* FL label and similar compact elements */
.tablet.fullscreen.pocketsky-mode .input-container > span {
    font-size: 11pt;
    padding: 8px;
}
