:root {
            --primary: #4f46e5;
            --primary-dark: #4338ca;
            --danger: #ef4444;
            --danger-dark: #dc2626;
        }

        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background: #f3f4f6;
            color: #1f2937;
        }

        .container {
            width: 90%;
            max-width: 1000px;
            margin: 2rem auto;
            background: white;
            padding: 2rem;
            border-radius: 1rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                        0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }

        h1 {
            color: var(--primary);
            font-size: 2rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid #e5e7eb;
        }

        form {
            display: grid;
            gap: 1.5rem;
            margin-bottom: 2.5rem;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        label {
            font-weight: 500;
            color: #4b5563;
        }

        input, textarea {
            padding: 0.75rem 1rem;
            border: 1px solid #d1d5db;
            border-radius: 0.5rem;
            transition: all 0.2s;
            width: 100%;
        }

        input:focus, textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }
        
        .home-button-container {
            display: flex;
            justify-content: center;
            margin-bottom: 1.5rem;
        }
        
        .home-button {
            text-decoration: none;
            background: var(--primary);
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: 0.75rem;
            transition: all 0.2s;
            display: inline-block;
        }
        
        .home-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 6px -1px var(--shadow-color);
            filter: brightness(110%);
        }

        button {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 0.5rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

        #submitButton {
            background: var(--primary);
            color: white;
        }

        #submitButton:hover {
            background: var(--primary-dark);
        }

        table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            margin-top: 2rem;
        }

        th {
            background: #f9fafb;
            padding: 1rem;
            text-align: left;
            font-weight: 600;
            color: #374151;
            border-bottom: 2px solid #e5e7eb;
        }

        td {
            padding: 1rem;
            border-bottom: 1px solid #e5e7eb;
        }

        .actions {
            display: flex;
            gap: 0.5rem;
        }

        .edit {
            background: var(--primary);
            color: white;
        }

        .delete {
            background: var(--danger);
            color: white;
        }

        .edit:hover {
            background: var(--primary-dark);
        }

        .delete:hover {
            background: var(--danger-dark);
        }

        tr:hover {
            background: #f9fafb;
        }

        /* Media Queries */
        @media screen and (max-width: 1024px) {
            .container {
                width: 95%;
                padding: 1.5rem;
            }
        }

        @media screen and (max-width: 768px) {
            .container {
                width: 100%;
                margin: 0;
                border-radius: 0;
            }

            h1 {
                font-size: 1.75rem;
            }

            table {
                display: block;
                overflow-x: auto;
                white-space: nowrap;
            }

            th, td {
                padding: 0.75rem;
            }

            .actions {
                flex-wrap: wrap;
            }

            .actions button {
                padding: 0.5rem 1rem;
                font-size: 0.875rem;
            }
        }

        @media screen and (max-width: 640px) {
            .container {
                padding: 1rem;
            }

            h1 {
                font-size: 1.5rem;
                margin-bottom: 1.5rem;
            }

            form {
                gap: 1rem;
            }

            input, textarea, button {
                padding: 0.625rem 0.875rem;
            }

            /* Stack table for mobile view */
            table, thead, tbody, th, td, tr {
                display: block;
            }

            thead tr {
                position: absolute;
                top: -9999px;
                left: -9999px;
            }

            tr {
                margin-bottom: 1rem;
                border: 1px solid #e5e7eb;
                border-radius: 0.5rem;
                background: #fff;
            }

            td {
                border: none;
                border-bottom: 1px solid #e5e7eb;
                position: relative;
                padding-left: 50%;
                white-space: normal;
                text-align: left;
            }

            td:before {
                position: absolute;
                left: 0.75rem;
                width: 45%;
                padding-right: 0.75rem;
                content: attr(data-label);
                font-weight: 600;
                color: #374151;
            }

            td:last-child {
                border-bottom: 0;
            }

            .actions {
                justify-content: flex-start;
            }

            .actions button {
                width: 100%;
                margin-bottom: 0.5rem;
            }
        }

        @media screen and (max-width: 480px) {
            h1 {
                font-size: 1.25rem;
            }

            .container {
                padding: 0.75rem;
            }

            input, textarea, button {
                font-size: 0.875rem;
            }
        }

        /* Dark mode support */
        @media (prefers-color-scheme: dark) {
            body {
                background: #1f2937;
                color: #f3f4f6;
            }

            .container {
                background: #111827;
            }

            input, textarea {
                background: #374151;
                border-color: #4b5563;
                color: #f3f4f6;
            }

            th {
                background: #374151;
                color: #f3f4f6;
                border-bottom-color: #4b5563;
            }

            td {
                border-bottom-color: #4b5563;
            }

            tr:hover {
                background: #2d3748;
            }

            label {
                color: #d1d5db;
            }
        }