body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
}

/* Centered container */
.collection-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 30vh;
    max-width: 1000px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.collection-container p {
    margin: 1rem 0;
    text-align: center;
}

.profile-title {
    font-size: 24px;
    font-weight: bold;
    color: #162D4F;
    margin-bottom: 20px;
    text-align: center;
}

/* Table styling */
.collection-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.collection-table th,
.collection-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.collection-table th {
    position: relative;
    padding: 12px 15px;
    text-align: left;
    background-color: #162D4F;
    color: white;
    font-weight: bold;
    white-space: nowrap;
}

.sort-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: white;
    font-size: 14px;
}

.collection-table tr:hover {
    background-color: #f1f1f1;
}

.collection-table td {
    font-size: 14px;
    color: #555;
}

/* Common button styling - applied to all buttons */
.btn-action {
    display: inline-block;
    min-width: 80px;
    padding: 8px 12px;
    text-align: center;
    background-color: #007bff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.btn-action:hover {
    background-color: #0063cd;
    color: #ffffff;
}

/* View button styling */
.btn-view {
    background-color: #007bff;
}

.btn-view:hover {
    background-color: #0063cd;
}

/* Edit button styling */
.btn-edit {
    background-color: #007bff;
    color: #ffffff;
}

.btn-edit:hover {
    background-color: #0063cd;
}

/* Copy URL button styling */
.btn-copy-url {
    background-color: #007bff;
    color: #ffffff;
}

.btn-copy-url:hover {
    background-color: #0063cd;
    color: #ffffff;
}

/* Delete button styling */
.btn-delete {
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    cursor: pointer;
}

.btn-delete:hover {
    background-color: #c82333;
}

.btn-delete.deleting {
    background-color: #6c757d;
    pointer-events: none;
    opacity: 0.65;
}

.btn-delete:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.65;
}

/* Text link styling */
.text-link {
    color: #007bff;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.share-url {
    width: 200px;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9rem;
    background-color: #f8f9fa;
}

/* Confirmation modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
}

.error-message {
    color: #dc3545;
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

.success-message {
    color: #28a745;
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
}

.pagination a {
    color: blue;
    text-decoration: underline;
    font-weight: bold;
}

.settings-shortcut {
    margin: 1.5rem auto;
    text-align: center;
}

.settings-shortcut .btn-settings {
    background-color: #28a745;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

.settings-shortcut .btn-settings:hover {
    background-color: #218838;
    color: white;
}

.settings-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.settings-buttons .btn-settings,
.settings-buttons .btn-delete {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.settings-buttons .btn-settings {
    background-color: #007bff;
    color: white;
}

.settings-buttons .btn-settings:hover {
    background-color: #0056b3;
}

.settings-buttons .btn-delete {
    background-color: #dc3545;
    color: white;
}

.settings-buttons .btn-delete:hover {
    background-color: #c82333;
}

.btn-settings {
    background-color: #007bff;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px; /* Add spacing from the form */
}

.btn-settings:hover {
    background-color: #0056b3;
}

.delete-label {
    color: red; 
    font-weight: bold;
}

/* Style the settings forms below */

.form-label,
.form-field {
    font-weight: bold;
}

.form-button {
    
}

.form-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.form-row > div {
    flex: 1;
}
.content-section {
    margin: 20px 0;
    padding: 20px;
    width: 100%;
}

.text-center {
    text-align: center;
}
/* Search Bar Styling */
.search-bar {
    margin-bottom: 20px;
    text-align: center;
}

#search-input {
    width: 80%;
    max-width: 400px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Table Styling */
.collection-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.collection-table th,
.collection-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.collection-table th {
    position: relative;
    padding: 12px 15px;
    text-align: left;
    background-color: #162D4F;
    color: white;
    font-weight: bold;
    white-space: nowrap;
}

.sort-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: white;
    font-size: 14px;
}

.collection-table tr:hover {
    background-color: #f1f1f1;
}

.collection-table td {
    font-size: 14px;
    color: #555;
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination-controls button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: #ffffff;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

.pagination-controls button:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.url-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.share-url {
    flex: 1;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: #f8f9fa;
    cursor: pointer;
    user-select: text;
}

.btn-copy {
    padding: 4px 8px;
    background: #162D4F;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-copy:hover {
    background: #0e1d33;
}

.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.btn-edit {
    background-color: #28a745;
}

.btn-edit:hover {
    background-color: #218838;
}

.btn-delete {
    background-color: #dc3545;
}

.btn-delete:hover {
    background-color: #c82333;
}

.collection-table th {
    position: relative;
    padding: 12px 15px;
    text-align: left;
    background-color: #162D4F;
    color: white;
    font-weight: bold;
    white-space: nowrap;
}

.collection-table td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
}

.url-cell {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

.share-url {
    color: #007bff;
    font-family: monospace;
    font-size: 0.9em;
    cursor: pointer;
    text-decoration: underline;
}

.share-url:hover {
    color: #0056b3;
}


.action-buttons {
    display: flex;
    gap: 8px;             /* space between Edit/Delete buttons */
    align-items: center;  /* vertical alignment */
    justify-content: flex-start; /* align to the left */
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1;
    height: 36px; /* force consistent height */
    min-width: 80px;
    border-radius: 4px;
    text-align: center;
    vertical-align: middle;
    box-sizing: border-box;
    text-decoration: none;
    cursor: pointer;
}

.btn-action:focus {
    outline: none;
}

.btn-edit {
    background-color: #28a745;
    color: white;
}

.btn-edit:hover {
    background-color: #218838;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
    border: none;
}

.btn-delete:hover {
    background-color: #c82333;
}

.copy-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333; /* Dark gray for a modern look */
    color: #fff; /* White text for contrast */
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}
.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px); /* Slight upward animation */
}