        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: #e5e7eb;
            line-height: 1.6;
            min-height: 100vh;
        }

        .header {
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            padding: 3rem 0;
            text-align: center;
            border-bottom: 2px solid #334155;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        }

        .header h1 {
            font-size: 3rem;
            font-weight: 700;
            color: #f8fafc;
            margin-bottom: 0.5rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .header p {
            font-size: 1.2rem;
            color: #94a3b8;
            opacity: 0.9;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .main-nav {
            background: rgba(30, 41, 59, 0.95);
            border-bottom: 1px solid #334155;
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(10px);
        }

        .nav-container {
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
        }

        .nav-item {
            background: transparent;
            border: 2px solid #475569;
            color: #e5e7eb;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            font-size: 1rem;
        }

        .nav-item:hover {
            border-color: #0ca678;
            background: rgba(12, 166, 120, 0.1);
            color: #0ca678;
            transform: translateY(-2px);
        }

        .nav-item.active {
            background: #0ca678;
            border-color: #0ca678;
            color: white;
            box-shadow: 0 4px 15px rgba(12, 166, 120, 0.3);
        }

        .content {
            padding: 3rem 0;
            min-height: calc(100vh - 300px);
        }

        .page {
            display: none;
            animation: fadeIn 0.5s ease-in;
        }

        .page.active {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Positions Grid */
        .positions-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .position-card {
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            border: 1px solid #475569;
            border-radius: 16px;
            padding: 2rem;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .position-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #0ca678, #06523b);
        }

        .position-card:hover {
            border-color: #0ca678;
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(12, 166, 120, 0.2);
        }

        .position-card.fully-staffed {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .position-card.fully-staffed:hover {
            transform: none;
            box-shadow: none;
        }

        .position-title {
            font-size: 1.5rem;
            font-weight: 700;
            color: #f8fafc;
            margin-bottom: 0.5rem;
        }

        .position-department {
            color: #0ca678;
            font-weight: 600;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .position-location {
            color: #94a3b8;
            font-size: 0.9rem;
            margin: 0.5rem 0;
        }

        .position-slots {
            color: #fbbf24;
            font-size: 0.85rem;
            font-weight: 600;
            margin-top: 0.5rem;
        }

        .position-description {
            color: #cbd5e1;
            margin: 1.5rem 0;
            line-height: 1.6;
        }

        .position-requirements {
            margin: 1.5rem 0;
        }

        .position-requirements h4 {
            color: #f8fafc;
            font-size: 0.9rem;
            margin-bottom: 0.75rem;
            font-weight: 600;
        }

        .position-requirements ul {
            list-style: none;
            color: #94a3b8;
            font-size: 0.85rem;
        }

        .position-requirements li {
            margin-bottom: 0.5rem;
            padding-left: 1.5rem;
            position: relative;
        }

        .position-requirements li:before {
            content: "✓";
            color: #10b981;
            position: absolute;
            left: 0;
            font-weight: bold;
        }

        .apply-btn {
            background: linear-gradient(135deg, #0ca678 0%, #06523b 100%);
            color: white;
            border: none;
            padding: 1rem 2rem;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            margin-top: 1.5rem;
            font-size: 1rem;
        }

        .apply-btn:hover {
            background: linear-gradient(135deg, #0ca678 0%, #06523b 100%);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(12, 166, 120, 0.4);
        }

        .apply-btn.disabled {
            background: #6b7280;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* Form Styles */
        .form-container {
            max-width: 800px;
            margin: 0 auto;
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            border: 1px solid #475569;
            border-radius: 16px;
            padding: 2.5rem;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .form-header {
            text-align: center;
            margin-bottom: 2.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 2px solid #475569;
        }

        .form-title {
            font-size: 2rem;
            font-weight: 700;
            color: #f8fafc;
            margin-bottom: 0.5rem;
        }

        .form-subtitle {
            color: #94a3b8;
            font-size: 1.1rem;
        }

        .form-section {
            margin-bottom: 2.5rem;
        }

        .section-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: #f8fafc;
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid #475569;
            position: relative;
        }

        .section-title::before {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 60px;
            height: 2px;
            background: #0ca678;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group.full-width {
            grid-column: 1 / -1;
        }

        .form-label {
            display: block;
            margin-bottom: 0.75rem;
            font-weight: 600;
            color: #e5e7eb;
            font-size: 0.95rem;
        }

        .required {
            color: #ef4444;
        }

        .form-input,
        .form-textarea,
        .form-select {
            width: 100%;
            padding: 1rem;
            background: rgba(15, 23, 42, 0.8);
            border: 2px solid #475569;
            border-radius: 8px;
            color: #e5e7eb;
            font-size: 0.95rem;
            transition: all 0.3s ease;
        }

        .form-input:focus,
        .form-textarea:focus,
        .form-select:focus {
            outline: none;
            border-color: #0ca678;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
            background: rgba(15, 23, 42, 1);
        }

        .form-textarea {
            resize: vertical;
            min-height: 120px;
        }

        .checkbox-group {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-top: 0.75rem;
        }

        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem;
            background: rgba(15, 23, 42, 0.5);
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .checkbox-item:hover {
            background: rgba(15, 23, 42, 0.8);
        }

        .checkbox-item input[type="checkbox"] {
            accent-color: #0ca678;
            width: 18px;
            height: 18px;
        }

        .checkbox-item label {
            color: #cbd5e1;
            font-size: 0.9rem;
            cursor: pointer;
        }

        .submit-btn {
            background: linear-gradient(135deg, #0ca678 0%, #054632 100%);
            color: white;
            border: none;
            padding: 1.25rem 3rem;
            border-radius: 12px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            width: 100%;
            margin-top: 2rem;
        }

        .submit-btn:hover {
            background: linear-gradient(135deg, #0ca678 0%, #054632 100%);
            transform: translateY(-2px);
            box-shadow: 0 12px 30px rgba(12, 166, 120, 0.4);
        }

        /* Admin Login Page */
        .login-container {
            max-width: 400px;
            margin: 4rem auto;
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            border: 1px solid #475569;
            border-radius: 16px;
            padding: 2.5rem;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .login-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .login-title {
            font-size: 1.8rem;
            font-weight: 700;
            color: #f8fafc;
            margin-bottom: 0.5rem;
        }

        .login-subtitle {
            color: #94a3b8;
        }

        .credentials-info {
            margin-top: 1.5rem;
            padding: 1rem;
            background: rgba(15, 23, 42, 0.8);
            border-radius: 8px;
            font-size: 0.875rem;
            color: #94a3b8;
        }

        /* Admin Dashboard */
        .admin-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 2px solid #475569;
        }

        .admin-user-info {
            display: flex;
            align-items: center;
            gap: 1rem;
            color: #94a3b8;
        }

        .user-badge {
            background: linear-gradient(135deg, #0ca678 0%, #054632 100%);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .admin-dashboard {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .stat-card {
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            border: 1px solid #475569;
            border-radius: 16px;
            padding: 2rem;
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #0ca678, #054632);
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
        }

        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            color: #0ca678;
            margin-bottom: 0.5rem;
        }

        .stat-label {
            color: #94a3b8;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .admin-section {
            background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
            border: 1px solid #475569;
            border-radius: 16px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }

        .admin-section h3 {
            color: #f8fafc;
            margin-bottom: 1.5rem;
            font-size: 1.4rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .job-card,
        .application-item {
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid #475569;
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            transition: all 0.3s ease;
        }

        .job-card:hover,
        .application-item:hover {
            border-color: #0ca678;
            box-shadow: 0 5px 15px rgba(59, 130, 246, 0.1);
        }

        .admin-controls {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-top: 1rem;
        }

        .admin-btn {
            padding: 0.6rem 1.2rem;
            border: none;
            border-radius: 8px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-primary {
            background: linear-gradient(135deg, #0ca678 0%, #043f2d 100%);
            color: white;
        }

        .btn-success {
            background: linear-gradient(135deg, #10b981 0%, #047857 100%);
            color: white;
        }

        .btn-danger {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: white;
        }

        .btn-secondary {
            background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
            color: white;
        }

        .btn-discord {
            background: linear-gradient(135deg, #0ca678 0%, #043f2d 100%);
            color: white;
        }

        .btn-warning {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            color: white;
        }

        .admin-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }

        /* Toggle Switch */
        .toggle-switch {
            position: relative;
            width: 60px;
            height: 30px;
            background: #6b7280;
            border-radius: 15px;
            cursor: pointer;
            transition: background 0.3s;
        }

        .toggle-switch.active {
            background: #10b981;
        }

        .toggle-switch::after {
            content: '';
            position: absolute;
            top: 3px;
            left: 3px;
            width: 24px;
            height: 24px;
            background: white;
            border-radius: 50%;
            transition: transform 0.3s;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        .toggle-switch.active::after {
            transform: translateX(30px);
        }

        /* Notification */
        .notification {
            position: fixed;
            top: 2rem;
            right: 2rem;
            padding: 1rem 1.5rem;
            border-radius: 12px;
            color: white;
            font-weight: 600;
            z-index: 2000;
            opacity: 0;
            transform: translateX(100%);
            transition: all 0.3s ease;
            max-width: 400px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
        }

        .notification.show {
            opacity: 1;
            transform: translateX(0);
        }

        .notification.success {
            background: linear-gradient(135deg, #10b981 0%, #047857 100%);
        }

        .notification.error {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        }

        .notification.warning {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        }

        /* Responsive Design */
        @media (max-width: 1024px) {
            .positions-grid {
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                gap: 1.5rem;
            }
            
            .admin-dashboard {
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 1rem;
            }

            .header h1 {
                font-size: 2rem;
            }

            .header p {
                font-size: 1rem;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .nav-container {
                flex-direction: column;
                align-items: center;
                gap: 1rem;
            }

            .nav-item {
                width: 100%;
                text-align: center;
                padding: 1rem 1.5rem;
            }

            .positions-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .admin-dashboard {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .admin-controls {
                flex-direction: column;
                gap: 0.5rem;
            }

            .admin-btn {
                width: 100%;
                text-align: center;
            }

            /* Modal responsive styles */
            .modal-container {
                min-width: 95vw !important;
                max-width: 95vw !important;
                margin: 1rem;
                max-height: 90vh;
                overflow-y: auto;
            }

            /* Form responsive styles */
            .form-container {
                padding: 1.5rem;
                margin: 1rem;
                max-width: none;
            }

            .form-header {
                margin-bottom: 1.5rem;
            }

            .form-title {
                font-size: 1.5rem;
            }

            .form-subtitle {
                font-size: 1rem;
            }

            /* Field management responsive */
            .field-management {
                padding: 1rem;
                margin-top: 1rem;
            }

            .field-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
                padding: 1rem;
            }

            .field-controls {
                width: 100%;
                justify-content: flex-end;
            }

            .field-btn {
                flex: 1;
                max-width: 120px;
            }

            /* Application form responsive */
            .checkbox-group {
                grid-template-columns: 1fr;
                gap: 0.75rem;
            }

            .position-card {
                padding: 1.5rem;
            }

            .position-title {
                font-size: 1.25rem;
            }

            /* Admin section responsive */
            .admin-section {
                padding: 1.5rem;
            }

            .admin-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }

            .admin-user-info {
                width: 100%;
                justify-content: space-between;
            }

            /* Stats cards responsive */
            .stat-card {
                padding: 1.5rem;
            }

            .stat-number {
                font-size: 2rem;
            }

            /* Job card responsive */
            .job-card,
            .application-item {
                padding: 1.25rem;
            }

            /* Notification responsive */
            .notification {
                top: 1rem;
                right: 1rem;
                left: 1rem;
                max-width: none;
            }

            /* Login container responsive */
            .login-container {
                margin: 2rem auto;
                padding: 2rem;
                max-width: none;
                width: calc(100% - 2rem);
            }

            .login-title {
                font-size: 1.5rem;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 0 0.75rem;
            }

            .header h1 {
                font-size: 1.75rem;
            }

            .nav-item {
                padding: 0.875rem 1rem;
                font-size: 0.9rem;
            }

            .form-container {
                padding: 1.25rem;
                margin: 0.75rem;
            }

            .position-card {
                padding: 1.25rem;
            }

            .position-title {
                font-size: 1.1rem;
            }

            .position-department {
                font-size: 0.8rem;
            }

            .admin-section {
                padding: 1.25rem;
            }

            .admin-btn {
                padding: 0.75rem 1rem;
                font-size: 0.85rem;
            }

            .stat-card {
                padding: 1.25rem;
            }

            .stat-number {
                font-size: 1.75rem;
            }

            .field-management {
                padding: 0.875rem;
            }

            .field-item {
                padding: 0.875rem;
            }

            .form-input,
            .form-textarea,
            .form-select {
                padding: 0.875rem;
                font-size: 0.9rem;
            }

            .submit-btn {
                padding: 1rem 2rem;
                font-size: 1rem;
            }

            .login-container {
                padding: 1.5rem;
                margin: 1rem auto;
            }

            /* Make modals take full screen on very small devices */
            .modal-container {
                min-width: 100vw !important;
                max-width: 100vw !important;
                margin: 0;
                border-radius: 0 !important;
                max-height: 100vh;
            }
        }

        /* Landscape orientation adjustments for tablets */
        @media (max-width: 1024px) and (orientation: landscape) {
            .positions-grid {
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            }
            
            .admin-dashboard {
                grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            }
        }

        /* Field Management Styles */
        .field-management {
            background: rgba(15, 23, 42, 0.8);
            border: 1px solid #475569;
            border-radius: 12px;
            padding: 1.5rem;
            margin-top: 1.5rem;
        }

        .field-management h4 {
            color: #f8fafc;
            margin-bottom: 1rem;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .field-list {
            max-height: 300px;
            overflow-y: auto;
            margin-bottom: 1rem;
        }

        .field-item {
            background: rgba(30, 41, 59, 0.6);
            border: 1px solid #475569;
            border-radius: 8px;
            padding: 1rem;
            margin-bottom: 0.75rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
        }

        .field-item:hover {
            border-color: #0ca678;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
        }

        .field-info {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .field-name {
            font-weight: 600;
            color: #f8fafc;
            font-size: 0.95rem;
        }

        .field-details {
            font-size: 0.8rem;
            color: #94a3b8;
        }

        .field-type-badge {
            background: #0ca678;
            color: white;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
        }

        .field-controls {
            display: flex;
            gap: 0.5rem;
        }

        .field-btn {
            padding: 0.4rem 0.8rem;
            border: none;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
        }

        .field-btn:hover {
            transform: translateY(-1px);
        }

        .btn-field-edit {
            background: #0ca678;
            color: white;
        }

        .btn-field-delete {
            background: #ef4444;
            color: white;
        }

        .btn-field-add {
            background: #10b981;
            color: white;
            width: 100%;
        }

        .field-form {
            display: grid;
            gap: 1rem;
            margin-top: 1rem;
        }

        .field-form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        .field-form-full {
            grid-column: 1 / -1;
        }

        .options-input {
            margin-top: 0.5rem;
        }

        .option-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
        }

        .option-input {
            flex: 1;
            padding: 0.5rem;
            background: rgba(15, 23, 42, 0.8);
            border: 1px solid #475569;
            border-radius: 4px;
            color: #e5e7eb;
            font-size: 0.9rem;
        }

        .option-remove {
            background: #ef4444;
            color: white;
            border: none;
            padding: 0.3rem 0.6rem;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.8rem;
        }

        .add-option-btn {
            background: #0ca678;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.8rem;
            margin-top: 0.5rem;
        }

        .field-preview {
            background: rgba(30, 41, 59, 0.6);
            border: 1px solid #475569;
            border-radius: 8px;
            padding: 1rem;
            margin-top: 1rem;
        }

        .field-preview h5 {
            color: #f8fafc;
            margin-bottom: 0.75rem;
            font-size: 0.9rem;
        }