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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    padding: 40px 20px;
    color: #2d3748;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

header {
    background: white;
    color: #2d3748;
    padding: 32px 40px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #1a202c;
}

.tabs {
    display: flex;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
}

.tab-button {
    flex: 1;
    padding: 18px 24px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #718096;
    border-bottom: 2px solid transparent;
    letter-spacing: -0.01em;
}

.tab-button:hover {
    background: #edf2f7;
    color: #4a5568;
}

.tab-button.active {
    background: white;
    color: #2d3748;
    border-bottom: 2px solid #cbd5e0;
}

.tab-content {
    display: none;
    padding: 32px 40px;
}

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

.kanban-board {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.kanban-column {
    flex: 0 0 300px;
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    min-height: 400px;
    border: 1px solid #e2e8f0;
}

.kanban-column h3 {
    font-size: 0.85rem;
    margin-bottom: 20px;
    color: #4a5568;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.feedback-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.feedback-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e0;
}

.feedback-card .from-group {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.feedback-card .text {
    font-size: 0.9rem;
    color: #2d3748;
    line-height: 1.7;
    font-weight: 400;
}

.feedback-card .timestamp {
    font-size: 0.75rem;
    color: #a0aec0;
    margin-top: 10px;
}

.card-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    justify-content: flex-end;
}

.action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    background: #edf2f7;
    color: #4a5568;
    font-weight: 300;
    line-height: 1;
}

.action-btn:hover {
    background: #e2e8f0;
}

.edit-btn:hover {
    background: #4299e1;
    color: white;
}

.delete-btn:hover {
    background: #f56565;
    color: white;
}

.feedback-form {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #4a5568;
    font-size: 0.85rem;
    letter-spacing: 0.01em;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: #f7fafc;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #cbd5e0;
    background: white;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

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

.submit-button {
    width: 100%;
    padding: 14px;
    background: #2d3748;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.submit-button:hover {
    background: #1a202c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.submit-button:active {
    transform: translateY(0);
}

.admin-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(45, 55, 72, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    font-weight: 300;
}

.admin-button.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.admin-button:hover {
    background: rgba(45, 55, 72, 0.95);
    transform: translateY(-2px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 32px;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    font-size: 1.1rem;
    color: #2d3748;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.close {
    font-size: 1.75rem;
    color: #a0aec0;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.close:hover {
    color: #4a5568;
}

#groups-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding-right: 8px;
}

.group-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}

.group-item input {
    flex: 1;
}

.group-item .remove-group {
    padding: 8px 16px;
    background: #fc8181;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 400;
    transition: background 0.2s ease;
}

.group-item .remove-group:hover {
    background: #f56565;
}

#save-groups {
    margin-top: 16px;
}

.loading {
    text-align: center;
    color: #718096;
    font-size: 0.95rem;
    padding: 40px;
}

.no-feedback {
    text-align: center;
    color: #a0aec0;
    font-size: 0.9rem;
    padding: 40px;
}

#toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideUp 0.4s ease-out;
    pointer-events: auto;
    min-width: 300px;
    max-width: 400px;
}

.toast.success {
    border-left: 4px solid #48bb78;
}

.toast.error {
    border-left: 4px solid #f56565;
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    animation: toastBounce 0.5s ease-out 0.2s both;
}

.toast-message {
    flex: 1;
    font-size: 0.9rem;
    color: #2d3748;
    font-weight: 400;
}

.toast.hiding {
    animation: toastFadeOut 0.3s ease-in forwards;
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes toastBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.3);
    }
    60% {
        transform: scale(1.1);
    }
}

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

    .tab-content {
        padding: 24px;
    }

    .kanban-board {
        flex-direction: column;
    }

    .kanban-column {
        flex: 0 0 auto;
        width: 100%;
    }

    .tabs {
        flex-direction: column;
    }

    .tab-button {
        border-bottom: 1px solid #e2e8f0;
        border-left: 2px solid transparent;
    }

    .tab-button.active {
        border-bottom: 1px solid #e2e8f0;
        border-left: 2px solid #cbd5e0;
    }
}
