/* App Store Connect Page Styles */

/* Base styles inherited from styles.css */
@import url('/css/styles.css');

/* Page-specific config overrides */
.config-controls {
    align-items: flex-end;
}

/* Data Sections */
.data-section {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid var(--text-color);
    margin-bottom: 20px;
}

.data-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

/* Reviews Table - Page-specific overrides */
#reviews-table.display {
    table-layout: fixed;
}

#reviews-table.display th,
#reviews-table.display td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Column-specific widths for reviews table */
#reviews-table.display th:nth-child(1),
#reviews-table.display td:nth-child(1) {
    width: 15%;
    min-width: 120px;
}

#reviews-table.display th:nth-child(2),
#reviews-table.display td:nth-child(2) {
    width: 10%;
    min-width: 80px;
}

#reviews-table.display th:nth-child(3),
#reviews-table.display td:nth-child(3) {
    width: 20%;
    min-width: 150px;
}

#reviews-table.display th:nth-child(4),
#reviews-table.display td:nth-child(4) {
    width: 45%;
    min-width: 250px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}

#reviews-table.display th:nth-child(5),
#reviews-table.display td:nth-child(5) {
    width: 10%;
    min-width: 80px;
}

#reviews-table_wrapper .dataTables_info,
#reviews-table_wrapper .dataTables_paginate .paginate_button,
#reviews-table_wrapper .dataTables_paginate a.paginate_button {
    color: var(--text-color) !important;
}

#reviews-table_wrapper .dataTables_paginate .paginate_button.current,
#reviews-table_wrapper .dataTables_paginate a.paginate_button.current,
#reviews-table_wrapper .dataTables_paginate a.paginate_button:hover:not(.disabled):not(.current) {
    color: var(--bg-color) !important;
}

#reviews-table_wrapper .dataTables_info {
    color: var(--text-color) !important;
}

/* Rating Stars */
.rating-stars {
    color: #f5a623;
    font-size: 1.2em;
}

/* Modal - Page-specific overrides */
.modal {
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
}

.close-modal {
    color: var(--text-color-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--text-color);
}

.modal-body {
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
}