.call {
    margin: 10px;
    padding: 5px;
    border: 1px solid #ddd;
}

.page-item {
    display: inline-block;
    padding: 5px 10px;
    margin-right: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
}

.active {
    background-color: #007bff;
    color: white;
}

/*NAVIGATION CSS*/
/* Main Navigation Styles */
.main-nav {
    background-color: #333;
    padding: 0;
    font-family: Arial, sans-serif;
}

.main-menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s;
}

.main-menu > li:hover > a {
    background-color: #555;
}

/* Submenu Styles */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.has-submenu:hover .submenu {
    display: block;
}

.submenu li {
    width: 100%;
}

.submenu a {
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.submenu a:hover {
    background-color: #555;
}

/* Dropdown arrow */
.dropdown-arrow {
    font-size: 0.7em;
    margin-left: 5px;
}

/* Responsive design */
@media screen and (max-width: 768px) {
    .main-menu {
        flex-direction: column;
    }

    .main-menu > li {
        width: 100%;
    }

    .submenu {
        position: static;
        display: none;
        width: 100%;
    }

    .has-submenu:hover .submenu {
        display: block;
    }
}
/*===END===NAVIGATION CSS*/

/*PHONE BOOK CSS*/
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

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

.table th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
}

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

.table td a {
    color: #d9534f;
    text-decoration: none;
}

.table td a:hover {
    text-decoration: underline;
}

/* Additional styling for responsiveness and aesthetics */
@media screen and (max-width: 600px) {
    .table td, .table th {
        padding: 15px;
    }
}
/*===END===PHONE BOOK CSS*/

/*Messages Form*/
.sms-form-container {
            display: flex;
            justify-content: left;
            align-items: center;
            padding: 20px;
}

.sms-form {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.sms-form label {
    margin-top: 10px;
}

.sms-form input[type="text"],
.sms-form input[type="file"] {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-top: 5px;
}

.sms-form input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    margin-top: 15px;
    cursor: pointer;
}

.sms-form input[type="submit"]:hover {
    background-color: #45a049;
}

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    margin: 10px;
}

.file-upload-input {
    font-size: 16px;
    cursor: pointer;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
}

.file-upload-button {
    border: 2px solid #4CAF50;
    color: #4CAF50;
    background-color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
}

.drag-drop-area {
    /* Add your styles */
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
}

.drag-drop-area.highlight {
    border-color: blue;
}
/*===END===SEND A TEXT BOX CSS*/

/*===MESSAGE CONVO PAGE*/
.message-table {
    width: 100%;
    border-collapse: collapse;
}
.message-table th, .message-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.message-table th {
    background-color: #f2f2f2;
}
/*===END===MESSAGE CONVO PAGE*/

/*======DISPLAY CALLS PAGE*/
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

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

.table th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
}

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

.table td a {
    color: #d9534f;
    text-decoration: none;
}

.table td a:hover {
    text-decoration: underline;
}

/* Additional styling for responsiveness and aesthetics */
@media screen and (max-width: 600px) {
    .table td, .table th {
        padding: 15px;
    }
}
/*===END===DISPLAY CALLS PAGE*/

/*======DISPLAY MESSAGES PAGE*/
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
}

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

.table th {
    background-color: #f2f2f2;
    color: #333;
    font-weight: bold;
}

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

.table td a {
    color: #d9534f;
    text-decoration: none;
}

.table td a:hover {
    text-decoration: underline;
}

/* Additional styling for responsiveness and aesthetics */
@media screen and (max-width: 600px) {
    .table td, .table th {
        padding: 15px;
    }
}
/*===END===DISPLAY MESSAGES PAGE*/

/*======PHONE CALL BOX*/
.phone-container {
    width: 300px;
    height: 150px;
    border: solid 3px #000;
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.2);
    background-color: #f2f2f2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 50px auto;
}

.phone-form {
    display: flex;
    flex-direction: column;
    width: 80%;
}

.phone-form label {
    margin-bottom: 10px;
    font-weight: bold;
}

