        body {
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100%;
        }
        
        html, body {
            height: 100%;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .header {
            text-align: center;
            color: white;
            margin-bottom: 30px;
        }

        .header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .nav-tabs {
            display: flex;
            background: white;
            border-radius: 10px 10px 0 0;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .nav-tab {
            flex: 1;
            padding: 15px 20px;
            background: #f8f9fa;
            border: none;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            transition: all 0.3s ease;
            border-right: 1px solid #dee2e6;
        }

        .nav-tab:last-child {
            border-right: none;
        }

        .nav-tab.active {
            background: white;
            color: #667eea;
            font-weight: 600;
        }

        .nav-tab:hover:not(.active) {
            background: #e9ecef;
        }

        .tab-content {
            background: white;
            border-radius: 0 0 10px 10px;
            padding: 30px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            min-height: 500px;
        }

        .tab-pane {
            display: none;
        }

        .tab-pane.active {
            display: block;
        }

        /* Form Styles */
        .form-group {
            margin-bottom: 25px;
        }

        .form-label {
            display: block;
            font-weight: 600;
            margin-bottom: 10px;
            color: #333;
            font-size: 16px;
        }

        .emoji-rating {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin: 15px 0;
        }

        .emoji-option {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
            padding: 10px;
            border-radius: 10px;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .emoji-option:hover {
            background: #f8f9fa;
            transform: scale(1.05);
        }

        .emoji-option input[type="radio"] {
            display: none;
        }

        .emoji-option input[type="radio"]:checked + .emoji-container {
            transform: scale(1.2);
        }

        .emoji-option input[type="radio"]:checked ~ .emoji-label {
            color: #667eea;
            font-weight: 600;
        }

        .emoji-container {
            font-size: 2.5rem;
            margin-bottom: 5px;
            transition: transform 0.3s ease;
        }

        .emoji-label {
            font-size: 12px;
            text-align: center;
            color: #666;
            transition: all 0.3s ease;
        }

        .form-textarea {
            width: 100%;
            padding: 12px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 14px;
            resize: vertical;
            min-height: 100px;
            font-family: inherit;
        }

        .form-textarea:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .btn {
            padding: 12px 30px;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            text-align: center;
        }

        .btn-primary {
            background: #667eea;
            color: white;
        }

        .btn-primary:hover {
            background: #5a6fd8;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .btn-success {
            background: #28a745;
            color: white;
        }

        .btn-success:hover {
            background: #218838;
        }

        /* Admin Panel Styles */
        .login-form {
            max-width: 400px;
            margin: 0 auto;
            background: white;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .form-input {
            width: 100%;
            padding: 12px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 14px;
            margin-bottom: 15px;
        }

        .form-input:focus {
            outline: none;
            border-color: #667eea;
        }

        /* Dashboard Styles */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 25px;
            border-radius: 10px;
            text-align: center;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 14px;
            opacity: 0.9;
        }

        .chart-container {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
        }

        .modal-content {
            background-color: white;
            margin: 15% auto;
            padding: 30px;
            border-radius: 10px;
            width: 90%;
            max-width: 500px;
            text-align: center;
            box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        }

        .modal-content h3 {
            color: #333;
            margin-bottom: 15px;
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            line-height: 1;
        }

        .close:hover {
            color: #000;
        }

        /* Loading Overlay */
        .loading-overlay {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.7);
        }

        .loading-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
            color: white;
        }

        .spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #667eea;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .form-builder {
            border: 2px dashed #dee2e6;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
        }

        .question-item {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 10px;
            border-left: 4px solid #667eea;
        }

        /* Admin Panel Styles */
        .admin-tabs {
            display: flex;
            background: #f8f9fa;
            border-radius: 8px;
            margin-bottom: 20px;
            overflow: hidden;
        }

        .admin-tab {
            flex: 1;
            padding: 12px 20px;
            background: transparent;
            border: none;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .admin-tab.active {
            background: #667eea;
            color: white;
        }

        .admin-tab:hover:not(.active) {
            background: #e9ecef;
        }

        .admin-tab-pane {
            display: none;
        }

        .admin-tab-pane.active {
            display: block;
        }

        .questions-section {
            margin-top: 25px;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e9ecef;
        }

        .section-header h4 {
            margin: 0;
            color: #333;
        }

        .btn-sm {
            padding: 8px 16px;
            font-size: 14px;
        }

        .question-editor {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 15px;
            position: relative;
        }

        .question-editor.editing {
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .question-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
        }

        .question-number {
            background: #667eea;
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            font-size: 14px;
        }

        .question-actions {
            display: flex;
            gap: 5px;
        }

        .btn-icon {
            width: 35px;
            height: 35px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .btn-edit {
            background: #ffc107;
            color: white;
        }

        .btn-edit:hover {
            background: #e0a800;
        }

        .btn-delete {
            background: #dc3545;
            color: white;
        }

        .btn-delete:hover {
            background: #c82333;
        }

        .btn-move {
            background: #6c757d;
            color: white;
            cursor: grab;
        }

        .btn-move:hover {
            background: #5a6268;
        }

        .btn-move:active {
            cursor: grabbing;
        }

        .question-content {
            flex: 1;
            margin: 0 15px;
        }

        .question-text {
            font-weight: 600;
            color: #333;
            margin-bottom: 5px;
        }

        .question-type {
            font-size: 12px;
            color: #666;
            background: #e9ecef;
            padding: 2px 8px;
            border-radius: 12px;
            display: inline-block;
        }

        .form-actions {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #dee2e6;
        }

        .export-section {
            background: #f8f9fa;
            padding: 25px;
            border-radius: 10px;
            border: 1px solid #dee2e6;
        }

        .export-options {
            margin-top: 20px;
        }

        .question-form {
            background: white;
            border: 2px solid #667eea;
            border-radius: 8px;
            padding: 20px;
            margin-top: 15px;
        }

        .form-row {
            display: flex;
            gap: 15px;
            align-items: end;
        }

        .form-row .form-group {
            flex: 1;
            margin-bottom: 15px;
        }

        .drag-handle {
            cursor: grab;
            color: #6c757d;
            font-size: 18px;
        }

        .drag-handle:active {
            cursor: grabbing;
        }

        .sortable-ghost {
            opacity: 0.5;
        }

        .preview-modal {
            max-width: 800px;
        }

        /* Responsive Design */
        @media (max-width: 1200px) {
            .container {
                max-width: 100%;
                padding: 15px;
            }
            
            .header h1 {
                font-size: 2.2rem;
            }
            
            .stats-grid {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 15px;
            }
        }

        @media (max-width: 992px) {
            .header h1 {
                font-size: 2rem;
            }
            
            .tab-content {
                padding: 20px;
            }
            
            .emoji-rating {
                gap: 12px;
            }
            
            .emoji-container {
                font-size: 2.2rem;
            }
            
            .chart-container {
                padding: 15px;
            }
            
            /* Dashboard charts responsive */
            .chart-container canvas {
                max-width: 100%;
                height: auto !important;
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 10px;
            }
            
            .header {
                margin-bottom: 20px;
            }
            
            .header h1 {
                font-size: 1.8rem;
                margin-bottom: 8px;
            }
            
            .header p {
                font-size: 14px;
            }
            
            /* Navigation tabs responsive */
            .nav-tabs {
                flex-direction: column;
                border-radius: 10px;
            }
            
            .nav-tab {
                border-right: none;
                border-bottom: 1px solid #dee2e6;
                padding: 12px 15px;
                font-size: 14px;
            }
            
            .nav-tab:last-child {
                border-bottom: none;
            }
            
            .tab-content {
                padding: 15px;
                border-radius: 10px;
            }
            
            /* Form responsive */
            .form-group {
                margin-bottom: 20px;
            }
            
            .form-label {
                font-size: 15px;
                margin-bottom: 8px;
            }
            
            .emoji-rating {
                flex-wrap: wrap;
                gap: 8px;
                justify-content: center;
            }
            
            .emoji-option {
                padding: 8px;
                min-width: 60px;
            }
            
            .emoji-container {
                font-size: 1.8rem;
                margin-bottom: 3px;
            }
            
            .emoji-label {
                font-size: 11px;
            }
            
            .form-input, .form-textarea {
                font-size: 16px; /* Prevent zoom on iOS */
                padding: 10px;
            }
            
            .btn {
                padding: 10px 20px;
                font-size: 14px;
                width: 100%;
                margin-bottom: 10px;
            }
            
            /* Stats grid responsive */
            .stats-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .stat-card {
                padding: 20px;
            }
            
            .stat-number {
                font-size: 2rem;
            }
            
            .stat-label {
                font-size: 13px;
            }
            
            /* Charts responsive */
            .chart-container {
                padding: 10px;
                margin-bottom: 15px;
            }
            
            .chart-container h3 {
                font-size: 16px;
                margin-bottom: 15px;
            }

            /* Admin panel responsive */
            .admin-tabs {
                flex-direction: column;
            }
            
            .admin-tab {
                padding: 10px 15px;
                font-size: 13px;
            }

            .section-header {
                flex-direction: column;
                align-items: stretch;
                gap: 10px;
            }
            
            .section-header h4 {
                font-size: 16px;
            }

            .question-header {
                flex-direction: column;
                gap: 10px;
                align-items: stretch;
            }

            .question-actions {
                align-self: flex-end;
                flex-wrap: wrap;
            }
            
            .question-content {
                margin: 0;
            }
            
            .question-text {
                font-size: 14px;
            }

            .form-row {
                flex-direction: column;
            }

            .form-actions {
                flex-direction: column;
            }
            
            .btn-sm {
                padding: 6px 12px;
                font-size: 12px;
            }
            
            /* Modal responsive */
            .modal-content {
                margin: 10% auto;
                width: 95%;
                padding: 20px;
            }
            
            .preview-modal {
                max-width: 95%;
            }
            
            /* Login form responsive */
            .login-form {
                padding: 20px;
                margin: 0 10px;
            }
        }

        @media (max-width: 576px) {
            .container {
                padding: 8px;
            }
            
            .header h1 {
                font-size: 1.5rem;
            }
            
            .tab-content {
                padding: 12px;
            }
            
            .emoji-rating {
                gap: 6px;
            }
            
            .emoji-option {
                padding: 6px;
                min-width: 50px;
            }
            
            .emoji-container {
                font-size: 1.5rem;
            }
            
            .emoji-label {
                font-size: 10px;
            }
            
            .stat-card {
                padding: 15px;
            }
            
            .stat-number {
                font-size: 1.8rem;
            }
            
            .chart-container {
                padding: 8px;
            }
            
            .chart-container h3 {
                font-size: 14px;
            }
            
            .question-editor {
                padding: 15px;
            }
            
            .question-number {
                width: 25px;
                height: 25px;
                font-size: 12px;
            }
            
            .btn-icon {
                width: 30px;
                height: 30px;
                font-size: 14px;
            }
            
            .modal-content {
                margin: 5% auto;
                padding: 15px;
            }
        }

        /* Landscape orientation adjustments */
        @media (max-width: 768px) and (orientation: landscape) {
            .header {
                margin-bottom: 15px;
            }
            
            .header h1 {
                font-size: 1.6rem;
            }
            
            .emoji-rating {
                gap: 10px;
            }
            
            .emoji-container {
                font-size: 2rem;
            }
            
            .stats-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        /* High DPI displays */
        @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
            .emoji-container {
                -webkit-font-smoothing: antialiased;
                -moz-osx-font-smoothing: grayscale;
            }
        }

        /* Print styles */
        @media print {
            .nav-tabs, .btn, .loading-overlay, .modal {
                display: none !important;
            }
            
            .tab-content {
                box-shadow: none;
                border: 1px solid #000;
            }
            
            .header {
                color: #000 !important;
                background: none !important;
            }
            
            .stat-card {
                background: none !important;
                color: #000 !important;
                border: 1px solid #000;
            }
        }

        /* Focus and accessibility improvements */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* Dark mode support */
        @media (prefers-color-scheme: dark) {
            .form-input:focus, .form-textarea:focus {
                box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
            }
        }
		
		.footer {
  background-color: #f8f9fa;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  color: #666;
  border-top: 1px solid #dee2e6;
  margin-top: 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
