/* =============================================
   FEEDBACK FORM STYLES
   Same UI/UX as React prototype
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #F8F9FA 0%, #E8ECEF 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* Container */
.form-container {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: #E0E0E0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2D3436, #636E72);
    transition: width 0.3s ease;
}

/* Step Content */
.step-content {
    padding: 20px;
    display: none;
}

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

/* Welcome Step */
.welcome-content {
    text-align: center;
    padding: 40px 20px;
}

.welcome-icon {
    font-size: 64px;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: #2D3436;
    margin-bottom: 16px;
    font-family: 'Playfair Display', Georgia, serif;
}

.welcome-description {
    color: #636E72;
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto 32px;
}

/* Form Elements */
.form-group {
    background: #F8F9FA;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 32px;
}

.form-label {
    display: block;
    color: #636E72;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-input:focus {
    border-color: #2D3436;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    resize: vertical;
    font-family: inherit;
    min-height: 80px;
}

.form-textarea:focus {
    border-color: #2D3436;
}

/* Buttons */
.btn {
    border: none;
    padding: 16px 48px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #2D3436 0%, #636E72 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(45, 52, 54, 0.3);
}

.btn-secondary {
    background: #F8F9FA;
    color: #2D3436;
}

.btn-success {
    background: linear-gradient(135deg, #00B894 0%, #00CEC9 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.btn-disabled {
    background: #E0E0E0;
    color: #999;
    cursor: not-allowed;
}

.btn-disabled:hover {
    transform: none;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.nav-buttons .btn {
    padding: 14px;
    border-radius: 12px;
}

.nav-buttons .btn-back {
    flex: 1;
}

.nav-buttons .btn-next {
    flex: 2;
}

/* Step Title */
.step-title {
    font-size: 24px;
    font-weight: 700;
    color: #2D3436;
    margin-bottom: 8px;
    font-family: 'Playfair Display', Georgia, serif;
}

.step-description {
    color: #636E72;
    margin-bottom: 24px;
}

/* Responder Type Cards */
.type-card {
    background: #fff;
    border: 2px solid #E0E0E0;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.type-card:hover {
    border-color: #636E72;
}

.type-card.selected {
    background: linear-gradient(135deg, #2D3436 0%, #636E72 100%);
    border: none;
}

.type-card-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.type-card-icon {
    font-size: 28px;
}

.type-card-label {
    margin: 0;
    color: #2D3436;
    font-size: 17px;
    font-weight: 600;
}

.type-card.selected .type-card-label {
    color: #fff;
}

.type-card-description {
    margin: 4px 0 0;
    color: #636E72;
    font-size: 14px;
}

.type-card.selected .type-card-description {
    color: rgba(255, 255, 255, 0.8);
}

/* Sub Type Selection */
.sub-type-container {
    margin-top: 12px;
    margin-left: 20px;
    display: none;
}

.sub-type-container.visible {
    display: block;
}

.sub-type-label {
    color: #636E72;
    font-size: 14px;
    margin: 0 0 8px;
    font-weight: 500;
}

.sub-type-option {
    background: #F8F9FA;
    color: #2D3436;
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 500;
}

.sub-type-option:hover {
    background: #E8ECEF;
}

.sub-type-option.selected {
    background: #2D3436;
    color: #fff;
}

/* Question Cards */
.question-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.question-text {
    color: #2D3436;
    font-weight: 500;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.category-badge.connection {
    background: #E8F5E9;
    color: #2E7D32;
}

.category-badge.feedback {
    background: #FFF3E0;
    color: #E65100;
}

/* Rating Input */
.rating-container {
    margin-top: 12px;
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 12px;
    color: #636E72;
}

.rating-buttons {
    display: flex;
    gap: 8px;
}

.rating-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: #F8F9FA;
    color: #2D3436;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-btn:hover {
    background: #E8ECEF;
}

.rating-btn.selected {
    background: linear-gradient(135deg, #2D3436 0%, #636E72 100%);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(45, 52, 54, 0.3);
}

/* Multiple Choice */
.multiple-choice-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.choice-btn {
    background: #F8F9FA;
    color: #2D3436;
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.choice-btn:hover {
    background: #E8ECEF;
}

.choice-btn.selected {
    background: #2D3436;
    color: #fff;
}

/* Multiple with Other */
.other-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    margin-top: 12px;
    font-family: inherit;
}

.other-input:focus {
    border-color: #2D3436;
}

/* Review Section */
.review-info {
    background: #F8F9FA;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.review-info p {
    margin: 0;
    color: #636E72;
    font-size: 14px;
}

.review-info p + p {
    margin-top: 8px;
}

.review-info strong {
    color: #2D3436;
}

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

.review-item {
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid #E0E0E0;
    margin-bottom: 12px;
}

.review-question {
    margin: 0;
    color: #636E72;
    font-size: 13px;
}

.review-answer {
    margin: 6px 0 0;
    color: #2D3436;
    font-weight: 600;
    font-size: 14px;
}

/* Thank You Section */
.thankyou-content {
    text-align: center;
    padding: 60px 20px;
}

.thankyou-icon {
    font-size: 72px;
    margin-bottom: 24px;
    animation: bounce 0.6s ease;
}

.thankyou-title {
    font-size: 28px;
    font-weight: 700;
    color: #2D3436;
    margin-bottom: 16px;
    font-family: 'Playfair Display', Georgia, serif;
}

.thankyou-description {
    color: #636E72;
    font-size: 16px;
    max-width: 300px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.quote-box {
    background: linear-gradient(135deg, #FFEAA7 0%, #FDCB6E 100%);
    border-radius: 16px;
    padding: 24px;
    max-width: 320px;
    margin: 0 auto;
}

.quote-text {
    margin: 0;
    color: #2D3436;
    font-style: italic;
    font-size: 15px;
    line-height: 1.6;
}

.quote-author {
    margin: 8px 0 0;
    color: #636E72;
    font-size: 13px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #E0E0E0;
    border-top-color: #2D3436;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 520px) {
    body {
        padding: 10px;
    }
    
    .form-container {
        border-radius: 20px;
    }
    
    .welcome-title,
    .step-title,
    .thankyou-title {
        font-size: 24px;
    }
    
    .rating-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    
    .nav-buttons {
        flex-direction: column;
    }
    
    .nav-buttons .btn-back,
    .nav-buttons .btn-next {
        flex: none;
        width: 100%;
    }
}

/* =============================================
   ADMIN STYLES
   ============================================= */

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

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 16px;
}

.admin-title {
    font-size: 28px;
    font-weight: 700;
    color: #2D3436;
    font-family: 'Playfair Display', Georgia, serif;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-user span {
    color: #636E72;
}

.btn-logout {
    background: #FF6B6B;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-logout:hover {
    background: #EE5A5A;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stat-card.primary {
    background: linear-gradient(135deg, #2D3436 0%, #636E72 100%);
    color: #fff;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #636E72;
}

.stat-card.primary .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Filter Section */
.filter-section {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 13px;
    color: #636E72;
    margin-bottom: 6px;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: #2D3436;
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.btn-filter {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-filter.primary {
    background: #2D3436;
    color: #fff;
}

.btn-filter.secondary {
    background: #F8F9FA;
    color: #2D3436;
}

.btn-export {
    background: #00B894;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

/* Table */
.table-container {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 16px 20px;
    text-align: left;
}

.data-table th {
    background: #F8F9FA;
    font-weight: 600;
    color: #2D3436;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    border-bottom: 1px solid #F0F0F0;
    color: #636E72;
}

.data-table tr:hover td {
    background: #FAFAFA;
}

.type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.type-badge.tim_it {
    background: #E3F2FD;
    color: #1565C0;
}

.type-badge.klien {
    background: #FFF3E0;
    color: #E65100;
}

.type-badge.lainnya {
    background: #F3E5F5;
    color: #7B1FA2;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-view {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.btn-delete {
    background: #FFEBEE;
    color: #C62828;
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px;
}

.pagination span,
.pagination a {
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #636E72;
    font-weight: 500;
}

.pagination span.active {
    background: #2D3436;
    color: #fff;
}

.pagination a:hover {
    background: #F8F9FA;
}

/* Detail Page */
.detail-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.btn-back-link {
    background: #F8F9FA;
    color: #2D3436;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.detail-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F0F0F0;
}

.detail-info-item label {
    display: block;
    font-size: 12px;
    color: #636E72;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-info-item span {
    font-size: 16px;
    color: #2D3436;
    font-weight: 500;
}

.answer-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.answer-item {
    background: #F8F9FA;
    border-radius: 12px;
    padding: 16px 20px;
}

.answer-question {
    font-size: 14px;
    color: #636E72;
    margin-bottom: 8px;
}

.answer-value {
    font-size: 16px;
    color: #2D3436;
    font-weight: 500;
}

.answer-value.rating {
    color: #2D3436;
    font-size: 18px;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: #2D3436;
    margin-bottom: 8px;
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
}

.login-subtitle {
    color: #636E72;
    text-align: center;
    margin-bottom: 32px;
}

.login-form .form-group {
    background: transparent;
    padding: 0;
    margin-bottom: 20px;
}

.login-form .form-label {
    margin-bottom: 8px;
}

.login-form .btn {
    width: 100%;
    margin-top: 12px;
}

.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #636E72;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .data-table {
        font-size: 14px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px;
    }
    
    .detail-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}
