/* CSS Variables */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --success-color: #10b981;
    --success-hover: #059669;
    --danger-color: #ef4444;
    --danger-hover: #dc2626;
    --warning-color: #f59e0b;
    --warning-hover: #d97706;
    --secondary-color: #6b7280;
    --background-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-color);
    min-height: 100vh;
}

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

/* Header Styles */
.header {
    background: linear-gradient(135deg, #3b82f6, #1e40af, #7c3aed, #ec4899);
    background-size: 400% 400%;
    animation: rainbow 8s ease infinite, slideDown 0.8s ease-out;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.spc-logo {
    position: relative;
}

.logo-icon {
    width: 4rem;
    height: 4rem;
    animation: logoRotate 10s linear infinite, logoPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
}

.logo-text-large {
    font-family: 'Arial Black', sans-serif;
    font-size: 18px;
    font-weight: 900;
    fill: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.logo-text-small {
    font-family: 'Arial', sans-serif;
    font-size: 8px;
    font-weight: 600;
    fill: white;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.brand-text h1 {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    position: relative;
    z-index: 1;
    margin: 0;
    background: linear-gradient(45deg, #ffffff, #f8fafc, #ffffff);
    background-clip: text;
    -webkit-background-clip: text;
    animation: textShimmer 3s ease-in-out infinite;
}

.tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

@keyframes logoRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes textShimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    color: white;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite 1s;
}

.contact-icon {
    width: 1rem;
    height: 1rem;
    color: white;
}

.contact-number {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.admin-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.admin-btn:hover {
    background: #e2e8f0;
    transform: scale(1.05);
}

.btn-icon {
    width: 1rem;
    height: 1rem;
}

/* Main Content */
.main {
    padding: 3rem 0;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Intro Section */
.intro {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 0.6s ease-out;
}

.intro-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    border-radius: 50%;
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

.intro-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: white;
}

.intro h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #7c3aed);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 42rem;
    margin: 0 auto 2rem auto;
    line-height: 1.6;
}

.intro-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff6b9d, #a855f7);
    color: white;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    animation: badgeFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.intro-badge:nth-child(1) {
    animation-delay: 0s;
    background: linear-gradient(135deg, #ff6b9d, #ec4899);
}

.intro-badge:nth-child(2) {
    animation-delay: 0.5s;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
}

.intro-badge:nth-child(3) {
    animation-delay: 1s;
    background: linear-gradient(135deg, #3b82f6, #1e40af);
}

.intro-badge:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

@keyframes badgeFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1);
    }
    50% { 
        transform: translateY(-5px) scale(1.02);
    }
}

/* Form Styles */
.form-container {
    max-width: 48rem;
    margin: 0 auto;
}

.feedback-form {
    background: var(--surface-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    animation: scaleIn 0.6s ease-out;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section:first-child {
    background: linear-gradient(135deg, #dbeafe, #e0e7ff);
    border: 1px solid #bfdbfe;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
}

.comments-section {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 1px solid #86efac;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.section-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.question-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.question-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-color);
}

.label-icon {
    width: 1rem;
    height: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--surface-color);
}

.comments-textarea {
    min-height: 120px;
    border: 2px solid #86efac !important;
    border-radius: var(--radius-xl);
    resize: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgb(59 130 246 / 0.1);
}

.comments-textarea:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 4px rgb(16 185 129 / 0.1) !important;
}

/* Branch Location Section */
.branch-location-section {
    background: linear-gradient(135deg, #f3e8ff 0%, #e0e7ff 100%);
    border: 2px solid #c4b5fd;
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin: 1.5rem 0;
    animation: slideInUp 0.6s ease-out;
}

.branch-select {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #a855f7 !important;
    color: #6b21a8;
    font-weight: 600;
    transition: all 0.3s ease;
}

.branch-select:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 4px rgb(124 58 237 / 0.1) !important;
    transform: scale(1.02);
}

.branch-select:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15);
}

/* Branch Badge */
.branch-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
    animation: pulse 2s infinite;
}

.branch-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

/* Enhanced Animations for Website */
@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.8), 0 0 30px rgba(59, 130, 246, 0.6);
    }
    100% {
        box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
    }
}

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

@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Enhanced Form Animation */
.form-section:nth-child(odd) {
    animation: slideInLeft 0.8s ease-out;
}

.form-section:nth-child(even) {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group select {
    cursor: pointer;
}

.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.submit-section {
    text-align: center;
    margin-top: 2rem;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover), #7c3aed, #ec4899);
    background-size: 300% 300%;
    animation: rainbow 4s ease infinite, glow 2s ease-in-out infinite alternate;
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: var(--shadow-xl), 0 0 30px rgba(59, 130, 246, 0.5);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shine 2s infinite;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Admin Page Styles */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.page-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary-color);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: var(--danger-hover);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-color);
}

