body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: ltr; /* Changed to LTR for English */
    text-align: left; /* Changed to left align */
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.app-container {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Default to column for mobile */
    width: 100%; /* Full width for mobile */
    max-width: 800px; /* Maximum width for larger screens */
    margin: 20px; /* Add some margin */
}

.header {
    background-color: #f0f4ff;
    color: #3498db;
    padding: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

.content {
    padding: 30px;
    flex-grow: 1;
}

h2 {
    color: #3498db;
    text-align: center;
    margin-bottom: 10px;
}

.step-info {
    text-align: center;
    color: #777;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 16px;
}

input[type="text"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus {
    border-color: #3498db;
    outline: none;
}

.action-button {
    width: 100%;
    padding: 16px;
    background-color: #ecf0f1;
    color: #777;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-bottom: 20px;
}

.action-button:hover {
    background-color: #bdc3c7;
    color: #333;
}

.primary-button {
    width: 100%;
    padding: 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.primary-button:hover {
    background-color: #2980b9;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    border: none;
    padding: 16px;
    text-align: center;
}

th {
    background-color: #3498db;
    color: white;
    font-weight: 500;
}

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

tbody tr:hover {
    background-color: #f1f1f1;
}

#notification-area {
    position: absolute;
    top: 10px;
    left: 10px;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.notification {
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-in 2.7s forwards;
}

.notification.success {
    background-color: #2ecc71;
}

.notification.error {
    background-color: #e74c3c;
}

.notification.info {
    background-color: #3498db;
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
}

/* The Close Button */
.close, .add-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus,
.add-close:hover,
.add-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Style for icon buttons */
table button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Style for target email */
.target-email {
    cursor: pointer;
    position: relative; /* For positioning the popup */
}

/* Style for the actions popup */
.popup {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding: 10px;
    z-index: 2;
}

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cors-button {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-right: 20px;
    border-radius: 5px;
    cursor: pointer;
}
