/*
Theme Name: fkcrm Theme
Theme URI: http://example.com/fkcrm-theme
Author: Your Name
Author URI: http://example.com
Description: A custom theme for displaying admin content in the frontend.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom, admin, iframe
Text Domain: fkcrm-theme
*/


html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

#wpfooter {
    display: none !important;
}


.login-error {
    color: red;
    margin: 10px 0;
    font-weight: bold;
}

.admin-page-container {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.sidebar {
    width: 10%; /* Adjust the width as needed */
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Ensure padding and border are included in the total width and height */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space between menu and logout button */
    align-items: center; /* Center align the items in the sidebar */
    height: 100vh; /* Full height of the viewport */
}

.content {
    width: 90%;
    height: 100%;
    overflow: hidden;
    background-color: #fff;
    position: relative;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}



/* Center the login form in the middle of the screen */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full height of the viewport */
    background: #f0f0f0; /* Background color for the page */
    padding: 20px; /* Ensure some padding around the container */
    box-sizing: border-box; /* Include padding in the height */
}

/* Center the login form in the middle of the screen */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full height of the viewport */
    background: #f0f0f0; /* Background color for the page */
    padding: 20px; /* Ensure some padding around the container */
    box-sizing: border-box; /* Include padding in the height */
}

/* Center the login form in the middle of the screen */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Full height of the viewport */
    background: #f0f0f0; /* Background color for the page */
    padding: 20px; /* Ensure some padding around the container */
    box-sizing: border-box; /* Include padding in the height */
}

/* CRM login form styles */
.crm-login {
    max-width: 400px;
    width: 100%;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Ensure padding and border are included in the total width and height */
    text-align: center; /* Center the content inside the box */
}

.crm-logo {
    max-width: 450px;
    max-height: 150px;
    margin-bottom: 20px; /* Space between the logo and the form */
}


.crm-login label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #333;
    text-align: left; /* Align labels to the left */
}

.crm-login .input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 20px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.crm-login .input:focus {
    border-color: #0073aa;
    outline: none;
}

.crm-login .login-remember {
    margin-bottom: 20px;
    text-align: left; /* Align the remember me checkbox and label to the left */
}

.crm-login .login-remember label {
    font-size: 14px;
    color: #666;
}

.crm-login .button-primary {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    background: #0073aa;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.crm-login .button-primary:hover {
    background: #005d8c;
}

.crm-login .login-submit {
    margin-bottom: 0;
}




/* Sidebar CRM logo styles */
.sidebar-crm-logo {
    max-width: 150px;
    max-height: 50px;
    margin-bottom: 20px; /* Space below the logo */
}

/* Menu styles */
.crm-menu {
    width: 100%;
    flex-grow: 1; /* Allow the menu to grow and take available space */
    margin-bottom: 20px; /* Space between the menu and the logout button */
}

.crm-menu ul {
    list-style-type: none;
    padding: 0;
    width: 100%; /* Ensure the menu takes the full width */
}

.crm-menu li {
    margin-bottom: 10px;
}

.crm-menu a {
    text-decoration: none;
    color: #333; /* Dark grey text color for contrast */
    font-size: 16px;
    display: block;
    padding: 10px 15px; /* Add padding for better click area */
    background: #EBF2F6; /* Flat look background */
    border-radius: 5px;
    transition: background 0.2s, color 0.2s; /* Smooth transition for hover effect */
}

.crm-menu a:hover {
    background: #d0d0d0;
    color: #000;
}

/* Logout button styles */
.logout-container {
    width: 100%;
    text-align: center;
}

.logout-button {
    display: block;
    width: 90%;
    padding: 12px 0;
    text-align: center;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px; /* Space above the logout button */
}

.logout-button:hover {
    background: #005d8c;
}
/* Settings CSS */
/* Modern Flat Look CSS */
#fkcrm-settings-page {
    font-family: Arial, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 20px 20px 50px; /* Adjusted padding to add 50px on the left */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    height: calc(100vh - 40px); /* Ensure the full viewport height minus padding */
    overflow-y: auto; /* Enable vertical scrolling */
    box-sizing: border-box; /* Include padding in the height calculation */
}

#fkcrm-settings-page h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

