/* General styles */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
}

.header {
    background-color: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Distribute space */
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.header::before,
.header::after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 5px; /* Slightly thicker lines for better visibility */
    background-color: #3498db;
}

.header::before {
    left: 0;
}

.header::after {
    right: 0;
}

.logo img {
    height: 50px;
}

.header-text {
    margin: 0; /* Remove auto margin */
    text-align: center;
    flex-grow: 1; /* Take up remaining space */
}

.logout {
    margin-left: 20px; /* Add some space from the center text */
}

.logout a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #dc3545; /* Red color for logout */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em; /* Moderate size */
    transition: background-color 0.3s ease;
}

.logout a:hover {
    background-color: #c82333;
}

.content {
    padding: 20px;
    text-align: center;
}

.content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.content li {
    background-color: #e9ecef; /* Light gray background */
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    border: 1px solid #ced4da; /* Light border */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.content li:hover {
    background-color: #d1d8dc; /* Slightly darker gray on hover */
}

.content a {
    display: inline-block; /* Changed from block */
    margin: 10px;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.content a:hover {
    background-color: #0056b3;
}

.form-container {
    max-width: 400px;
    margin: 20px auto;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-container h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #343a40; /* Dark gray heading */
}

.form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #495057; /* Medium gray label */
}

.form-container input[type="text"],
.form-container input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.form-container button {
    padding: 10px 20px;
    background-color: #3498db; /* Primary blue for login button */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1em;
}

.form-container button:hover {
    background-color: #3498db;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination .step-links {
    display: flex;
}

.pagination .step-links a,
.pagination .current {
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 5px;
    text-decoration: none;
}

.pagination .step-links a {
    background-color: #3498db;
    color: white;
    transition: background-color 0.3s ease;
}

.pagination .step-links a:hover {
    background-color: #3498db;
}

.pagination .current {
    background-color: #6c757d;
    color: white;
}
.back-to-dashboard {
    display: inline-block;
    padding: 10px 20px;
    background-color: #6c757d; /* Gray background */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.back-to-dashboard:hover {
    background-color: #5a6268;
}

footer {
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
    background-color: #f4f4f4; /* You can adjust this */
    border-top: 1px solid #ddd; /* You can adjust this */
    color: #777; /* You can adjust this */
    font-size: 0.9em; /* You can adjust this */
}

/* Styling for the WHMCS Credentials List Table */
.whmcs-credentials-table td,
.whmcs-credentials-table th {
    padding: 0.2rem; /* Adjust vertical padding */
}

/* Adjust column widths */
.whmcs-credentials-table th:nth-child(1),
.whmcs-credentials-table td:nth-child(1) {
    width: 15%;
}

.whmcs-credentials-table th:nth-child(2),
.whmcs-credentials-table td:nth-child(2) {
    width: 30%;
}

.whmcs-credentials-table th:nth-child(3),
.whmcs-credentials-table td:nth-child(3) {
    width: 15%;
}

/* Secret column takes remaining space */

.whmcs-credentials-table th:nth-child(5),
.whmcs-credentials-table td:nth-child(5) {
    width: 15%;
}

.whmcs-credentials-table th:nth-child(6),
.whmcs-credentials-table td:nth-child(6) {
    width: 10%;
}

.whmcs-credentials-table th:nth-child(7),
.whmcs-credentials-table td:nth-child(7) {
    width: 12%;
}

/* Further reduce size of action buttons */
.whmcs-credentials-table .btn-sm {
    padding: 0.1rem 0.3rem; /* Reduce padding */
    font-size: 0.8rem; /* Reduce font size */
}
.whmcs-credentials-table,
.whmcs-credentials-table th,
.whmcs-credentials-table td {
    border: 1px solid #ced4da !important; /* A slightly darker grey (Bootstrap's default border color) */
}

.whmcs-credentials-table {
    border-collapse: collapse;
}

.form-container input[type="text"],
.form-container input[type="password"],
.form-container input[type="url"] { /* Added input[type="url"] */
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    box-sizing: border-box; /* Ensure padding doesn't affect width */
}

.form-container button {
    padding: 10px 20px;
    background-color: #3498db; /* Primary blue for login button */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1em;
}

/* Style the "Confirm Delete" button specifically */
.delete-credential-form button[type="submit"] {
    background-color: #dc3545;
    color: white;
    border-radius: 5px;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1em;
}

.delete-credential-form button[type="submit"]:hover {
    background-color: #c82333; /* Darker red on hover */
}