
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 20px 20px 20px;
}

.form-container {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: inline-block;
    width: 100px;
}

input, select {
    padding: 5px;
    width: 200px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    font-family: Arial, sans-serif;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.table-actions {
    margin-bottom: 15px;
}

.action-btn {
    background-color: #28a745;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th, td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

th {
    background-color: #f5f5f5;
    position: sticky;
    top: 0;
}

.history-container {
    overflow-x: auto;
    margin-top: 20px;
    padding-right: 10px;
}

.button-group {
    margin-top: 20px;
}

.button-group button {
    margin-right: 10px;
}

.edit-btn {
    background-color: #ffc107;
    margin-right: 5px;
}

.delete-btn {
    background-color: #dc3545;
}

textarea {
    width: 300px;
    font-family: monospace;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

td {
    white-space: pre-line;
    vertical-align: top;
}

.secondary-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 5px;
}

.secondary-btn:hover {
    background-color: #5a6268;
}

#imb-display {
    margin-bottom: 5px;
    min-height: 24px;
}

.imb-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.imb-display {
    flex-grow: 1;
}

.copy-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.2s;
}

.copy-btn:hover {
    color: #007bff;
}

.copy-btn.copied {
    color: #28a745;
}

/* Tooltip styles */
.copy-btn::after {
    content: "Copied!";
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.copy-btn.copied::after {
    opacity: 1;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 15% auto;
    padding: 40px 60px;
    width: 800px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.modal .imb-display {
    transform: scale(2);
    transform-origin: left top;
    margin: 40px 0 60px 0;
    padding-right: 200px;
}

.modal h3 {
    margin: 0;
    padding: 0;
    font-size: 18px;
    color: #333;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.close-modal:hover {
    color: #000;
}

.imb-display {
    cursor: pointer;
}

.imb-display:hover {
    opacity: 0.8;
}

.imb-actions {
    display: flex;
    gap: 4px;
}

.track-btn {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    font-size: 14px;
    transition: color 0.2s;
    text-decoration: none;
}

.track-btn:hover {
    color: #28a745;
}

.json-display {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    font-family: monospace;
    white-space: pre-wrap;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
}

.tracking-info {
    margin-bottom: 30px;
}

.tracking-info h2 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.info-table th,
.info-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.info-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    width: 200px;
}

.actions {
    margin-top: 30px;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.button:hover {
    background-color: #0056b3;
    text-decoration: none;
    color: white;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.back-button:hover {
    background-color: #3367d6;
    color: white;
    text-decoration: none;
}

.back-button i {
    font-size: 12px;
}

.page-header {
    margin-bottom: 30px;
}