.stat-card h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Controls Section */
.controls-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.filters {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.filter-group select,
.filter-group input {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--surface-color);
}

.export-section {
    display: flex;
    gap: 0.75rem;
}

.sample-btn,
.export-btn,
.clear-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sample-btn {
    background: var(--primary-color);
    color: white;
}

.sample-btn:hover {
    background: var(--primary-hover);
}

.export-btn {
    background: var(--success-color);
    color: white;
}

.export-btn:hover {
    background: var(--success-hover);
}

.clear-btn {
    background: var(--secondary-color);
    color: white;
}

.clear-btn:hover {
    background: #4b5563;
}

.clear-all-btn {
    background: var(--warning-color);
    color: white;
}

.clear-all-btn:hover {
    background: var(--warning-hover);
}

/* Table Styles */
.table-section {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.table-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.table-container {
    overflow-x: auto;
}

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

.feedback-table th {
    background: #f8fafc;
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.feedback-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-primary);
}

.feedback-table tr:hover {
    background: #f8fafc;
}

.rating-badge {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 500;
}

.rating-excellent {
    background: #d1fae5;
    color: #065f46;
}

.rating-very-good {
    background: #dbeafe;
    color: #1e40af;
}

.rating-good {
    background: #dcfce7;
    color: #166534;
}

.rating-fair {
    background: #fef3c7;
    color: #92400e;
}

.rating-poor {
    background: #fee2e2;
    color: #991b1b;
}

.no-data {
    display: none;
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.no-data svg {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 28rem;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.modal-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cancel-btn,
.login-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-btn {
    background: var(--secondary-color);
    color: white;
}

.cancel-btn:hover {
    background: #4b5563;
}

.login-btn {
    background: var(--primary-color);
    color: white;
}

.login-btn:hover {
    background: var(--primary-hover);
}

.save-btn {
    background: var(--success-color);
    color: white;
}

.save-btn:hover {
    background: var(--success-hover);
}

.delete-btn {
    background: var(--danger-color);
    color: white;
}

.delete-btn:hover {
    background: var(--danger-hover);
}

.edit-modal {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.delete-details {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
}

.delete-details h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.delete-details p {
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.edit-btn, .delete-btn-small {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-btn {
    background: var(--primary-color);
    color: white;
}

.edit-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.delete-btn-small {
    background: var(--danger-color);
    color: white;
}

.delete-btn-small:hover {
    background: var(--danger-hover);
    transform: scale(1.05);
}

.edit-btn svg, .delete-btn-small svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

.success-message.active {
    display: flex;
}

.success-message svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    color: white;
    font-weight: 500;
    animation: slideInRight 0.3s ease;
}

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--danger-color);
}

.toast.info {
    background: var(--primary-color);
}

.toast svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

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

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40%, 43% {
        transform: translateY(-10px);
    }
    70% {
        transform: translateY(-5px);
    }
    90% {
        transform: translateY(-2px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .contact-info {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .controls-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters {
        justify-content: center;
    }
    
    .export-section {
        justify-content: center;
    }
    
    .feedback-table {
        font-size: 0.75rem;
    }
    
    .feedback-table th,
    .feedback-table td {
        padding: 0.5rem;
    }
    
    .intro h2 {
        font-size: 2rem;
    }
    
    .intro p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .feedback-form {
        padding: 1rem;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    animation: whatsappFloat 3s ease-in-out infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.whatsapp-icon {
    width: 2rem;
    height: 2rem;
    animation: whatsappSpin 4s linear infinite;
}

.whatsapp-text {
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.whatsapp-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    background: rgba(37, 211, 102, 0.3);
    transform: translate(-50%, -50%);
    animation: whatsappPulse 2s infinite;
    pointer-events: none;
}

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

@keyframes whatsappSpin {
    0% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(10deg);
    }
    50% {
        transform: rotate(0deg);
    }
    75% {
        transform: rotate(-10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

@keyframes whatsappPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* WhatsApp Button Mobile Styles */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-btn {
        border-radius: 50%;
        width: 60px;
        height: 60px;
        justify-content: center;
        padding: 0;
    }
    
    .whatsapp-icon {
        width: 1.75rem;
        height: 1.75rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .controls-section,
    .modal,
    .success-message,
    .toast-container,
    .whatsapp-float {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .feedback-table {
        border: 1px solid #000;
    }
    
    .feedback-table th,
    .feedback-table td {
        border: 1px solid #000;
    }
}