

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 90%;
    max-width: auto;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation Styles */
nav {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0;
    
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: left;
    
}

nav ul li {
    margin: 0 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
}

/* Header Styles */
header {
    /* background-color: #3498db;
    color: white; */
    text-align: center;
    padding: 10px 0;
}

p {
    text-align: center;
    max-width: 600px;
    margin: 20px auto;
    color: #666;
}

/* Form Styles */
form {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 15px auto;
}

form h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Label Styles */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #2c3e50;
}

/* Input Styles */
input[type="text"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    resize: vertical; /* Allow vertical resizing */
    min-height: 40px; /* Provide a default height */
    height: 150px;
    line-height: 1.5;
}

/* Textarea-specific enhancements */
textarea:focus {
    outline: none;
    /* border-color: #3498db; */
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

/* Optional: Add placeholder styling for textarea */
textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* Button Styles */
button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #2980b9;
}

/* Strategy Fields Styles */
#strategy-fields {
    margin-bottom: 20px;
}

#strategy-fields label {
    margin-top: 10px;
}


/* static/css/styles.css */
.button-container {
    display: flex;
    justify-content: space-around; /* Optional: Adjust spacing */
    align-items: center; /* Aligns buttons vertically if heights differ */
    gap: 10px; /* Adds space between buttons */
}

.table-container {
    margin: 20px auto;
    width: 90%;
    overflow-x: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: #f9f9f9;
}

th, td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

th {
    background-color: #2C3E50;
    color: white;
    font-weight: bold;
}

td {
    color: #333;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #dee8f4;
}


td.description {
    max-width: 250px; /* Limit the width */
    max-height: 50px; /* Limit the height */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
}

td.description:hover {
    white-space: normal;
    overflow: visible;
    max-height: none;
    background: #dee8f4;
    z-index: 10;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    padding: 12px;
}

.btn-success {
    background-color: green;
    color: white;
}

.text-success {
    color: green;
    margin-left: 10px;
}


/* Responsive Design */
@media screen and (max-width: 600px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }

    form {
        width: 95%;
        padding: 20px;
    }

    
}



/* Home Page Styles */
.welcome-section {
    text-align: center;
    max-width: 600px;
    margin: 50px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.welcome-section h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.welcome-section p {
    color: #666;
}


/* Style for the overall form container */
form {
    font-family: Arial, sans-serif;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Label styling */
label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

/* Style for the strategy selection */
#strategy-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

/* Style for each checkbox container */
#strategy-selection div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
    font-size: 16px;
}

/* Style for checkboxes */
#strategy-selection input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4CAF50; /* Green accent color */
    cursor: pointer;
}

/* Label for the checkbox */
#strategy-selection label {
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: color 0.3s ease;
}

/* Change label color on hover */
#strategy-selection label:hover {
    color: #4CAF50;
}

/* Add focus effect for checkboxes */
#strategy-selection input[type="checkbox"]:focus {
    outline: 2px solid #4CAF50;
    border-radius: 4px;
}

/* Make the form inputs and buttons look more cohesive */
input, select, button {
    padding: 10px;
    margin-bottom: 15px;
    width: 100%;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
}

button {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

/* Add responsiveness */
@media (max-width: 600px) {
    #strategy-selection {
        flex-direction: column;
        gap: 10px;
    }
}
