/**
 * LiteTheme Reports Frontend CSS
 */

/* Forms */
.lt-reports-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.lt-reports-field {
    margin-bottom: 20px;
}

.lt-reports-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
}

.lt-reports-field input[type="text"],
.lt-reports-field input[type="url"],
.lt-reports-field input[type="email"],
.lt-reports-field textarea,
.lt-reports-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.lt-reports-field textarea {
    resize: vertical;
    min-height: 80px;
}

.lt-reports-field small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

.lt-reports-field .required {
    color: #dc3232;
}

/* Advanced fields */
.lt-reports-advanced {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.lt-reports-toggle-advanced {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.lt-reports-toggle-advanced:hover {
    color: #00a0d2;
}

/* Duplicate suggestions */
.lt-reports-duplicate-suggestions {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 15px;
    margin-top: 10px;
}

.lt-reports-duplicate-header {
    font-weight: 600;
    margin-bottom: 10px;
}

.lt-reports-duplicate-item {
    margin-bottom: 8px;
    padding: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.lt-reports-duplicate-item a {
    text-decoration: none;
    color: #0073aa;
}

.lt-reports-duplicate-item a:hover {
    text-decoration: underline;
}

.lt-reports-duplicate-score {
    float: right;
    color: #666;
    font-size: 13px;
}

/* Status chips */
.lt-reports-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.lt-reports-status-new { background: #e3f2fd; color: #1976d2; }
.lt-reports-status-triage { background: #fff3e0; color: #f57c00; }
.lt-reports-status-in_progress { background: #f3e5f5; color: #7b1fa2; }
.lt-reports-status-needs_info { background: #fce4ec; color: #c2185b; }
.lt-reports-status-blocked { background: #ffebee; color: #d32f2f; }
.lt-reports-status-review { background: #e8f5e9; color: #388e3c; }
.lt-reports-status-done { background: #e8f5e9; color: #2e7d32; }
.lt-reports-status-wontfix { background: #eceff1; color: #546e7a; }
.lt-reports-status-duplicate { background: #efebe9; color: #5d4037; }
.lt-reports-status-rejected { background: #fafafa; color: #616161; }
.lt-reports-status-scoped { background: #e1f5fe; color: #0277bd; }

/* Attachments */
.lt-reports-attachments-dropzone {
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lt-reports-attachments-dropzone:hover,
.lt-reports-attachments-dropzone.dragover {
    border-color: #0073aa;
    background: #f7f7f7;
}

.lt-reports-attachments-preview {
    margin-top: 15px;
}

.lt-reports-file-item {
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    background: #f1f1f1;
    border-radius: 3px;
    font-size: 13px;
}

.lt-reports-remove-file {
    margin-left: 10px;
    background: none;
    border: none;
    color: #dc3232;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

/* Submit button */
.lt-reports-submit-wrapper {
    margin-top: 30px;
}

.lt-reports-submit {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.lt-reports-submit:hover {
    background: #00a0d2;
}

.lt-reports-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.lt-reports-loading {
    display: inline-block;
    margin-left: 15px;
    color: #666;
}

/* Messages */
.lt-reports-messages {
    margin-top: 20px;
}

.lt-reports-success,
.lt-reports-error,
.lt-reports-notice {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

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

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

.lt-reports-notice {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.lt-reports-notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* My Submissions */
.lt-reports-my-submissions {
    max-width: 1200px;
    margin: 0 auto;
}

.lt-reports-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.lt-reports-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lt-reports-filter label {
    font-weight: 600;
}

.lt-reports-filter select,
.lt-reports-filter input[type="search"] {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.lt-reports-search {
    flex: 1;
    min-width: 200px;
}

/* Ticket list */
.lt-reports-ticket-list {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.lt-reports-ticket-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.lt-reports-ticket-item:last-child {
    border-bottom: none;
}

.lt-reports-ticket-item:hover {
    background: #f9f9f9;
}

.lt-reports-ticket-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.lt-reports-ticket-type {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.lt-reports-type-bug {
    background: #fee;
    color: #c33;
}

.lt-reports-type-feature {
    background: #efe;
    color: #3c3;
}

.lt-reports-ticket-id {
    color: #666;
    font-size: 14px;
}

.lt-reports-ticket-title {
    flex: 1;
    margin: 0;
    font-size: 16px;
}

.lt-reports-ticket-title a {
    text-decoration: none;
    color: #333;
}

.lt-reports-ticket-title a:hover {
    color: #0073aa;
}

.lt-reports-ticket-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.lt-reports-priority {
    font-weight: 500;
}

.lt-reports-priority-low { color: #666; }
.lt-reports-priority-medium { color: #f57c00; }
.lt-reports-priority-high { color: #d32f2f; }
.lt-reports-priority-urgent { color: #b71c1c; font-weight: 700; }

.lt-reports-no-results {
    padding: 40px;
    text-align: center;
    color: #666;
}

/* Public Portal */
.lt-reports-public-portal {
    max-width: 1200px;
    margin: 0 auto;
}

.lt-reports-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.lt-reports-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.lt-reports-tab:hover {
    color: #333;
}

.lt-reports-tab.active {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

.lt-reports-portal-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Portal items */
.lt-reports-portal-list {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.lt-reports-portal-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.lt-reports-portal-item:last-child {
    border-bottom: none;
}

.lt-reports-portal-item:hover {
    background: #f9f9f9;
}

.lt-reports-portal-votes {
    width: 60px;
    margin-right: 20px;
    text-align: center;
}

.lt-reports-vote-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.lt-reports-vote-btn:hover {
    background: #e8e8e8;
    border-color: #bbb;
}

.lt-reports-vote-btn.voted {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.lt-reports-vote-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.lt-reports-vote-arrow {
    font-size: 16px;
    line-height: 1;
}

.lt-reports-vote-count {
    font-weight: 600;
    font-size: 14px;
}

.lt-reports-portal-content {
    flex: 1;
}

.lt-reports-portal-title {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.lt-reports-portal-title a {
    text-decoration: none;
    color: #333;
}

.lt-reports-portal-title a:hover {
    color: #0073aa;
}

.lt-reports-portal-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.lt-reports-component {
    background: #e8e8e8;
    padding: 2px 8px;
    border-radius: 3px;
}

/* Pagination */
.lt-reports-pagination {
    margin-top: 20px;
    text-align: center;
}

.lt-reports-pagination a,
.lt-reports-pagination span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

.lt-reports-pagination a:hover {
    background: #f5f5f5;
}

.lt-reports-pagination .current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
    .lt-reports-filters,
    .lt-reports-portal-filters {
        flex-direction: column;
    }
    
    .lt-reports-filter {
        width: 100%;
    }
    
    .lt-reports-ticket-header {
        flex-wrap: wrap;
    }
    
    .lt-reports-ticket-meta {
        flex-wrap: wrap;
    }
    
    .lt-reports-portal-item {
        flex-direction: column;
    }
    
    .lt-reports-portal-votes {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .lt-reports-vote-btn {
        flex-direction: row;
        justify-content: center;
    }
}