.phone-form input[type="tel"] {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.phone-form input[type="submit"] {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}

.phone-form input[type="submit"]:hover {
    background-color: #45a049;
}
/*===END===PHONE CALL BOX*/

/*======SINGLE NUM CALL LIST PAGE*/
.call-table {
    width: 100%;
    border-collapse: collapse;
}
.call-table th, .call-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.call-table th {
    background-color: #f2f2f2;
}
/*===END===SINGLE NUM CALL LIST PAGE*/

/*======SETTINGS PAGE*/
body {
    font-family: Arial, sans-serif;
}

form {
    width: 300px;
    margin: 0 auto;
    background-color: #f4f4f4;
    border-radius: 8px;
}

label {
    display: block;
    margin-top: 10px;
    color: #333;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 8px;
    margin: 5px 0 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.error {
    color: red;
    font-size: 0.9em;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

input[type="submit"]:hover {
    background-color: #45a049;
}

div {
    margin-bottom: 10px;
}
/*===END===SETTINGS PAGE*/

/*======REGISTER PAGE*/
body { font-family: Arial, sans-serif; }
.wrapper { width: 350px; padding: 20px; }
.error { color: red; }
.form-group { margin-bottom: 10px; }
label, input { display: block; width: 100%; }
input[type="text"], input[type="email"], input[type="password"] { padding: 5px; margin-top: 5px; }
input[type="submit"] { padding: 10px; background-color: blue; color: white; border: none; border-radius: 5px; margin-top: 10px; cursor: pointer; }
input[type="submit"]:hover { background-color: darkblue; }
/*===END===REGISTER PAGE*/

//======EDIT CONTACT PAGE
.success-message {
    color: green;
    margin-bottom: 15px;
}
#contact-edit-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto;
    width: 100%;
}

#contact-edit-form .form-row {
    display: flex;
    flex-direction: column;
    flex-basis: calc(20% - 100px);
    margin: 0;
    padding: 0; /* Adjust the width of each field */
}

#contact-edit-form label {
    margin-bottom: 5px;
    font-size: 0.8em;
}

.contact-edit-input {
    width: 100%; /* Full width of the container */
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-edit-error {
    color: red;
    font-size: 0.8em;
    margin-top: 5px;
}

.contact-edit-submit, .contact-edit-cancel {
    padding: 10px 15px;
    margin: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.contact-edit-submit {
    background-color: #4CAF50;
    color: white;
    width: 100%;
}

.contact-edit-cancel {
    background-color: #f44336;
    color: white;
    width: 100%;
}

.contact-edit-submit:hover, .contact-edit-cancel:hover {
    opacity: 0.8;
}
.last_row {
    position: absolute;
    margin-top: 200px !important;
    width: 100%;
}

@media (max-width: 600px) {
    #contact-edit-form .form-row {
        flex-basis: 100%; /* Full width on smaller screens */
    }
}

//===END===EDIT CONTACT PAGE

/*Forms*/
textarea#message {
  border: 1px solid #888; 
  height: 100px !important;
}
/* Delete controls are POST forms so they carry a CSRF token; keep them
   looking like the plain "X" links they replaced. Without display:inline a
   <form> is a block element and blows the column out to full button width. */
.inline-delete {
    display: inline;
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.inline-delete button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: #0066cc;
    cursor: pointer;
    text-decoration: underline;
}

.inline-delete button:hover {
    color: #cc0000;
}

/* ===== Wide data tables (messages, calls) =====
   These carry nine columns. Left alone they push the whole page sideways, so
   the table scrolls inside its own box and the long columns wrap. */
.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* The action column only ever holds a single "X", so give it no more than it needs */
.table th:first-child,
.table td:first-child,
.message-table th:first-child,
.message-table td:first-child,
.call-table th:first-child,
.call-table td:first-child {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    padding-left: 6px;
    padding-right: 6px;
}

/* Long bodies, numbers and URLs wrap instead of widening the table */
.table td,
.message-table td,
.call-table td {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* The message body is the column that should absorb the slack, but not without limit */
.msg-body {
    min-width: 18ch;
    max-width: 40ch;
}

/* Media thumbnails were the other thing forcing the table wide */
.table td img,
.message-table td img {
    max-width: 120px;
    height: auto;
}

@media screen and (max-width: 900px) {
    .msg-body { max-width: 24ch; }
    .table td img, .message-table td img { max-width: 80px; }
}
