* {
    box-sizing: border-box;
}


body {

    font-family: Arial, sans-serif;

    background: #f4f4f4;

    margin: 0;

    padding: 30px;

}


.container {

    max-width: 650px;

    margin: auto;

    background: white;

    padding: 30px;

    border-radius: 8px;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.1);

}


.container.wide {

    max-width: 1400px;

}


h1 {

    text-align: center;

    margin-bottom: 30px;

}


h3 {

    margin-top: 25px;

    border-bottom: 1px solid #ddd;

    padding-bottom: 8px;

}


.form-group {

    margin-bottom: 18px;

}


label {

    display: block;

    font-weight: bold;

    margin-bottom: 6px;

}


input {

    width: 100%;

    padding: 10px;

    border: 1px solid #ccc;

    border-radius: 4px;

    font-size: 15px;

}


input:focus {

    outline: none;

    border-color: #333;

}


small {

    display: block;

    margin-top: 5px;

    color: #666;

}


button {

    padding: 11px 20px;

    border: none;

    border-radius: 4px;

    background: #333;

    color: white;

    cursor: pointer;

    font-size: 15px;

}


button:hover {

    background: #555;

}


.reset-btn {

    background: #777;

    margin-left: 5px;

}


#message,
#connectionStatus {

    margin-top: 20px;

    padding: 10px;

    border-radius: 4px;

}


.success {

    background: #d4edda;

    color: #155724;

}


.error {

    background: #f8d7da;

    color: #721c24;

}


.info {

    background: #d1ecf1;

    color: #0c5460;

}


a {

    color: #333;

    font-weight: bold;

    text-decoration: none;

}


a:hover {

    text-decoration: underline;

}


.table-container {

    overflow-x: auto;

    margin-top: 20px;

}


table {

    width: 100%;

    border-collapse: collapse;

    background: white;

}


th,
td {

    border: 1px solid #ddd;

    padding: 10px;

    text-align: left;

}


th {

    background: #333;

    color: white;

}


tr:nth-child(even) {

    background: #f5f5f5;

}


/* ==================================================
   POPUP / MODAL
================================================== */

.modal {

    display: none;

    position: fixed;

    z-index: 1000;

    left: 0;

    top: 0;

    width: 100%;

    height: 100%;

    background-color:
        rgba(0, 0, 0, 0.5);

}


.modal-content {

    background-color: white;

    margin: 5% auto;

    padding: 25px;

    width: 500px;

    max-width: 90%;

    max-height: 80vh;

    overflow-y: auto;

    border-radius: 8px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.3);

}


.close {

    float: right;

    font-size: 30px;

    font-weight: bold;

    cursor: pointer;

}


.close:hover {

    color: red;

}


.user-info p {

    padding: 8px;

    border-bottom: 1px solid #eee;

}


.user-link {

    color: #0066cc;

    cursor: pointer;

}