/* styles.css */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    color: #333;
    word-break: break-all;
}

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

.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 10px;
}

.employee-card,
.company-card {
    flex: 1 1 400px;
    max-width: 500px;
}

.admin-card {
    width: 100%;
}

h1, h2 {
    color: #3498db;
    border-bottom: 2px solid #2ecc71;
    padding-bottom: 10px;
}

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

p {
    margin: 10px 0;
    word-break: break-all;
}

.copyable {
    cursor: pointer;
    color: #3498db;
    transition: color 0.3s ease;
    word-break: break-all;
}

.copyable:hover {
    color: #2ecc71;
}

.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 160px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 6px 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    font-size: 12px;
    white-space: normal;
    line-height: 1.4;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* New styles for tables and buttons */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 12px 15px;
    text-align: left;
}

thead {
    background-color: #3498db;
    color: #ffffff;
}

tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
}

.btn-secondary {
    background-color: #2ecc71;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.9em;
}

.btn-edit {
    background-color: #f39c12;
}

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

.btn:hover {
    opacity: 0.9;
}

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

.action-links {
    white-space: nowrap;
}

/* New styles for form groups and labels */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group select {
    height: 38px;
}

@media (max-width: 850px) {
    .card {
        flex-basis: 100%;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    .card {
        padding: 15px;
        margin: 10px 0;
    }
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Error card styling */
.error-card {
    text-align: center;
    max-width: 400px;
    margin: 50px auto;
}

.error-card h1 {
    color: #e74c3c;
}

.error-card p {
    margin-bottom: 20px;
}
/* Custom fields styling */
.custom-field {
    display: flex;
    margin-bottom: 10px;
}

.custom-field input {
    flex: 1;
    margin-right: 10px;
}

.custom-field input:last-child {
    margin-right: 0;
}

 .result {
     margin-top: 20px;
     padding: 20px;
     background-color: #f0f0f0;
     border-radius: 5px;
 }

 .result h2 {
     margin-top: 0;
 }

 .result img {
     max-width: 100%;
     height: auto;
 }

 .result p,
 .result a {
     word-wrap: break-word;
     overflow-wrap: break-word;
     word-break: break-all;
 }

 #additional-fields input {
     width: calc(50% - 5px);
     margin-bottom: 10px;
 }

 #additional-fields input:nth-child(odd) {
     margin-right: 10px;
 }
