/* Combined styles.css for DEV Oak La Email */
/* Location: /devform/css/styles.css */

/* Styles for index.php (main site layout) */
.devoaklaemail-container {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    background-color: #FFF8E6; /* Soft Cream background */
}
.devoaklaemail-container header {
    background: linear-gradient(90deg, #FF6B6B, #FFD60A); /* Coral Red to Golden Yellow gradient */
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #006D77; /* Deep Teal border */
    box-sizing: border-box;
}
.devoaklaemail-container .logo-left,
.devoaklaemail-container .logo-right {
    width: 100px;
    height: 75px;
    background-color: #FFF8E6; /* Soft Cream for logo placeholders */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    border: 1px solid #2D3436; /* Charcoal Gray border */
    border-radius: 4px;
}
.devoaklaemail-container .site-name {
    font-size: 24px;
    font-weight: bold;
    color: #2D3436; /* Charcoal Gray text */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.devoaklaemail-container .main-content {
    display: flex;
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}
.devoaklaemail-container .sidebar-left {
    width: 200px;
    background-color: #006D77; /* Deep Teal for sidebar */
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
}
.devoaklaemail-container .sidebar-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.devoaklaemail-container .sidebar-left li {
    margin: 10px 0;
    padding: 10px;
    background-color: #FFD60A; /* Golden Yellow for menu items */
    text-align: center;
    font-size: 16px;
    color: #2D3436; /* Charcoal Gray text */
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.devoaklaemail-container .sidebar-left li:hover {
    background-color: #FF6B6B; /* Coral Red on hover */
    color: #FFF8E6; /* Soft Cream text on hover */
}
.devoaklaemail-container .content {
    flex: 1;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}
.devoaklaemail-container .content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #2D3436; /* Charcoal Gray text */
    background-color: #FFF8E6; /* Soft Cream background */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.devoaklaemail-container .sidebar-right {
    width: 200px;
    background-color: #006D77; /* Deep Teal for sidebar */
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    border-radius: 8px;
}
.devoaklaemail-container .sidebar-right p {
    margin: 0;
    font-size: 16px;
    color: #FFF8E6; /* Soft Cream text */
}
.devoaklaemail-container footer {
    background-color: #006D77; /* Deep Teal for footer */
    padding: 20px;
    text-align: center;
    border-top: 2px solid #FF6B6B; /* Coral Red border */
    box-sizing: border-box;
}
.devoaklaemail-container footer p {
    margin: 0;
    font-size: 14px;
    color: #FFF8E6; /* Soft Cream text */
}
.devoaklaemail-container footer a {
    color: #FFD60A; /* Golden Yellow for links */
    text-decoration: none;
    margin: 0 5px;
}
.devoaklaemail-container footer a:hover {
    color: #FF6B6B; /* Coral Red on hover */
}

/* Styles for creator.php (form creator interface) */
.form-creator-container {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    box-sizing: border-box;
    background-color: #FFF8E6;
}
.form-creator-container header {
    background: linear-gradient(90deg, #FF6B6B, #FFD60A);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #006D77;
    box-sizing: border-box;
}
.form-creator-container .logo-left,
.form-creator-container .logo-right {
    width: 100px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.form-creator-container .logo-left {
    margin-right: 0px;
}
.form-creator-container .logo-right {
    margin-left: 0px;
}
.form-creator-container .site-name {
    font-size: 24px;
    font-weight: bold;
    color: #2D3436;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.form-creator-container .creator-content {
    flex: 1;
    padding: 20px;
    text-align: center;
}
.form-creator-container h2 {
    font-size: 28px;
    color: #2D3436;
    margin-bottom: 20px;
}
.form-creator-container h3 {
    font-size: 20px;
    color: #2D3436;
    margin-top: 30px;
}
.form-creator-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}
.form-creator-container label {
    font-size: 16px;
    color: #2D3436;
    text-align: left;
}
.form-creator-container input,
.form-creator-container select,
.form-creator-container textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #FFD60A;
    border-radius: 4px;
    background-color: #FFFFFF;
    color: #2D3436;
    width: 100%; /* Ensure inputs take full width */
    box-sizing: border-box; /* Prevent padding from causing overflow */
}
.form-creator-container button {
    padding: 10px;
    font-size: 16px;
    background-color: #FF6B6B;
    color: #FFF8E6;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.form-creator-container button:hover {
    background-color: #006D77;
}
.form-creator-container textarea[rows="10"] {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #006D77;
    border-radius: 4px;
}
.form-creator-container .field-entry {
    border: 1px solid #006D77;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left; /* Override parent text-align: center */
    width: 100%; /* Ensure full width within parent */
    box-sizing: border-box; /* Prevent padding from causing overflow */
}
.form-creator-container .field-entry label {
    margin: 0; /* Remove any inherited margins that might shift text */
}
.form-creator-container .field-entry button {
    background-color: #FF6B6B;
    color: #FFF8E6;
    padding: 8px;
    font-size: 14px;
}
.form-creator-container .field-entry button:hover {
    background-color: #006D77;
}
.form-creator-container .options-container {
    margin-top: 10px;
}

/* Custom tooltip styles for Generate Form button */
.tooltip-container {
    position: relative;
}
.custom-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    color: #000000;
    padding: 5px 10px;
    border: 1px solid #000000;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 10;
}
.custom-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #000000 transparent transparent transparent;
}
.custom-tooltip::after {
    content: '⚠';
    color: #ff8c00;
    margin-right: 5px;
}
.tooltip-container.show-tooltip .custom-tooltip {
    display: block;
}
/* Styles for admin.php (form submissions interface) */
/* Styles for admin.php (form submissions interface) */