#fkcrm-settings-page p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.fkcrm-settings-form-group {
    margin-bottom: 20px;
    width: 50%; /* Cap the width to 50% */
}

.fkcrm-settings-form-group label {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.fkcrm-settings-form-group input[type="text"],
.fkcrm-settings-form-group input[type="email"],
.fkcrm-settings-form-group input[type="number"],
.fkcrm-settings-form-group input[type="password"], /* Added password input */
.fkcrm-settings-form-group textarea,
.fkcrm-settings-form-group select {
    width: 100%; /* Ensure the input fields take the full width of the form group */
    padding: 10px;
    font-size: 14px;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    transition: border-color 0.2s;
}

.fkcrm-settings-form-group input[type="text"]:focus,
.fkcrm-settings-form-group input[type="email"]:focus,
.fkcrm-settings-form-group input[type="number"]:focus,
.fkcrm-settings-form-group input[type="password"]:focus, /* Added password input */
.fkcrm-settings-form-group textarea:focus,
.fkcrm-settings-form-group select:focus {
    border-color: #0073aa;
    outline: none;
}

.fkcrm-settings-form-group textarea {
    height: 100px;
    resize: vertical;
}

.fkcrm-settings-form-group input[type="checkbox"] {
    margin-right: 10px;
}

#fkcrm-settings-save-button {
    display: block;
    width: 50%; /* Cap the width to 50% */
    padding: 15px;
    font-size: 16px;
    color: #fff;
    background-color: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 20px; /* Ensure the button is separated from other elements */
}

#fkcrm-settings-save-button:hover {
    background-color: #005f8d;
}



.fkcrm-settings-on-off-slider {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
    margin-right: 10px;
}

.fkcrm-settings-on-off-slider input {
    opacity: 0;
    width: 0;
    height: 0;
}

.fkcrm-settings-on-off-slider .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.fkcrm-settings-on-off-slider .slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.fkcrm-settings-on-off-slider input:checked + .slider {
    background-color: #2196F3;
}

.fkcrm-settings-on-off-slider input:checked + .slider:before {
    transform: translateX(14px);
}

.fkcrm-settings-on-off-slider .slider-label {
    margin-left: 40px; /* Adjust as necessary to position the label correctly */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666;
}

.fkcrm-warning {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}


/* User List View */
.fkcrm-user-table-container {
    padding: 20px;
    max-width: 1000px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.fkcrm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.fkcrm-user-table-container h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.fkcrm-add-user-button {
    padding: 10px 20px;
    font-size: 14px;
    color: #fff;
    background-color: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.fkcrm-add-user-button:hover {
    background-color: #0056b3;
}

.fkcrm-user-table {
    width: 100%;
    border-collapse: collapse;
}

.fkcrm-user-table thead {
    background-color: #f4f4f4;
}

.fkcrm-user-table thead th {
    padding: 10px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #e0e0e0;
}

.fkcrm-user-table tbody td {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.fkcrm-user-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.fkcrm-user-table tbody tr:hover {
    background-color: #f1f1f1;
}

.fkcrm-user-table tbody td:first-child {
    font-weight: bold;
}

.fkcrm-user-management-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.fkcrm-user-management-overlay-content {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    position: relative;
}

.fkcrm-user-management-close-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

.fkcrm-user-management-add-user-button {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.fkcrm-user-management-add-user-button:hover {
    background-color: #005177;
}

.fkcrm-user-management-user-table {
    width: 100%;
    border-collapse: collapse;
}

.fkcrm-user-management-user-table th, .fkcrm-user-management-user-table td {
    border: 1px solid #ddd;
    padding: 8px;
}

.fkcrm-user-management-user-table th {
    background-color: #f4f4f4;
    text-align: left;
}

/* Styles for Add User Form Fields */
.fkcrm-user-management-overlay-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.fkcrm-user-management-overlay-content input,
.fkcrm-user-management-overlay-content select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: border-color 0.3s;
}

.fkcrm-user-management-overlay-content input:focus,
.fkcrm-user-management-overlay-content select:focus {
    border-color: #0073aa;
    outline: none;
}

.fkcrm-user-management-overlay-content button {
    background-color: #0073aa;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.fkcrm-user-management-overlay-content button:hover {
    background-color: #0056b3;
}

.fkcrm_note {
    background-color: #DFE2E8;
}
