/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Header and Footer */
.header, .footer {
    background-color: #000d16; /* Updated header and footer color */
    max-width: 1200px;
    margin: 20px auto;
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header h1, .footer h1 {
    margin: 0;
    font-size: 2.5em;
}

.header p, .footer p {
    margin: 0;
    font-size: 1.2em;
}

.header img {
    max-width: 100%; /* Adjusted to be responsive */
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Responsive styles */
@media (max-width: 768px) {
    .header h1, .footer h1 {
        font-size: 2em;
    }
    
    .header p, .footer p {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .header h1, .footer h1 {
        font-size: 1.8em;
    }

    .header img {
        max-width: 60%; /* Make the image smaller on mobile devices */
    }
}

/* Social media icons */
.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer .social-icons {
    margin-top: 10px;
}

.footer .social-icons a {
    color: white;
    margin: 0 10px;
    font-size: 1.5em;
    text-decoration: none;
}

.footer .social-icons a:hover {
    color: #00c482; /* Updated icon hover color */
}

/* Other styles */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.container:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Input Section */
.input-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.input-group input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.input-group input:focus {
    border-color: #00c482; /* Updated focus border color */
    outline: none;
}

/* Custom desktop-mode styling */
.desktop-mode {
    width: 1200px !important; /* Set a fixed width for desktop layout */
    margin: 0 auto; /* Center the content */
    transform: scale(1); /* Ensure no zooming occurs */
    overflow: visible; /* Ensure no content is clipped */
}

.desktop-mode input {
    /* Override any mobile-specific styles */
    height: auto !important;
}

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    margin: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    border-radius: 50%;
    left: 4px;
    bottom: 4px;
    background-color: white;
}

input:checked + .slider {
    background-color: #00c482; /* Updated toggle switch color */
}

input:checked + .slider:before {
    transform: translateX(22px); /* Adjusted for new width */
}

/* Plan Header */
.plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.plan-header h2 {
    margin: 0;
    font-size: 1.2em;
}

.plan-header:hover h2 {
    /*color: #00c482;  Updated hover color */
}

.toggle-button {
    background-color: #00c482; /* Updated button color */
    color: black;
    border: none;
    padding: 8px 16px;
    font-size: 0.9em;
    border-radius: 4px;
    cursor: pointer;
}

.toggle-button:hover {
    background-color: #009b77; /* Slightly darker shade */
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

table th {
    background-color: #00c482; /* Updated table header color */
    /*color: white;*/
    position: sticky;
    top: 0;
    z-index: 1;
}

tr.done {
    background-color: #d4edda;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Daily Trading Details */
.daily-trading-details h2 {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.details-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.details-col {
    flex: 1 1 150px;
    display: flex;
    flex-direction: column;
}

.details-col p {
    padding: 10px;
    background-color: #f4f4f4;
    border-radius: 4px;
    text-align: center;
}

.details-col p:hover {
    background-color: #e0e0e0;
}

/* Currency and Risk Input */
.currency-input, .risk-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.currency-input:focus, .risk-input:focus {
    border-color: #00c482; /* Updated focus border color */
    box-shadow: 0 0 5px rgba(0, 196, 130, 0.5);
    outline: none;
}

/* Trade Table */
.trade-table-container {
    overflow-x: auto;
}

.trade-table-container table {
    min-width: 800px;
}

.trade-table-container input[type="text"],
.trade-table-container select {
    width: auto;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.trade-table-container input[type="text"]:focus,
.trade-table-container select:focus {
    border-color: #00c482; /* Updated focus border color */
    outline: none;
    width:auto;
}

.trade-table-container.disabled {
    pointer-events: none; /* Prevent interactions */
    opacity: 0.5; /* Make it visually indicate that it's disabled */
    background-color: #e9ecef; /* Light background color for disabled state */
}

.add-row-button, .remove-row-button {
    background-color: #00c482; /* Updated button color */
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 1.2em;
    border-radius: 4px;
    cursor: pointer;
}

.add-row-button {
    background-color: #00c482;
}

.add-row-button:hover {
    background-color: #009b77;
}

.remove-row-button {
    background-color: #dc3545;
}

.remove-row-button:hover {
    background-color: #c82333;
}

/* Dropdown Colors */
.green-dropdown {
    background-color: #d4edda;
}

.red-dropdown {
    background-color: #f8d7da;
}

/* Checkbox Color */
.selected-checkbox:checked {
    background-color: #00c482; /* Updated checkbox color */
    color: white;
}

/* Return and PnL Colors */
.positive-return, .positive-pnl {
    color: #28a745;
    font-weight: bold;
}

.negative-return, .negative-pnl {
    color: #dc3545;
    font-weight: bold;
}

/* Alert Popup */

.alert-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffcccc; /* Light red background */
    color: #333; /* Dark text color for readability */
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #f44336; /* Red border */
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
    animation: fadeIn 0.3s ease-in-out;
    max-width: 80%;
    text-align: center;
}

.alert-content {
    font-family: 'Arial', sans-serif;
    font-size: 16px;
}

.alert-success {
    background-color: #d4edda; /* Light green background */
    color: #155724; /* Dark green text color */
    border: 2px solid #c3e6cb; /* Green border */
}


/* Interactive Toggle Switch */
.toggle {
    width: 50px;
    height: 28px;
}

.slider:before {
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
}

input:checked + .slider {
    background-color: #00c482; /* Updated toggle switch color */
}

input:checked + .slider:before {
    transform: translateX(22px); /* Adjusted for new width */
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .plan-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .trade-table-container table {
        min-width: 600px;
    }
}

@media screen and (max-width: 480px) {
    .header h1, .footer h1 {
        font-size: 1.8em;
    }

    .header img {
        max-width: 60%; /* Adjusted for mobile devices */
    }

    .details-col p {
        padding: 8px;
        font-size: 0.9em;
    }

    .add-row-button, .remove-row-button {
        padding: 4px 8px;
        font-size: 1em;
    }

    .toggle-button {
        padding: 6px 12px;
        font-size: 0.8em;
    }

    .trade-table-container table {
        min-width: 100%;
    }

    .alert-popup {
        padding: 15px;
        font-size: 14px;
    }
}

@media screen and (max-width: 320px) {
    .toggle {
        width: 40px;
        height: 24px;
    }

    .slider:before {
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
    }
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hover and Focus Animations */
input:focus, select:focus, button:focus {
    outline: 2px solid #00c482; /* Updated focus outline color */
    outline-offset: -2px;
}

button:hover, .toggle-button:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}



/* Compounding planner table: make inputs full-width inside cells 
.planner-table input[type="number"] {
  width: 100%;
  box-sizing: border-box;
}  */


/* Compounding planner table: use the same look and full width */
.planner-table .risk-input {
  width: 100%;
  box-sizing: border-box;
}



/* Keep action buttons tidy in the planner config row */
.planner-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}


/* Compounding Planner tweaks */
.details-col label {
  font-weight: 600;
  margin-bottom: 6px;
}


/* icon-only buttons inside planner actions */
.icon-button {
  width: 40px;
  height: 36px;              /* matches your inputs’ feel */
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

/* make icons visible on green button too */
.icon-button { color: #fff; }
.icon-button i { pointer-events: none;  font-size: 14px;    }  /* ensure clicks hit the button */

