body {
    padding: 20px;
}

.date-input {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.date-input input {
    margin-right: 10px;
}

.btn-fetch {
    margin-top: 20px;
}

table {
    margin-top: 20px;
    font-size: 14px;
}

th,
td {
    font-size: 14px;
}

#loading-spinner {
    display: none;
    margin-top: 20px;
    text-align: center;
}

.container {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 85%;
}

.close {
    color: #aaa;
    
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.toggle-button {
    cursor: pointer;
    color: #007bff;
    text-decoration: none;
    font-size: 1.5em;
    display: inline-flex;
    align-items: center;
}

.expanded-details {
    display: none;
}

#flash-effect {
    transition: opacity 0.2s ease-out;
}

.small-toggle-button {
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 8px;
    border-color: #555;
    color: #555;
}

.smooth-hide {
    transition: opacity 0.2s ease-in-out;
    opacity: 0;
}

.hidden-column {
    display: none;
}

/* button styling */
.toggle-button {
    /* Resetting some defaults to be safe */
    font-size: 0.9em; 
    text-decoration: none;

    /* Sizing and Shape */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%; /* This makes it a circle */

    /* Colors and Transition */
    background-color: #e9ecef; /* Light gray background */
    border: 1px solid #ced4da;
    color: #495057; /* Icon color */
    transition: background-color 0.2s, color 0.2s;
}

.toggle-button:hover {
    background-color: #007bff; /* Bootstrap primary blue on hover */
    color: #fff; /* White icon color on hover */
    border-color: #0056b3;
}

.toggle-cell {
  vertical-align: middle;
}

.toggle-button.placeholder,
.toggle-button.placeholder:hover {
  visibility: hidden;
}

/* Add these styles to your style.css file */

#modal-screenshot-button {
    
    cursor: pointer;
    font-size: 20px;
    color: #007bff; /* Bootstrap blue */
    margin-right: 15px; /* Space between screenshot and close buttons */
    transition: color 0.3s ease;
}

#modal-screenshot-button:hover {
    color: #0056b3; /* Darker blue on hover */
}

/* Style for the button after screenshot is taken */
#modal-screenshot-button.ticked {
    color: #28a745; /* Green color for the checkmark */
    cursor: not-allowed; /* Change cursor to indicate it's disabled */
}

.modal-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px; /* Adds space below the header */
}

.modal-buttons {
    display: flex;
    align-items: center;
}

/* Add these new styles to your style.css file */

.modal-body {
    background-color: #f8f9fa; /* A very light gray background for the body */
    padding: 1rem;
}

.summary-card {
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.summary-card-header {
    padding: .75rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0,0,0,.03);
    border-bottom: 1px solid rgba(0,0,0,.125);
    font-size: 1.2rem;
}

.summary-card-body {
    padding: 1.25rem;
}

.summary-list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 0;
    border-bottom: 1px solid #eee;
}

.summary-list-group-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: #6c757d; /* Gray text for labels */
}

.summary-value {
    font-weight: 500;
    color: #212529; /* Dark text for values */
}

.summary-value.highlight {
    color: #007bff; /* Blue for highlighted values */
    font-weight: bold;
}

/* Add these new styles to your style.css file */

/* Make the summary modal wider */
#summaryModal .modal-content {
    width: 90%;
    max-width: 1200px;
}

/* Tab styling */
.nav-tabs .nav-link {
    color: #495057;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    font-weight: bold;
}

.tab-content {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    border-top: none;
}

/* Flexbox layout for card and chart */
.summary-tab-pane-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.summary-stats-container {
    flex: 1;
    min-width: 300px;
}

.summary-charts-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.summary-chart-box {
    padding: 1rem;
    background-color: #fff;
    border-radius: .25rem;
    border: 1px solid #dee2e6;
}

/* Reusing and enhancing old summary styles */
.summary-card {
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.summary-card-header {
    padding: .75rem 1.25rem;
    margin-bottom: 0;
    background-color: rgba(0,0,0,.03);
    border-bottom: 1px solid rgba(0,0,0,.125);
    font-size: 1.2rem;
}

.summary-card-body {
    padding: 1.25rem;
}

.summary-list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 0.25rem;
    border-bottom: 1px solid #eee;
    text-align: right;
}

.summary-list-group-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: #6c757d;
    text-align: left;
    padding-right: 1rem;
}

.summary-value {
    font-weight: 500;
    color: #212529;
}

.summary-value.highlight {
    color: #007bff;
    font-weight: bold;
}

/* --- Keep the placeholder for the expand button --- */
.toggle-button.placeholder,
.toggle-button.placeholder:hover {
  visibility: hidden;
}

.summary-card-body {
    padding: 1.25rem;
    font-size: 0.88rem; /* This is the key change. Default is 1rem. */
}

/* Add these new styles to your style.css file */

/* Ensure bounce modal is wide enough */
#bounceModal .modal-content {
    width: 90%;
    max-width: 1400px;
}

/* Layout for the deep dive tab */
.deep-dive-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.deep-dive-column {
    flex: 1;
    min-width: 400px;
}

.analysis-card {
    margin-bottom: 1.5rem;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    background-color: #fff;
}

.analysis-card-header {
    padding: .75rem 1.25rem;
    background-color: rgba(0,0,0,.03);
    border-bottom: 1px solid rgba(0,0,0,.125);
    font-weight: 500;
}

.analysis-card-body {
    padding: 1.25rem;
}

.analysis-list-group-item {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px solid #eee;
}

.analysis-list-group-item:last-child {
    border-bottom: none;
}

.analysis-label {
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.analysis-value {
    font-weight: bold;
    white-space: nowrap;
    padding-left: 1rem;
}

/* Add these new styles to your style.css file */

.send-time-icon {
    font-size: 0.9em;
    margin-right: 5px;
    color: #6c757d; /* Gray */
}

.send-time-icon.am {
    color: #ffc107; /* Yellow for sun */
}

.send-time-icon.pm {
    color: #0d6efd; /* Blue for moon */
}

.bounce-breakdown {
    font-size: 0.75rem;
    color: #6c757d;
    margin-left: 1rem;
}

/* Login Page Specific Styles */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #e9ecef;
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.login-logo {
    margin-bottom: 20px;
}

.login-logo svg {
    width: 150px;
    height: auto;
}

/* Custom button color for the login page */
.btn-custom-green {
    background-color: #03a486;
    border-color: #03a486;
    color: #fff; /* Set text color to white for better contrast */
}

/* Darker shade when hovering over the button */
.btn-custom-green:hover {
    background-color: #028b73;
    border-color: #027f68;
    color: #fff;
}

#ai-insights-body h3,
#ai-insights-body h4 { margin-top: 1rem; }
