/* ============================================
   CORPORATE SUPPORT PAGE STYLES
   ============================================ */

/* Support Header */
.support-header {
    margin-bottom: 24px;
}

.support-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    background: linear-gradient(135deg, #00BCD4 0%, #0891B2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.3);
}

.support-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

body.light-theme .support-title {
    color: #0F172A;
}

.support-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

body.light-theme .support-subtitle {
    color: #64748B;
}

/* Support Contact Card */
.support-contact-card {
    background: var(--dark-lighter);
    border: 1px solid rgba(0, 188, 212, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

body.light-theme .support-contact-card {
    background: white;
    border-color: rgba(0, 0, 0, 0.08);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--dark-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

body.light-theme .contact-item {
    background: #F8FAFC;
}

.contact-item:hover {
    background: rgba(0, 188, 212, 0.1);
    transform: translateY(-2px);
}

body.light-theme .contact-item:hover {
    background: #F1F5F9;
}

.contact-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00BCD4 0%, #0891B2 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.contact-info {
    flex: 1;
    min-width: 0;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

body.light-theme .contact-label {
    color: #64748B;
}

.contact-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}

body.light-theme .contact-value {
    color: #0F172A;
}

/* Support Form Card */
.support-form-card {
    background: var(--dark-lighter);
    border: 1px solid rgba(0, 188, 212, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

body.light-theme .support-form-card {
    background: white;
    border-color: rgba(0, 0, 0, 0.08);
}

.support-form-header {
    background: linear-gradient(135deg, #00BCD4 0%, #0891B2 100%);
    padding: 18px 24px;
    color: white;
}

.support-form-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.support-form-title i {
    color: white !important;
    opacity: 1 !important;
}

.support-form {
    padding: 24px;
}

/* Form Group Support */
.form-group-support {
    margin-bottom: 18px;
}

.form-label-support {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

body.light-theme .form-label-support {
    color: #0F172A;
}

.form-label-support i {
    color: var(--primary-color);
    font-size: 0.8125rem;
}

.form-control-support {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark-color);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

body.light-theme .form-control-support {
    background: #F8FAFC;
    border-color: rgba(0, 0, 0, 0.1);
    color: #0F172A;
}

.form-control-support:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
    background: var(--dark-lighter);
}

body.light-theme .form-control-support:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.form-control-support::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

body.light-theme .form-control-support::placeholder {
    color: #94A3B8;
}

/* Support Submit Button */
.btn-support-submit {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #00BCD4 0%, #0891B2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-support-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.4);
    color: white;
}

.btn-support-submit i {
    color: white !important;
    opacity: 1 !important;
}

/* Support Login Alert */
.support-login-alert {
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    color: var(--text-primary);
    font-size: 0.875rem;
}

body.light-theme .support-login-alert {
    background: #E0F7FA;
    border-color: rgba(0, 188, 212, 0.3);
    color: #0F172A;
}

.support-login-alert a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.support-login-alert a:hover {
    text-decoration: underline;
}

.support-login-alert i {
    color: var(--primary-color);
}

/* Alert Small */
.alert-sm {
    padding: 10px 14px;
    font-size: 0.875rem;
    margin-bottom: 20px;
    border-radius: 10px;
}

/* Support Tickets List */
.support-tickets-list {
    background: var(--dark-lighter);
    border: 1px solid rgba(0, 188, 212, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
}

body.light-theme .support-tickets-list {
    background: white;
    border-color: rgba(0, 0, 0, 0.08);
}

.support-tickets-header {
    background: linear-gradient(135deg, #00BCD4 0%, #0891B2 100%);
    padding: 18px 24px;
    color: white;
}

.support-tickets-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

.support-tickets-title i {
    color: white !important;
    opacity: 1 !important;
}

.support-tickets-body {
    padding: 16px;
}

.support-ticket-item {
    background: var(--dark-color);
    border: 1px solid rgba(0, 188, 212, 0.1);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

body.light-theme .support-ticket-item {
    background: #F8FAFC;
    border-color: rgba(0, 0, 0, 0.08);
}

.support-ticket-item:last-child {
    margin-bottom: 0;
}

.ticket-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ticket-header:hover {
    background: rgba(0, 188, 212, 0.05);
}

body.light-theme .ticket-header:hover {
    background: #F1F5F9;
}

.ticket-info {
    flex: 1;
}

.ticket-subject {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 0.9375rem;
}

body.light-theme .ticket-subject {
    color: #0F172A;
}

.ticket-subject i {
    color: var(--primary-color);
}

.ticket-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.ticket-date,
.ticket-replies {
    display: flex;
    align-items: center;
}

.ticket-status-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-status {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-warning {
    background: #F59E0B;
    color: white;
}

.badge-info {
    background: #00BCD4;
    color: white;
}

.badge-success {
    background: #10B981;
    color: white;
}

.badge-secondary {
    background: #64748B;
    color: white;
}

.ticket-toggle-icon {
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    font-size: 0.875rem;
}

.ticket-content {
    padding: 0 20px 20px;
    border-top: 1px solid rgba(0, 188, 212, 0.1);
    margin-top: 12px;
    padding-top: 20px;
}

body.light-theme .ticket-content {
    border-color: rgba(0, 0, 0, 0.08);
}

.ticket-message {
    background: var(--dark-lighter);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

body.light-theme .ticket-message {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 188, 212, 0.1);
}

body.light-theme .message-header {
    border-color: rgba(0, 0, 0, 0.08);
}

.message-header strong {
    color: var(--text-primary);
    font-size: 0.875rem;
}

body.light-theme .message-header strong {
    color: #0F172A;
}

.message-body {
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

body.light-theme .message-body {
    color: #0F172A;
}

.ticket-replies-section {
    margin-top: 16px;
}

.replies-header {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 0.875rem;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 188, 212, 0.1);
}

body.light-theme .replies-header {
    color: #0F172A;
    border-color: rgba(0, 0, 0, 0.08);
}

.reply-item {
    background: var(--dark-lighter);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary-color);
}

body.light-theme .reply-item {
    background: white;
    border-color: var(--primary-color);
}

.reply-item.admin-reply {
    border-left-color: #10B981;
    background: rgba(0, 188, 212, 0.05);
}

body.light-theme .reply-item.admin-reply {
    background: #E0F7FA;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reply-author {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-primary);
}

body.light-theme .reply-author {
    color: #0F172A;
}

.badge-admin {
    background: #10B981;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 8px;
}

.reply-date {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.reply-body {
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.875rem;
}

body.light-theme .reply-body {
    color: #0F172A;
}

.no-replies {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    background: var(--dark-lighter);
    border-radius: 10px;
}

body.light-theme .no-replies {
    background: #F8FAFC;
    color: #64748B;
}

/* Reply Form */
.reply-form-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 188, 212, 0.1);
}

body.light-theme .reply-form-section {
    border-color: rgba(0, 0, 0, 0.08);
}

.form-group-reply {
    margin-bottom: 12px;
}

.form-label-reply {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

body.light-theme .form-label-reply {
    color: #0F172A;
}

.form-label-reply i {
    color: var(--primary-color);
    font-size: 0.8125rem;
}

.form-control-reply {
    width: 100%;
    padding: 12px 16px;
    background: var(--dark-color);
    border: 1px solid rgba(0, 188, 212, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    font-family: inherit;
    resize: vertical;
}

body.light-theme .form-control-reply {
    background: #F8FAFC;
    border-color: rgba(0, 0, 0, 0.1);
    color: #0F172A;
}

.form-control-reply:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
    background: var(--dark-lighter);
}

body.light-theme .form-control-reply:focus {
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.btn-reply-submit {
    padding: 10px 20px;
    background: linear-gradient(135deg, #00BCD4 0%, #0891B2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-reply-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.4);
    color: white;
}

.btn-reply-submit i {
    color: white !important;
    opacity: 1 !important;
}

.ticket-closed-notice {
    text-align: center;
    padding: 16px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    background: var(--dark-lighter);
    border-radius: 10px;
    margin-top: 16px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

body.light-theme .ticket-closed-notice {
    background: #FEF2F2;
    color: #991B1B;
    border-color: rgba(239, 68, 68, 0.3);
}

.ticket-closed-notice i {
    color: #EF4444;
}

/* Responsive */
@media (max-width: 768px) {
    .support-header {
        margin-bottom: 20px;
    }
    
    .support-icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .support-title {
        font-size: 1.5rem;
    }
    
    .support-contact-card {
        padding: 16px;
    }
    
    .contact-item {
        padding: 10px;
    }
    
    .contact-icon {
        width: 32px;
        height: 32px;
        font-size: 0.8125rem;
    }
    
    .support-form {
        padding: 20px;
    }
    
    .support-form-header {
        padding: 16px 20px;
    }
    
    .ticket-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ticket-status-badge {
        width: 100%;
        justify-content: space-between;
    }
    
    .ticket-meta {
        flex-direction: column;
        gap: 8px;
    }
}

