﻿/* 
 * Copyright © 2024 Preetech Software Solutions. All Rights Reserved.
 * Developed by Preetech Software Solutions.
 * This file is part of Close The Loop Tool.
 */

html, body {
    background: #fff;
    font-family: Verdana, 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: normal;
    color: #888888;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Wrapper for the entire page content */
form {
    min-height: 100vh; /* Ensures the form takes the full height of the viewport */
    display: flex;
    flex-direction: column;
}

/* Main page wrapper should flex-grow to fill available space */
.page-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* This pushes the footer down when content is shorter than viewport */
    padding: 10px;
}

/* Container Styling */
.container {
    width: 80%;
    margin: 0 auto;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.header {
    display: flex;
    align-items: center; /* Align items vertically centered */
    position: relative;
}

.logo {
    margin-right: auto; /* Push the title to the center */
}

.title {
    flex: 1; /* Push the title to the center */
    text-align: center;
}

h1 {
    text-align: center;
    color: #007bff;
    margin: 0; /* Remove default margin */
    padding-left: 10px; /* Optional: Add space between logo and text */
}

h2 {
    text-align: center;
    color: #007bff;
    margin-bottom: 20px;
    margin-left: 100px;
}

.form-group {
    margin-bottom: 15px;
}

    /* Input styling (textboxes, dropdowns) */
    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        padding: 10px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-sizing: border-box;
        resize: none; /* Prevent textarea from being resizable */
    }

label {
    font-weight: bold;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    }

/* Button Styling */
.form-buttons {
    text-align: center;
    margin-top: 20px;
}

.btn {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.btn-save {
    background-color: #28a745;
    color: white;
}


.btn-clear {
    background-color: #28a745;
    color: white;
}

.btn-preview {
    background-color: #007bff;
    color: white;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

.disabled {
    background-color: #cccccc;
    color: #666666;
    border: 1px solid #999999;
    cursor: not-allowed;
    opacity: 0.6;
/*  pointer-events: none; */
}

.btnSelect {
    background-color: #4CAFEB; /* Primary color */
    color: white; /* Text color */
    border: none; /* No border */
    padding: 10px 20px; /* Padding */
    font-size: 16px; /* Font size */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer on hover */
    transition: background-color 0.3s ease; /* Smooth transition */
}

    .btnSelect:hover {
        background-color: #001CAF; /* Darker shade on hover */
        color: #fff; /* Keep text color white */
    }


/* Context Menu Styling */
#contextMenu {
    display: none;
    position: absolute;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 180px;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

    #contextMenu a {
        display: block;
        padding: 10px;
        color: #007bff;
        text-decoration: none;
        font-size: 14px;
    }

        #contextMenu a:hover {
            background-color: #f1f1f1;
        }

/* Modal Styling */
#previewModal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#modalContent {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #333;
    width: 50%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#closeBtn {
    float: right;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

#previewContent {
    margin-top: 20px;
    font-size: 16px;
}


/* Modal styling for warningDiv */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 30%; /* You can adjust the width */
    border-radius: 8px;
    position: relative;
    text-align: center;
}

/* Close button (X) */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

    .close:hover,
    .close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
    }

/* Warning message styling */
.warning-message {
    /*background-color: #f8d7da; 
                border: 1px solid #f5c6cb; 
                border-radius: 8px; 
            padding: 15px;
    */
    color: #721c24;
}


/*EMAIL GRID VIEW */

/* Add grid view styles */
.grid-view {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

    .grid-view th, .grid-view td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
    }

    .grid-view th {
        background-color: #4CAFEB;
        color: white;
    }

    .grid-view tr:hover {
        background-color: #f1f1f1;
    }

    .grid-view tr:nth-child(even) {
        background-color: #f9f9f9;
    }

    .grid-view tr:nth-child(odd) {
        background-color: #ffffff;
    }

/* New button styling */
.btn-new {
    background-color: #4CAFEB;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

    .btn-new:hover {
        background-color: #0056b3;
    }


/* Ensures the footer sticks to the bottom of the page */
.footer-panel {
    background-color: #f1f1f1;
    text-align: center;
    padding: 10px 0;
    font-size: 10px;
    color: #113578;
    width: 100%;
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
}


/* Styling for invalid (empty) required fields */
.required {
    color: red;
    font-weight: bold;
}

input[type="text"] {
    border: 1px solid #ccc; /* Default border */
    padding: 5px;
}

    input[type="text"]:focus {
        outline: none;
    }

.info-icon {
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    padding: 1px 7px;
    margin-left: 5px;
    cursor: pointer;
    display: inline-block;
    font-size: 12px;
}

/* Style for the tooltip/help text */
.help-text {
    display: inline-block;
    margin-left: 10px;
    font-size: 12px;
    color: gray;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    padding: 5px;
    border-radius: 5px;
    position: relative;
    top: -5px; /* Adjust this value as needed */
}

/* Style for the DropDownList */
.styled-dropdown {
    background-color: #4CAF50; /* Green background */
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    border: 2px solid #3e8e41;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Dropdown hover style */
.styled-dropdown:hover {
    background-color: #45a049; /* Slightly lighter green on hover */
}

/* Dropdown focus style */
.styled-dropdown:focus {
    outline: none;
    box-shadow: 0px 0px 5px 2px rgba(0, 150, 0, 0.5);
}