/**
 * My Products Page Styles
 */

/* Main container */
.fwc-my-products {
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow: hidden;
}

/* Welcome section */
.fwc-my-products h2 {
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 28px;
}

.fwc-my-products > p {
    margin-bottom: 10px;
}

/* Search form - inline layout */
.fwc-search-form {
    background: #f5f5f5;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
    max-width: 100%;
    box-sizing: border-box;
}

.fwc-search-form form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.fwc-search-form .search-fields {
    display: flex;
    gap: 10px;
    flex: 1 1 100%;
    min-width: 0;
}

.fwc-search-form .search-field {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.fwc-search-form .search-field label {
    display: block;
    margin-bottom: 5px;
    margin-top: 0;
    font-weight: 600;
    font-size: 14px;
}

.fwc-search-form .search-field input[type="text"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    height: 38px;
    box-sizing: border-box;
    margin: 0;
    min-width: 0;
}

.fwc-search-form .search-buttons {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    margin: 0;
}

.fwc-search-form button {
    padding: 9px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    height: 38px;
    box-sizing: border-box;
    line-height: 1.4;
}

.fwc-search-form button.frm-search {
    background: #0073aa;
    color: #fff;
}

.fwc-search-form button.frm-search:hover {
    background: #005a87;
}

.fwc-search-form button.frm-clear {
    background: #ddd;
    color: #333;
}

.fwc-search-form button.frm-clear:hover {
    background: #ccc;
}

/* Tabs container */
.fwc-reports-tabs {
    margin-top: 30px;
    max-width: 100%;
    overflow: hidden;
}

/* Tab navigation */
.fwc-reports-tabs .nav-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 -1px 0;
    border-bottom: 2px solid #ddd;
}

.fwc-reports-tabs .nav-tabs .nav-item {
    margin-right: 5px;
}

.fwc-reports-tabs .nav-tabs .nav-link {
    display: block;
    padding: 12px 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fwc-reports-tabs .nav-tabs .nav-link:hover {
    background: #e9e9e9;
}

.fwc-reports-tabs .nav-tabs .nav-link.active {
    background: #fff;
    color: #0073aa;
    font-weight: 600;
    border-bottom-color: #fff;
    position: relative;
    z-index: 1;
}

/* Tab content */
.fwc-reports-tabs .tab-content {
    border: 1px solid #ddd;
    border-top: none;
    padding: 20px;
    background: #fff;
    min-height: 300px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.fwc-reports-tabs .tab-pane {
    display: none;
}

.fwc-reports-tabs .tab-pane.active {
    display: block;
}

/* Report items */
.report-item {
    margin-bottom: 20px;
}

.report-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.report-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.report-card h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #0073aa;
}

.report-card p {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.report-card p strong {
    display: inline-block;
    min-width: 120px;
    font-weight: 600;
}

.report-card .btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.report-card .btn:hover {
    background: #005a87;
}

/* Empty state */
.tab-pane p {
    font-size: 16px;
    color: #666;
    text-align: center;
    padding: 40px 20px;
}

/* Pagination containers */
#listitems-hail-pagination,
#listitems-hurricane-pagination,
#listitems-swath-pagination {
    margin-top: 20px;
    text-align: center;
}

/* Button base styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #0073aa;
    color: #fff !important;
}

.btn-primary:hover {
    background: #005a87;
    color: #fff !important;
}

.btn-secondary {
    background: #ddd;
    color: #333 !important;
}

.btn-secondary:hover {
    background: #ccc;
    color: #333 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fwc-search-form .search-fields {
        flex-direction: column;
    }

    .fwc-search-form .search-field {
        min-width: 100%;
    }

    .fwc-reports-tabs .nav-tabs {
        flex-direction: column;
    }

    .fwc-reports-tabs .nav-tabs .nav-item {
        margin-right: 0;
        margin-bottom: 5px;
    }
}
