* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f7fafc;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 20px;
}

h1, h2, h3 {
    color: #2d3748;
    margin-bottom: 20px;
}

h1 {
    text-align: center;
    font-size: 28px;
    color: #2d3748;
    margin-top: 30px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 50%, #4a5568 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

h3 {
    text-align: center;
    font-size: 18px;
    color: #718096;
    margin-bottom: 20px;
    font-weight: normal;
}

h2 {
    font-size: 22px;
    border-bottom: 2px solid #4a5568;
    padding-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    display: inline-block;
    text-align: center;
    color: #4a5568;
    text-decoration: none;
    padding: 6px 12px;
    border: 2px solid #4a5568;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 13px;
}

.footer-link:hover {
    background: #4a5568;
    color: white;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
}

.toast.show {
    opacity: 1;
}

.upload-area {
    border: 3px dashed #4a5568;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    background: #f7fafc;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 20px;
}

.upload-area:hover, .upload-area.dragover {
    border-color: #2d3748;
    background: #edf2f7;
}

.upload-area p {
    color: #4a5568;
    font-size: 16px;
    margin-bottom: 10px;
}

.upload-area .icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7fafc;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-item .file-name {
    flex: 1;
    color: #2d3748;
}

.file-item .file-size {
    color: #718096;
    margin-right: 15px;
}

.file-item .remove-btn {
    background: #e53e3e;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.file-limit-info {
    background: #fff3cd;
    color: #856404;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

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

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

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a5568;
}

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

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 85, 104, 0.4);
}

.btn-primary:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #718096;
    color: white;
}

.btn-secondary:hover {
    background: #4a5568;
}

.btn-success {
    background: #38a169;
    color: white;
}

.btn-success:hover {
    background: #2f855a;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    margin-top: 10px;
}

.feedback-section {
    margin-top: 30px;
}

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

.refresh-btn {
    background: #4299e1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: #3182ce;
}

.refresh-btn.spinning {
    animation: spin 1s linear infinite;
}

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

.feedback-list {
    max-height: 400px;
    overflow-y: auto;
}

.feedback-item {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 4px solid #4a5568;
}

.feedback-item.admin {
    border-left-color: #38a169;
    background: #f0fff4;
}

.feedback-item .feedback-header {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-item .feedback-type {
    font-weight: 600;
    color: #4a5568;
}

.feedback-item.admin .feedback-type {
    color: #38a169;
}

.feedback-item .feedback-time {
    color: #718096;
    font-size: 12px;
}

.feedback-item .feedback-content {
    color: #2d3748;
    line-height: 1.6;
}

.feedback-item .feedback-file {
    margin-top: 10px;
}

.feedback-item .feedback-file a {
    color: #4a5568;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #4a5568;
}

.feedback-item .feedback-file a:hover {
    background: #4a5568;
    color: white;
}

.empty-feedback {
    text-align: center;
    color: #718096;
    padding: 40px;
}

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

.ticket-info-row {
    display: flex;
    margin-bottom: 10px;
}

.ticket-info-label {
    font-weight: 600;
    width: 120px;
    color: #2d3748;
}

.ticket-info-value {
    color: #4a5568;
    flex: 1;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.table th {
    background: #f7fafc;
    font-weight: 600;
    color: #2d3748;
}

.table tr:hover {
    background: #f7fafc;
}

.table a {
    color: #4a5568;
    text-decoration: none;
}

.table a:hover {
    color: #2d3748;
    text-decoration: underline;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

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

.status-processing {
    background: #bee3f8;
    color: #2c5282;
}

.status-completed {
    background: #c6f6d5;
    color: #22543d;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

.alert-info {
    background: #bee3f8;
    color: #2c5282;
    border: 1px solid #90cdf4;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.admin-nav h2 {
    margin: 0;
    border: none;
}

.admin-nav .logout-btn {
    background: #e53e3e;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
}

.admin-nav .logout-btn:hover {
    background: #c53030;
}

.filter-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-bar select,
.filter-bar input {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.filter-bar .search-input {
    flex: 1;
    min-width: 200px;
}

.reply-section {
    background: #f7fafc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.reply-section h3 {
    margin-top: 0;
    border: none;
    font-size: 18px;
}

.reply-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

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

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 30px;
    max-width: 400px;
    width: 90%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #4a5568;
    padding-bottom: 15px;
}

.modal-header h3 {
    margin: 0;
    border: none;
    font-size: 18px;
    color: #2d3748;
}

.modal-close {
    font-size: 28px;
    cursor: pointer;
    color: #718096;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #e53e3e;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .card {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    .upload-area {
        padding: 30px 20px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .feedback-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .table {
        font-size: 12px;
    }

    .table th,
    .table td {
        padding: 8px 4px;
    }

    .filter-bar {
        flex-direction: column;
    }

    .filter-bar select,
    .filter-bar input {
        width: 100%;
    }

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

    .reply-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .file-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .file-item .remove-btn {
        width: 100%;
    }
}
