/* IDHelpDesk Frontend Styles */

:root {
    --idhd-primary: #4f46e5;
    --idhd-secondary: #6366f1;
    --idhd-bg: #ffffff;
    --idhd-text: #1f2937;
    --idhd-border: #e5e7eb;
}

#idhd-ticket-form-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--idhd-border);
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.idhd-form-group {
    margin-bottom: 20px;
}

.idhd-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--idhd-text);
}

.idhd-input,
.idhd-select,
.idhd-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--idhd-border);
    border-radius: 8px;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.idhd-input:focus,
.idhd-select:focus,
.idhd-textarea:focus {
    outline: none;
    border-color: var(--idhd-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.idhd-submit-btn {
    width: 100% !important;
    padding: 12px;
    background: linear-gradient(135deg, var(--idhd-primary), var(--idhd-secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.idhd-submit-btn:hover {
    transform: translateY(-2px);
}

.idhd-submit-btn:active {
    transform: translateY(0);
}

/* Status Badges */
.idhd-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

.idhd-status-open {
    background-color: #2ecc71;
}

.idhd-status-in_progress {
    background-color: #3498db;
}

.idhd-status-pending {
    background-color: #f1c40f;
}

.idhd-status-resolved {
    background-color: #9b59b6;
}

.idhd-status-closed {
    background-color: #95a5a6;
}

/* Dashboard Table */
#idhd-ticket-form-container table {
    font-size: 0.9rem;
}

#idhd-ticket-form-container th {
    color: #6b7280;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Utilities & New Components */
.idhd-text-center {
    text-align: center;
}

.idhd-qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
}

.idhd-qr-code img {
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.idhd-mb-20 {
    margin-bottom: 20px;
}

.idhd-mb-30 {
    margin-bottom: 30px;
}

.idhd-mt-10 {
    margin-top: 10px;
}

.idhd-ml-10 {
    margin-left: 10px;
}

.idhd-width-auto {
    width: auto !important;
}

.idhd-text-gray {
    color: #6b7280;
}

.idhd-text-sm {
    font-size: 0.85rem;
}

.idhd-text-xs {
    font-size: 0.75rem;
}

.idhd-success-icon {
    font-size: 60px;
    color: #2ecc71;
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.idhd-btn-inline {
    display: inline-block !important;
    width: auto !important;
    text-decoration: none !important;
}

.idhd-btn-dark {
    background: var(--idhd-primary) !important;
    filter: brightness(0.7);
}

.idhd-header-title {
    text-align: center;
    margin-bottom: 30px;
}

.idhd-description-text {
    font-size: 11px;
    margin-top: 5px;
    color: #6b7280;
}

.idhd-container-lg {
    max-width: 800px !important;
}

.idhd-flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.idhd-flex-start {
    align-items: flex-start !important;
}

.idhd-flex-gap-10 {
    display: flex;
    gap: 10px;
}

.idhd-table-wrapper {
    overflow-x: auto;
}

.idhd-table {
    width: 100%;
    border-collapse: collapse;
}

.idhd-table th {
    padding: 10px;
    border-bottom: 2px solid var(--idhd-border);
    text-align: left;
}

.idhd-table td {
    padding: 10px;
    border-bottom: 1px solid var(--idhd-border);
}

.idhd-link-primary {
    color: var(--idhd-primary);
    font-weight: 600;
    text-decoration: none;
}

.idhd-conversation-box {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    max-height: 500px;
    overflow-y: auto;
}

.idhd-message-row {
    margin-bottom: 20px;
}

.idhd-message-bubble {
    display: inline-block;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.idhd-message-bubble.admin {
    background: #ffffff;
    color: inherit;
}

.idhd-message-bubble.user {
    background: var(--idhd-primary);
    color: white;
}

.idhd-message-meta {
    font-size: 11px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.idhd-attachment img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 5px;
}

.idhd-ticket-card {
    background: #f9fafb;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.idhd-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.idhd-info-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.idhd-info-value {
    display: block;
    margin-top: 5px;
    font-weight: bold;
}

.idhd-lock-notice {
    margin-top: 25px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
    font-size: 13px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 10px;
}