/* Vanguard Trade Disputes Styles */

/* Form Wrapper */
.vanguard-dispute-form-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.vanguard-dispute-form-wrap h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.vanguard-dispute-form-wrap .intro {
    color: #666;
    margin-bottom: 30px;
}

/* Form Sections */
.form-section {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-section h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #333;
}

.section-note {
    color: #666;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 15px;
}

/* Form Rows */
.form-row {
    margin-bottom: 15px;
}

.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #d63384;
}

.form-row textarea {
    resize: vertical;
    min-height: 100px;
}

.field-note {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* File Upload */
.form-row input[type="file"] {
    padding: 10px;
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 6px;
    cursor: pointer;
}

/* Form Actions */
.form-actions {
    text-align: center;
    padding-top: 10px;
}

.btn-submit {
    background: linear-gradient(135deg, #d63384, #6f42c1);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.3);
}

.submit-note {
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}

/* Notices */
.vanguard-notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.vanguard-notice.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}

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

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

/* My Disputes List */
.vanguard-my-disputes {
    max-width: 900px;
    margin: 0 auto;
}

.disputes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.disputes-header h2 {
    margin: 0;
}

.btn-new-dispute {
    background: linear-gradient(135deg, #d63384, #6f42c1);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-new-dispute:hover {
    color: white;
    transform: translateY(-2px);
}

.no-disputes {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 12px;
}

.no-disputes .icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.no-disputes h3 {
    margin: 0 0 10px;
}

.no-disputes p {
    color: #666;
    margin: 0;
}

/* Disputes Table */
.disputes-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.disputes-table th {
    background: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
}

.disputes-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e9ecef;
}

.disputes-table tr:last-child td {
    border-bottom: none;
}

.disputes-table tr:hover {
    background: #f8f9fa;
}

/* Badges */
.type-badge,
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.status-open {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.status-under_review {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-awaiting_response {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.status-resolved {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-closed {
    background: #e2e3e5;
    color: #383d41;
}

.btn-view {
    background: #6c757d;
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
}

.btn-view:hover {
    background: #5a6268;
    color: white;
}

/* Dispute Detail Page */
.vanguard-dispute-detail {
    max-width: 800px;
    margin: 0 auto;
}

.dispute-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.back-link {
    color: #666;
    text-decoration: none;
}

.back-link:hover {
    color: #d63384;
}

.dispute-header h2 {
    margin: 0;
    flex-grow: 1;
}

.dispute-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.info-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.info-card h4 {
    margin: 0 0 5px;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.info-card p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.dispute-subject {
    margin-bottom: 20px;
}

.dispute-subject h3 {
    margin: 0;
    font-size: 22px;
}

.dispute-description {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.dispute-description h4 {
    margin: 0 0 10px;
}

.description-text {
    line-height: 1.6;
}

/* Resolution Box */
.resolution-box {
    background: #d4edda;
    border: 1px solid #28a745;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
}

.resolution-box h4 {
    margin: 0 0 15px;
    color: #155724;
}

.resolution-box p {
    margin: 0 0 8px;
}

.resolved-date {
    font-size: 13px;
    color: #666;
    margin-top: 15px !important;
}

/* Conversation */
.dispute-conversation {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
}

.dispute-conversation h4 {
    margin: 0 0 20px;
}

.messages-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.no-messages {
    text-align: center;
    color: #888;
    padding: 30px;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
}

.message.mine {
    margin-left: auto;
}

.message.theirs {
    margin-right: auto;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
}

.message-header .author {
    font-weight: 600;
}

.message-header .time {
    color: #888;
}

.message-body {
    background: white;
    padding: 12px 15px;
    border-radius: 10px;
    line-height: 1.5;
}

.message.mine .message-body {
    background: #d63384;
    color: white;
    border-bottom-right-radius: 4px;
}

.message.theirs .message-body {
    border-bottom-left-radius: 4px;
}

.message.admin-message .message-body {
    background: #17a2b8;
    color: white;
}

.message.admin-message .author {
    color: #17a2b8;
}

/* Add Message Form */
.add-message-form {
    display: flex;
    gap: 10px;
}

.add-message-form textarea {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: none;
}

.add-message-form textarea:focus {
    outline: none;
    border-color: #d63384;
}

.btn-send {
    background: #d63384;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-send:hover {
    background: #c22876;
}

.conversation-closed {
    text-align: center;
    color: #888;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .disputes-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .disputes-table {
        font-size: 14px;
    }
    
    .disputes-table th,
    .disputes-table td {
        padding: 8px 10px;
    }
    
    .dispute-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .message {
        max-width: 90%;
    }
    
    .add-message-form {
        flex-direction: column;
    }
}
