.new-ticket-container {
    background: #ffffff;
    min-height: 100vh;
    padding: 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.page-header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
}

.page-title {
    font-size: 2rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    opacity: 0.9;
    font-size: 1.1rem;
}

.breadcrumb {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.breadcrumb a {
    color: #0d1561;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #0d1561;
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #6b7280;
}

.form-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    max-width: 800px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e3a8a;
    font-size: 1rem;
}

.required {
    color: #ef4444;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control.large {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.priority-selector {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.priority-option {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: white;
}

.priority-option.active {
    border-color: #1e3a8a;
    background: #eff6ff;
}

.priority-option:hover {
    border-color: #3b82f6;
}

.priority-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.priority-label {
    font-weight: 600;
    color: #1e3a8a;
}

.file-upload-section {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.file-upload-section:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.file-upload-section.dragover {
    border-color: #1e3a8a;
    background: #dbeafe;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #6b7280;
}

.upload-text {
    color: #374151;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.upload-hint {
    color: #6b7280;
    font-size: 0.9rem;
}

.file-input {
    display: none;
}

.attachments-list {
    margin-top: 1rem;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.attachment-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.attachment-icon {
    color: #1e3a8a;
    font-size: 1.2rem;
}

.attachment-details {
    flex: 1;
}

.attachment-name {
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.attachment-size {
    font-size: 0.85rem;
    color: #6b7280;
}

.remove-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.remove-btn:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

select.form-control {
    font-weight: 700;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;        /* ẩn caret mặc định */
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2rem;     /* chừa chỗ cho icon mới */
}

.select-wrapper::after {
  content: "\f078"; /* FontAwesome: fa-caret-down */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 12px;
  top: 55.9%;
  pointer-events: none;
  color: #999;
  font-size: 0.8rem;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    border-color: #133874;
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary:active {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
    background: #f8fafc;
    color: #1e3a8a;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    text-decoration: none;
    color: #1e3a8a;
}

.loading-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

.char-counter.warning {
    color: #f59e0b;
}

.char-counter.danger {
    color: #ef4444;
}

@media (max-width: 768px) {
    .new-ticket-container {
        padding: 1rem;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .priority-selector {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }
}

.notification-bell {
    display: block;
    position: relative;
    cursor: pointer;
    font-size: 1.4rem;
}
