/* Module container */
.module-container {
    padding: 20px;
    line-height: 1.6;
}

/* Logo styling */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.logo-container img {
    width: 60px;
    height: auto;
}

/* Table Containers */
.table-container {
    margin: 30px auto;
    max-width: 900px;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.table-container h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

.data-table th, 
.data-table td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: center;
}

.data-table th {
    background-color: #f2f2f2;
    color: var(--text-primary);
}

/* Highlight class for trading alerts */
.highlight {
    background-color: #ffcccb !important;
}

/* Chart Container Adjustments */
.card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    padding: 12px;
    font-weight: 600;
}

.card-body {
    padding: 20px;
}

/* Manual PTAX input styling */
.ptax-form-container {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.ptax-form-container h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.25rem;
}

.ptax-manual-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(44, 62, 80, 0.25);
}

/* Status message styling */
#ptax-form-status.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

#ptax-form-status.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Button hover effect */
.table-container .btn-primary:hover {
    background-color: #1a252f;
}

/* PTAX Quotes Table Styling */
#ptax-quotes-table .window-row {
    background-color: #f0f8ff;  /* Light blue background for window rows */
}

#ptax-quotes-container {
    max-height: 500px;
    overflow-y: auto;
}

#ptax-date-input {
    font-family: Arial, sans-serif;
}

/* Add zebra-striping but exclude window rows */
#ptax-quotes-table tr:not(.window-row):nth-child(even) {
    background-color: #f2f2f2;
}

#ptax-quotes-table tr:hover {
    background-color: #e6f7ff;
}

#ptax-quotes-error {
    text-align: center;
    font-weight: bold;
}

/* Responsive table */
.table-responsive {
    overflow-x: auto;
}

@media (max-width: 576px) {
    #ptax-quotes-table th,
    #ptax-quotes-table td {
        font-size: 0.85rem;
        padding: 6px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .data-table {
        font-size: 0.85rem;
    }
}

/* PTAX Preview Row Styling */
.ptax-preview-row {
    background-color: #e6f7e6; /* Light green background */
    font-weight: 500;
    border-top: 2px solid #2c3e50; /* Add separation line */
}

.ptax-preview-row td {
    color: #1a5928; /* Darker green text */
}