/* Basic form styling */
#client-data-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Include padding in width */
    font-size: 16px;
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
    outline: none;
}

.required {
    color: #dc3232;
}

/* Social media selection styles */
.social-media-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.social-icon-wrapper {
    text-align: center;
    cursor: pointer;
    background-color: #f9f9f9;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    width: 120px; /* Fixed width for better layout */
}

.social-icon-wrapper:hover {
    background-color: #e9e9e9;
    border-color: #ddd;
}

.social-icon-wrapper input[type="checkbox"] {
    display: none; /* Hide default checkbox */
}

.social-icon-wrapper label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    padding: 15px;
    margin-bottom: 0; /* Override default label margin */
}

.social-icon {
    font-size: 3em; /* Larger icons */
    margin-bottom: 10px;
    color: #555;
    transition: color 0.3s ease;
}

/* Style for checked state */
.social-icon-wrapper input[type="checkbox"]:checked + label {
    background-color: #e0f2f7; /* Light blue background when checked */
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.3);
}

.social-icon-wrapper input[type="checkbox"]:checked + label .social-icon {
    color: #0073aa; /* WordPress blue for checked icons */
}

/* Credential groups */
.social-credentials-group {
    background-color: #f0f8ff; /* Light blue background */
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.social-credentials-group h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #005b8a;
    border-bottom: 1px dashed #cce0ff;
    padding-bottom: 10px;
}

/* Submit button */
#submit-form {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 30px;
}

#submit-form:hover {
    background-color: #005b8a;
}

/* Form messages */
#form-messages {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-weight: bold;
}

#form-messages.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#form-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Basic page layout */
.content-area {
    padding: 20px;
}

#main {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.site-title {
    text-align: center;
}

#general-notes-container,#edit-general-notes-container{
    margin-top: 20px;
}

/* Styling for single-clients_data.php */
.client-data-display, .client-data-form {
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.client-data-section {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.client-data-section h3 {
    color: #0073aa;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.client-data-section p {
    margin-bottom: 8px;
    line-height: 1.6;
}

.social-credentials-display-item {
    background-color: #eef7fc;
    border: 1px solid #c9e6f2;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.social-credentials-display-item h4 {
    color: #005b8a;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px dashed #d1e8f5;
    padding-bottom: 5px;
}

.general-notes-content {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 5px;
    white-space: pre-wrap; /* Preserves formatting from textarea */
    font-family: monospace;
    font-size: 0.95em;
    line-height: 1.5;
}

/* Styling for the default WordPress password form */
.post-password-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.post-password-form label {
    display: block;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #333;
}

.post-password-form input[type="password"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.post-password-form input[type="submit"] {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.post-password-form input[type="submit"]:hover {
    background-color: #005b8a;
}