﻿/* Forms CSS - Styling specific to Add, Edit, Delete, and Permission Denied forms */

/* General Styles */
body {
    font-family: 'Roboto', sans-serif; /* Match the font from main.css */
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* General Form Styling */
form {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align all form elements to the left */
    gap: 20px; /* Vertical spacing between form groups */
    margin-top: 20px;
    width: 60%; /* Adjust width for alignment with the title */
    margin-left: auto;/* Center the form horizontally */
    margin-right: auto;
}

/* Permission Denied Styles */
.permission-denied-container {
    text-align: center;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    max-width: 400px;
    background-color: #f9f9f9;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.permission-denied-title {
    color: red;
    font-size: 24px;
    margin-bottom: 15px;
}

.permission-denied-message {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}


/*Return Button*/
.return-btn {
    font-size: 16px;
    padding: 10px 20px;
    background-color: #007BFF; /* Bootstrap Primary Blue */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 15px;
    transition: background-color 0.3s ease;
}

    .return-btn:hover {
        background-color: #0056b3; /* Darker blue on hover */
    }

/* Header Styles */
.main-header {
    display: flex;
    align-items: center; /* Vertical alignment */
    justify-content: flex-start; /* Left alignment */
    background: white;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    position: sticky;
    top: 0;
    gap: 20px; /* Spacing between elements */
}

.menu-header {
    margin-left: auto; /* Push the button to the right */
}


.header-container {
    display: flex;
    align-items: center; /* Align logo and title vertically */
    gap: 15px; /* Spacing between logo and title */
}

.logo {
    max-height: 50px;
    margin-right: 15px;
}

.app-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.user-info {
    display: flex;
    align-items: center; /* Vertical alignment */
    font-size: 16px;
    color: #333;
    margin-left: auto; /* Push user info to the far right */
    gap: 15px; /* Space between Welcome text and Logout button */
}

.logout-btn {
    background: #dc3545; /* Red button */
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    margin-left: 15px; /* Adds spacing between the Welcome message and button */
    transition: background 0.3s ease;
}

    .logout-btn:hover {
        background: #c82333;
    }

/* Form Groups */
form .form-group {
    display: flex;
    flex-direction: column;
    width: 100%; /* Let the form groups span the form */
    margin-bottom: 15px;
}

form label {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px; /* Add spacing below labels */
    text-align: left;
}

form input,
form textarea,
form select {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%; /* Let the fields span the form group */
}

form textarea {
    resize: vertical;
}

/* Checkbox Styling */
input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

/* Form Buttons */
form .form-actions {
    display: flex;
    justify-content: flex-start; /* Left-align buttons */
    gap: 10px; /* Add spacing between buttons */
    margin-top: 20px;
}

form button {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

button#btnSubmit {
    background-color: #28a745; /* Green Submit Button */
    color: white;
}

    button#btnSubmit:hover {
        background-color: #218838; /* Darker Green on hover */
    }

/* Style the Confirm Delete button */
button#btnConfirmDelete {
    background-color: #FFA500; /* Orange */
    color: white;
    border: none;
}

    button#btnConfirmDelete:hover {
        background-color: #e59400; /* Darker Orange on hover */
    }

button#btnCancel {
    background-color: #dc3545; /* Red Cancel Button */
    color: white;
}

    button#btnCancel:hover {
        background-color: #c82333; /* Darker Red on hover */
    }

/* Update Button Styling */
button#btnUpdate {
    background-color: #28a745; /* Green Update Button */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    button#btnUpdate:hover {
        background-color: #218838; /* Darker Green on hover */
    }

/* Title Styling */
h2.text-center {
    text-align: center; /* Center the title */
    margin: 20px 0; /* Add vertical spacing */
    font-size: 24px; /* Ensure the title stands out */
    font-weight: bold;
    color: #007bff; /* Match the app's primary color */
}

/* Warning Message Styles */
.warning-message {
    margin: 20px auto;
    font-size: 18px;
    font-weight: bold;
    color: #dc3545; /* Red for warning */
    max-width: 80%; /* Limit width for readability */
    text-align: center;
}

/* 🎯 Only affect Franchise Action screens */
.franchise-action-form {
    display: block;
    width: 100%;
    padding: 20px;
}

.franchise-action-container .row > .col-xl-11 {
    max-width: 100%;
}