.container {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9; /* Light gray background to match screenshot */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reset-button-wrapper {
    text-align: center; /* Center the Reset button horizontally */
    margin-bottom: 15px; /* Add space below the button */
}

.btn-reset {
    background-color: #dc3545; /* Red background for Reset button */
    color: #FFFFFF; /* White text */
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn-reset:hover {
    background-color: #c82333; /* Darker red on hover */
}

.table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF; /* White background for table */
    border: 1px solid #ddd; /* Light gray border to match screenshot */
}

.table th, .table td {
    padding: 10px;
    border: 1px solid #ddd; /* Light gray border */
    text-align: left;
    color: #2D3436; /* Charcoal Gray text, consistent with your theme */
}

/* Remove right border for the last cell in each row to match screenshot */
.table th:last-child,
.table td:last-child {
    border-right: none;
}

.table th {
    background-color: #f5f5f5; /* Light gray header background to match screenshot */
    font-weight: bold;
}

.table td {
    background-color: #FFFFFF; /* White cells to match screenshot */
}

.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: 4px;
    margin: 0 5px;
    transition: background-color 0.3s ease;
}

.btn-primary {
    padding: 6px 12px; /* Smaller padding for View button */
    font-size: 13px; /* Smaller font size for View button */
    background-color: #007bff; /* Blue to match screenshot */
    color: #FFFFFF; /* White text */
    border: 1px solid #007bff;
}

.btn-primary:hover {
    background-color: #90EE90; /* Light green on hover */
    border-color: #90EE90; /* Match border to background */
}

.btn-primary:active,
.btn-primary-active-delay {
    background-color: #004085; /* Darker blue when pressed or during delay */
    border-color: #004085; /* Match border to background */
}

.btn-primary-selected {
    background-color: #004085; /* Darker blue for selected state */
    border-color: #004085; /* Match border to background */
    color: #FFFFFF; /* White text */
}

.btn-primary-selected:hover {
    background-color: #90EE90; /* Light green on hover, even when selected */
    border-color: #90EE90;
}

.btn-secondary {
    padding: 8px 16px; /* Keep original padding for export buttons */
    font-size: 14px; /* Keep original font size for export buttons */
    background-color: #6c757d; /* Gray to match screenshot */
    color: #FFFFFF; /* White text */
    border: 1px solid #6c757d;
}

.btn-secondary:hover {
    background-color: #90EE90; /* Light green on hover */
    border-color: #90EE90; /* Match border to background */
}

.btn-secondary:active,
.btn-secondary-active-delay {
    background-color: #4A5459; /* Darker gray when pressed or during delay */
    border-color: #4A5459; /* Match border to background */
}

.alert-danger {
    background-color: #FF6B6B; /* Coral Red, keeping your theme */
    color: #FFF8E6; /* Soft Cream text */
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.text-danger {
    color: #FF6B6B; /* Coral Red, keeping your theme */
}

.text-warning {
    color: #FFD60A; /* Golden Yellow, keeping your theme */
}

h1, h2 {
    color: #2D3436; /* Charcoal Gray, consistent with your theme */
    text-align: left; /* Align left to match screenshot */
    margin: 20px 0;
}