/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4faff; /* Light Larimar Blue */
    color: #153464; /* Primary text color */
}

h1, h2 {
    color: #153464; /* Deep Larimar Blue */
    margin-left: 60px; /* Add space from the left */
}

a {
    color: #3780E9; /* Link Blue */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container Layout */
.container {
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Content */
.dashboard {
    text-align: center;
    padding: 20px;
    margin: 20px auto;
    max-width: 95%;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dashboard h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #153464;
}

.dashboard a {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    background-color: #3780E9;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.dashboard a:hover {
    background-color: #2864b4;
    transform: translateY(-2px);
}

/* List Page */
.list-page {
    max-width: 95%; /* Make the list page wider */
    margin: 30px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.certificates-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
}

.certificates-table thead {
    background-color: #153464;
    color: white;
}

.certificates-table th,
.certificates-table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.certificates-table tr:nth-child(even) {
    background-color: #f4faff;
}

.certificates-table tr:hover {
    background-color: #e8f1ff;
}

/* Resend Button */
.resend-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resend-button {
    background-color: #3780E9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.resend-button:hover {
    background-color: #2864b4;
    transform: scale(1.1);
}

.resend-button .icon-email {
    display: inline-block;
    width: 95%; /* Scale relative to the button size */
    height: 95%; /* Scale relative to the button size */
    background: url('../img/email-icon.png') no-repeat center center;
    background-size: contain;
}

.icon-email {
    display: inline-block;
    width: 48px;
    height: 48px;
    background: url('../img/email-icon.png') no-repeat center center;
    background-size: contain;
}

/* Download Button */
.download-button {
    display: inline-block;
    padding: 5px 10px;
    background-color: #3780E9;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #2864b4;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 10%;
}

input, button {
    width: 20%;
    padding: 10px;
    border: 1px solid #dbe9ff;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

input:focus {
    border-color: #3780E9;
    outline: none;
    box-shadow: 0 0 5px rgba(55, 128, 233, 0.5);
    transform: scale(1.02);
}

button {
    background-color: #3780E9; /* Button Blue */
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #2864b4; /* Darker Blue */
    transform: scale(1.05);
}

/* Checkbox Group */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 10px 0;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-size: 1.1em;
    cursor: pointer;
    background: #f9f9ff;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #dbe9ff;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.checkbox-group label:hover {
    background-color: #e8f1ff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

/* Navigation */
nav {
    background-color: #153464;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav a {
    color: white;
    margin: 0 10px;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #b3cfff;
}

.back-button-container {
    margin-top: 20px;
    text-align: center;
}

.back-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #153464; /* Deep Larimar Blue */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.back-button:hover {
    background-color: #3780E9; /* Lighter Blue */
    transform: scale(1.05);
}