/* AWLM Support System Styles */


.awlm-support-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.awlm-support-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.awlm-support-header h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.awlm-support-header p {
    margin: 0;
    opacity: 0.9;
}

.awlm-support-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
}

.awlm-tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.awlm-tab-btn:hover {
    color: #374151;
    background: #f9fafb;
}

.awlm-tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8fafc;
}

.awlm-unread-badge {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 8px;
    min-width: 18px;
    text-align: center;
    display: inline-block;
}

.awlm-tab-content {
    display: none;
}

.awlm-tab-content.active {
    display: block;
}

.awlm-tickets-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.awlm-tickets-header h3 {
    margin: 0;
    color: #374151;
}

.awlm-tickets-list {
    display: grid;
    gap: 16px;
}

.awlm-ticket-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.awlm-ticket-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.awlm-ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.awlm-ticket-header h4 {
    margin: 0;
    color: #374151;
    font-size: 18px;
}

.awlm-ticket-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.awlm-ticket-preview {
    color: #6b7280;
    font-size: 14px;
}

.awlm-ticket-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.awlm-status-open {
    background: #dbeafe;
    color: #1e40af;
}

.awlm-status-in_progress {
    background: #fef3c7;
    color: #d97706;
}

.awlm-status-waiting_response {
    background: #e0e7ff;
    color: #6366f1;
}

.awlm-status-resolved {
    background: #d1fae5;
    color: #059669;
}

.awlm-status-closed {
    background: #f3f4f6;
    color: #6b7280;
}

.awlm-priority {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.awlm-priority-low {
    background: #f0f9ff;
    color: #0369a1;
}

.awlm-priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.awlm-priority-high {
    background: #fee2e2;
    color: #dc2626;
}

.awlm-priority-urgent {
    background: #fecaca;
    color: #991b1b;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.awlm-new-ticket-form {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.awlm-new-ticket-form h3 {
    margin: 0 0 20px 0;
    color: #374151;
}

.awlm-form-group {
    margin-bottom: 20px;
}

.awlm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
}

.awlm-form-group input,
.awlm-form-group select,
.awlm-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.awlm-form-group input:focus,
.awlm-form-group select:focus,
.awlm-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.awlm-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.awlm-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 14px;
}

.awlm-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.awlm-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.awlm-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.awlm-btn-secondary:hover {
    background: #e5e7eb;
}

.awlm-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.awlm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.awlm-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.awlm-modal-wide {
    padding: 20px!important;
    max-width: 1000px;
}

.awlm-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.awlm-modal-header h3 {
    margin: 0;
    color: #374151;
}

.awlm-close {
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.awlm-close:hover {
    color: #374151;
    background: #f3f4f6;
}

.awlm-modal-body {
    padding: 20px!important;
}

.awlm-ticket-info {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.awlm-ticket-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.awlm-ticket-messages {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

.awlm-message {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
}

.awlm-message:last-child {
    margin-bottom: 0;
}

.awlm-customer-message {
    background: #e0f2fe;
    margin-left: 20px;
}

.awlm-admin-message {
    background: #f0f9ff;
    margin-right: 20px;
}

.awlm-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: #6b7280;
}

.awlm-message-content {
    color: #374151;
    line-height: 1.5;
}

.awlm-ticket-reply {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
}

.awlm-ticket-reply h4 {
    margin: 0 0 12px 0;
    color: #374151;
}

.awlm-ticket-reply textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 12px;
}

.awlm-reply-actions {
    display: flex;
    gap: 12px;
}

.awlm-loading {
    text-align: center;
    color: #6b7280;
    padding: 40px;
}

.awlm-error {
    text-align: center;
    color: #dc2626;
    padding: 40px;
}

.awlm-no-tickets {
    text-align: center;
    color: #6b7280;
    padding: 40px;
}

.awlm-no-licenses {
    text-align: center;
    padding: 40px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    color: #92400e;
}

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

.awlm-no-licenses a {
    color: #667eea;
    text-decoration: none;
}

.awlm-no-licenses a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .awlm-support-container {
        padding: 10px;
    }
    
    .awlm-support-tabs {
        flex-direction: column;
    }
    
    .awlm-tab-btn {
        text-align: left;
        border-bottom: 1px solid #e5e7eb;
        border-radius: 0;
    }
    
    .awlm-ticket-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .awlm-form-actions {
        flex-direction: column;
    }
    
    .awlm-modal {
        padding: 10px;
    }
    
    .awlm-modal-content {
        max-height: 95vh;
    }
    
    .awlm-customer-message,
    .awlm-admin-message {
        margin-left: 0;
        margin-right: 0;
    }
}

/* File Upload Styles */
.awlm-file-input {
    padding: 0.5rem !important;
    background-color: #f9fafb;
    border: 2px dashed #d1d5db;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.awlm-file-input:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.awlm-file-input:focus {
    border-color: #3b82f6;
    background-color: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.awlm-help-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}
