
.ship_action_button {
    margin-top: 10px;
    padding: 6px 12px;
    /*background-color: #3377cc;*/
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ship_action_button:hover {
    /*background-color: #5599ee;*/
    background-color: #0050aa;

}

.ship_tile {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 15px;
    margin: 15px auto;
    background: #eef6f9;
    color: #222;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 850px;
    position: relative;
}

.ship_img {
    width: 200px;
    height: 200px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #ddd;
}

.ship_prop_box {
    flex-grow: 1;
}

.ship_name {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2b3a57;
}

.ship_prop_box table {
    width: 100%;
    font-size: 14px;
    border-spacing: 4px;
    color: #333;
}

.ship_prop_box td:first-child {
    color: #555;
    font-weight: bold;
    padding-right: 10px;
    white-space: nowrap;
}

/* Action menu styling */
.action_menu {
    position: absolute;
    top: 10px;
    right: 10px;
}

.action_menu button {
    background: transparent;
    color: #333;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.action_menu:hover {
    background: #bbbbbb;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s ease;
}

.action_dropdown {
    display: none;
    position: absolute;
    right: -2px;
    top: -2px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-width: 150px;
    z-index: 100;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.action_dropdown.visible {
    display: block;
}

.action_dropdown button {
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    color: #333;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.action_dropdown button:hover {
    background: #f0f0f0;
}

.ship_log_box {
    display: block;
    vertical-align: top;
    margin-left: 10px;
    width: -webkit-fill-available;
    font-size: 16px;
    color: white;
}

.ship_log {
    overflow-y: scroll;
    height: 180px;
    background: black;
}

.pencil_edit_button {
    float: right;
    width: 32px;
    height: 32px;
    padding: 8px;
    border-radius: 24px;
    background-image: url("../img/white-pencil.png");
    filter: invert(1);
    background-position: center;
    background-repeat: no-repeat;
}

.pencil_edit_button:hover {
    background: #3333dd;
    background-image: url("../img/white-pencil.png");
    filter: invert(1);
    background-position: center;
    background-repeat: no-repeat;
}

.pencil24_edit_button {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url("../img/white-pencil-24.png");
    background-position: center;
    background-repeat: no-repeat;
}

.pencil24_edit_button:hover {
    background: #3333dd;
    background-image: url("../img/white-pencil-24.png");
    background-position: center;
    background-repeat: no-repeat;
}

.pencil16_edit_button {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("../img/white-pencil-16.png");
    background-position: center;
    background-repeat: no-repeat;
}

.pencil16_edit_button:hover {
    background: #3333dd;
    background-image: url("../img/white-pencil-16.png");
    background-position: center;
    background-repeat: no-repeat;
}

.ship_img_overlay {
    position: relative;
    left: 190px;
    top: 170px;
    z-index: 50;
}

.editable {
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.editable::after {
    content: " ✏️";
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", "Arial Unicode MS", sans-serif;
    font-size: 0.9em;
    color: #888;
    margin-left: 5px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.editable:hover::after {
    opacity: 1;
    color: #444;
}

.editable:hover {
    background: #dde7f0;
}

.edit-input {
    font-size: 14px;
    padding: 3px;
    width: 90%;
    box-sizing: border-box;
}
.confirm-popup {
  position: absolute;
  top: 10px; /* adjust as needed */
  right: 10px;
  background: #222;
  color: #fff;
  border: 1px solid #555;
  padding: 10px;
  border-radius: 6px;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.confirm-popup.hidden {
  display: none !important;
}

.confirm-btn {
    color: red;
    font-weight: bold;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cancel-btn {

    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}


.popup-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.popup-buttons button {
  margin: 0 5px;
}

.hidden {
  display: none;
}


.sidebar-user-icon {
    display: flex;
    border-radius: 20px;
    width: 40px;
    height: 40px;
    background: #3377cc;
    color: white;
    font-family: sans-serif;
    font-size: 25px;
    justify-content: center;
    align-items: center;
}

.sidebar-user-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  margin-top: 20px;
}

.sidebar-user-info {
  font-family: sans-serif;
  font-size: 14px;
  color: black;
}

.sidebar-user-name {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 10px;
  color: black;
}

.create-ship-button-holder {
  display: flex;
  justify-content: center;
  align-items: center;
}

.create-ship-button {
  display: inline-block;
  padding: 10px 16px;
  margin: 10px 0;
  background: linear-gradient(to bottom, #4499ee, #3377cc);
  color: white;
  font-size: 15px;
  font-family: sans-serif;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.2s ease-in-out, transform 0.1s ease-in-out;
}

.create-ship-button:hover {
  background: linear-gradient(to bottom, #55aaff, #4488dd);
}

.create-ship-button:active {
  transform: translateY(1px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.create-ship-button:disabled {
  background: #999 !important;
  color: #eee;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}
