body {
    margin: 0;
    background: #f5f7fa;
    font-family: "Segoe UI", sans-serif;
    color: #333;
    padding: 8px 0;
}

h2 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.card {
    width: 850px;
    margin: auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 20px;
    border-top: 5px solid #ff7a18;
    border-bottom: 5px solid #ffb347;
}

label {
    font-weight: 600;
    margin-top: 15px;
    display: block;
}

.input-box,
input[type="file"] {
    width: 95%;
    padding: 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 5px;
    background: #fff;
    transition: border 0.2s, box-shadow 0.2s;
}

.input-box:focus {
    border-color: #ff7a18;
    outline: none;
    box-shadow: 0 0 4px rgba(255, 122, 24, 0.4);
}

.row {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.connect-row {
    text-align: center;
    margin-top: 20px;
}

#ses_send_btn {
    text-align: center !important;
    margin-top: 20px;
}


#connect_btn,
#ses_send_btn,
#clear_connect_btn {
    width: 40%;
    padding: 10px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-weight: bold;
}

#ses_send_btn,#connect_btn {
    background: linear-gradient(to right, #ff7a18, #ffb347);
}

#ses_send_btn:disabled,#connect_btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

#clear_connect_btn {
    background: #d9534f;
    display: none;
    margin-left: 10px;
}

#status_message {
    font-weight: bold;
    font-size: 18px;
}

.error {
    color: #d9534f;
    font-weight: bold;
    font-size: 16px;
}

.success {
    color: #28a745;
}

.row button {
    flex: 1;
    padding: 10px;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    background: linear-gradient(to right, #ff7a18, #ffb347);
    opacity: .5;
    cursor: not-allowed;
    margin-bottom: 15px;
}

.row button.enabled {
    opacity: 1 !important;
    cursor: pointer !important;
}

#clear_btn {
    background: #d9534f !important;
}

.file-row {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

.file-row button {
    background: #d9534f;
}

#action_msg.error {
    color: #d9534f;
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
}

#action_msg.success {
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
}

#action_msg.loading {
    color: #ff7a18;
    font-weight: bold;
    font-size: 16px;
    margin-top: 10px;
}

.file-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    margin-left: 6px;
}

.btn-view {
    background: #ff9800 !important;
    color: #fff;
}

.btn-delete {
    background: #e53935;
    color: #fff;
}

.disabled-input {
    background: #f0f0f0;
    cursor: not-allowed;
    opacity: 0.7;
}

.no-files {
    margin-top: 10px;
    color: #ff7a18;
    font-weight: bold;
    font-size: 16px;
}

.file-wrapper {
    width: 95%;
}

.file-wrapper input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.row button:focus,
#connect_btn:focus,
#clear_connect_btn:focus {
    outline: none;
    box-shadow: 0 0 6px rgba(255, 122, 24, 0.8);
    transform: scale(1.02);
}

.row button:active,
#connect_btn:active,
#clear_connect_btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

.row button.enabled:hover,
#connect_btn:hover,
#clear_connect_btn:hover {
    filter: brightness(1.05);
}

.ses-btn-wrap {
    display: flex;
    justify-content: center;
}

.tabs { display: flex; justify-content: center; margin-bottom: 20px; }
.tab-btn {
  width: 200px;
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  background: #eee7e7;
  font-weight: bold;
}
.tab-btn.active { background: #ff7a18; color: #fff; }

textarea {
    width: 80%;
    padding: 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 5px;
    background: #fff;
    transition: border 0.2s, box-shadow 0.2s;
    resize: vertical; /* optional, keeps layout clean */
}

textarea:focus {
    border-color: #ff7a18;
    outline: none;
    box-shadow: 0 0 4px rgba(255, 122, 24, 0.4);
}