/* Pre-Market Analyzer Styles */

.pma-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.pma-form-container {
    display: flex;
    gap: 16px;
    margin-bottom: 2rem;
}

.pma-form__input {
    flex-grow: 1;
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.pma-form__select {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
}

.pma-btn {
    display: inline-block;
    padding: 8px 16px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.pma-btn--primary {
    background-color: #007bff;
    color: white;
}

.pma-btn--primary:hover {
    background-color: #0056b3;
}

.pma-results {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    min-height: 100px;
}

.pma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pma-grid-item--full {
    grid-column: 1 / -1;
}

.pma-results h2 {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 1rem;
}

.pma-results h3 {
    margin-top: 0;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.pma-results ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pma-results li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.pma-results li:last-child {
    border-bottom: none;
}

.pma-info-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 5px;
}

/* Modal Styles */
.pma-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pma-modal__content {
    width: 100%;
    max-width: 600px;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.pma-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.pma-modal__close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.pma-modal__close:hover,
.pma-modal__close:focus {
    color: black;
    text-decoration: none;
}

.pma-modal__body h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.pma-modal__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pma-modal__list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.pma-modal__list li:last-child {
    border-bottom: none;
}

.pma-trend {
    padding: 2px 6px;
    border-radius: 4px;
    color: white;
}

.pma-trend--up { background-color: #28a745; }
.pma-trend--down { background-color: #dc3545; }
.pma-trend--consolidation { background-color: #6c757d; }
