/* certificate_styles.css - Updated to match application color scheme */

/* Certificate List Page */
.eotm-container {
    margin: 0 2%;
    padding: 20px;
}

.eotm-section-title {
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: 500;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

/* Current Employee Section */
.eotm-current-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.eotm-current-header {
    background-color: #f5f5f5;
    color: #2c3e50;
    padding: 15px 20px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.eotm-export-btn {
    background-color: #1e3a5f;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.eotm-export-btn:hover {
    background-color: #2c3e50;
}

/* Current employee card layout */
.eotm-current-content {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 20px;
}

/* Profile image container with fixed dimensions */
.eotm-profile-container {
    width: 160px;
    height: 160px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    border: 3px solid #1e3a5f;
}

/* Profile image with cover fit */
.eotm-employee-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.eotm-employee-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eotm-employee-name {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #2c3e50;
}

.eotm-detail-row {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.eotm-detail-label {
    font-weight: 500;
    width: 120px;
    color: #4D4D4D;
}

.eotm-download-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    transition: background-color 0.2s;
}

.eotm-download-btn i {
    margin-right: 8px;
}

.eotm-download-btn:hover {
    background-color: #2980b9;
}

.eotm-create-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.eotm-create-btn {
    background-color: #1e3a5f;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s;
    text-decoration: none;
}

.eotm-create-btn i {
    margin-right: 8px;
}

.eotm-create-btn:hover {
    background-color: #2c3e50;
    text-decoration: none;
    color: white;
}

/* Certificates Grid */
.eotm-grid-section {
    margin-top: 30px;
}

.eotm-certificates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.eotm-cert-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.eotm-cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.eotm-cert-content {
    padding: 20px;
    display: flex;
    align-items: center;
}

/* Smaller image container for grid items */
.eotm-cert-image-container {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 50%;
    position: relative;
    margin-right: 15px;
    border: 2px solid #1e3a5f;
}

.eotm-cert-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.eotm-cert-details {
    flex: 1;
    min-width: 0;
}

.eotm-cert-name {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eotm-cert-meta {
    font-size: 0.9rem;
    color: #4D4D4D;
    margin-bottom: 4px;
}

.eotm-cert-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s;
}

.eotm-cert-btn i {
    margin-right: 5px;
}

.eotm-cert-btn:hover {
    background-color: #2980b9;
    text-decoration: none;
    color: white;
}

.eotm-empty-state {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    color: #4D4D4D;
}

/* Certificate Generator Page */
.eotm-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 12vh;
    margin-bottom: 3%;
}

.eotm-form-container {
    width: 100%;
    max-width: 500px;
    height: auto;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    color: #000;
    margin: 0 auto 50px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.eotm-form-title {
    margin: 0;
    color: #1e3a5f;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.eotm-disclaimer {
    font-size: 14px;
    padding: 4px;
    color: #4D4D4D;
    margin-bottom: 20px;
}

.eotm-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.eotm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4D4D4D;
}

.eotm-form-select {
    width: 100%;
    height: 48px;
    padding: 10px 15px;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    color: #000;
    font-size: 16px;
    font-weight: normal;
    transition: border-color 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.eotm-form-select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.eotm-employee-display {
    background-color: #f9f9f9;
    font-weight: 500;
    height: auto;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.eotm-submit-btn {
    background-color: #1e3a5f;
    color: white;
    padding: 14px 20px;
    margin: 15px 0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-weight: 500;
    font-size: 16px;
    transition: background-color 0.2s;
}

.eotm-submit-btn:hover {
    background-color: #2c3e50;
}

.eotm-alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.eotm-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.eotm-alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.eotm-back-btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.eotm-back-btn:hover {
    background-color: #2980b9;
    text-decoration: none;
    color: white;
}