/* M&A Seeker Manager Frontend Styles */

.masm-frontend-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.masm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 15px;
}

.masm-header h1 {
    margin: 0;
    color: #23282d;
}

.masm-actions {
    display: flex;
    gap: 10px;
}

/* Filters */
.masm-filters {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 30px;
}

.masm-filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.masm-filter-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.masm-filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #23282d;
}

.masm-filter-group input[type="text"],
.masm-filter-group input[type="number"],
.masm-filter-group select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.masm-range-group .masm-range-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.masm-range-group input[type="number"] {
    flex: 1;
}

.masm-slider {
    margin-top: 10px;
}

.masm-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Results Table */
.masm-results {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
}

.masm-results-header {
    margin-bottom: 20px;
}

.masm-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.masm-table thead {
    background: #f9f9f9;
}

.masm-table th {
    text-align: left;
    padding: 12px;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    color: #23282d;
}

.masm-table th a {
    color: #23282d;
    text-decoration: none;
}

.masm-table th a:hover {
    color: #0073aa;
}

.masm-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.masm-table tbody tr:hover {
    background: #f9f9f9;
}

.masm-actions-cell {
    white-space: nowrap;
}

.button-small {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    margin-right: 5px;
}

.button-small:hover {
    background: #005a87;
    color: #fff;
}

/* Forms */
.masm-form {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 30px;
}

.masm-form h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    color: #23282d;
}

.masm-form h3:first-child {
    margin-top: 0;
}

.form-table {
    width: 100%;
    margin-bottom: 20px;
}

.form-table th {
    width: 200px;
    padding: 15px 10px 15px 0;
    text-align: left;
    vertical-align: top;
    font-weight: 600;
}

.form-table td {
    padding: 15px 10px;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="date"],
.form-table input[type="number"],
.form-table textarea {
    width: 100%;
    max-width: 500px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.form-table textarea {
    resize: vertical;
}

.form-table .small-text {
    width: 150px;
}

.masm-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.masm-checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.submit {
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

/* View Single */
.masm-view-content {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 30px;
}

.masm-view-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    color: #23282d;
}

.masm-view-content h3:first-child {
    margin-top: 0;
}

.masm-view-table {
    width: 100%;
    margin-bottom: 20px;
}

.masm-view-table th {
    width: 200px;
    padding: 10px 10px 10px 0;
    text-align: left;
    vertical-align: top;
    font-weight: 600;
    color: #555;
}

.masm-view-table td {
    padding: 10px;
    color: #23282d;
}

/* Modal */
.masm-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.5);
}

.masm-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 4px;
    width: 80%;
    max-width: 600px;
}

.masm-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.masm-close:hover,
.masm-close:focus {
    color: #000;
}

.masm-modal-content h2 {
    margin-top: 0;
}

.masm-modal-content form {
    margin-top: 20px;
}

.masm-modal-content input[type="file"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

.masm-modal-content .description {
    font-size: 12px;
    color: #666;
    margin: 10px 0;
}

#import-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 3px;
    display: none;
}

#import-result.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

#import-result.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Login Form */
.masm-login-wrapper {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.masm-login-wrapper h2 {
    margin-top: 0;
    color: #23282d;
}

/* Responsive */
@media (max-width: 1024px) {
    .masm-table {
        font-size: 14px;
    }
    
    .masm-table th,
    .masm-table td {
        padding: 8px;
    }
}

@media (max-width: 768px) {
    .masm-filter-row {
        flex-direction: column;
    }
    
    .masm-table {
        display: block;
        overflow-x: auto;
    }
    
    .masm-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Buttons */
.button,
.button-primary {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    background: #f7f7f7;
    color: #555;
    transition: all 0.2s;
}

.button:hover {
    background: #fafafa;
    border-color: #999;
    color: #23282d;
}

.button-primary {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.button-primary:hover {
    background: #005a87;
    border-color: #005a87;
    color: #fff;
}

.button-link-delete {
    color: #a00;
    background: transparent;
    border: none;
}

.button-link-delete:hover {
    color: #dc3232;
}
