        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
            padding: 20px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .container {
            max-width: 1200px;
            width: 100%;
            padding: 20px;
        }
        
        header {
            text-align: center;
            margin-bottom: 40px;
        }
        
        h1 {
            color: #2c3e50;
            font-size: 2.8rem;
            margin-bottom: 15px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }
        
        .subtitle {
            color: #34495e;
            font-size: 1.2rem;
            max-width: 600px;
            margin: 0 auto;
        }
        
        .nav-tabs {
            display: flex;
            justify-content: center;
            margin-bottom: 30px;
            flex-wrap: wrap;
            gap: 10px;
        }
        
        .nav-tab {
            padding: 12px 25px;
            background: #4d6dfd;
            color: white;
            border-radius: 8px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .nav-tab.active {
            background: #2c3e50;
            transform: translateY(-3px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        
        .page {
            display: none;
        }
        
        .page.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .input-section {
            background: white;
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
            text-align: center;
        }
        
        .input-group {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        input {
            padding: 15px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 1.1rem;
            width: 300px;
            transition: border-color 0.3s;
        }
        
        input:focus {
            border-color: #4d6dfd;
            outline: none;
        }
        
        button {
            background: #4d6dfd;
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.1rem;
            transition: background 0.3s;
        }
        
        button:hover {
            background: #2980b9;
        }
        
        .signatures-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
            width: 100%;
        }
        
        .signature-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s;
        }
        
        .signature-card:hover {
            transform: translateY(-5px);
        }
        
        .signature-title {
            background: #4d6dfd;
            color: white;
            padding: 15px;
            text-align: center;
            font-size: 1.2rem;
        }
        
        .signature-display {
            height: 150px;
            font-size: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            position: relative;
        }
        
        .signature {
            white-space: nowrap;
            position: relative;
        }
        
        .animated .signature {
            overflow: hidden;
            border-right: 3px solid;
            animation: typing 3s steps(30, end), blink-caret 0.8s step-end infinite;
        }
        
        @keyframes typing {
            from { width: 0; }
            to { width: 100%; }
        }
        
        @keyframes blink-caret {
            from, to { border-color: transparent; }
            50% { border-color: #4d6dfd; }
        }
        
        .signature-controls {
            padding: 15px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            border-top: 1px solid #eee;
        }
        
        .style-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-bottom: 10px;
        }
        
        .control-btn {
            padding: 8px 15px;
            background: #ecf0f1;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background 0.3s;
        }
        
        .control-btn:hover {
            background: #dfe6e9;
        }
        
        .animate-btn {
            background: #9b59b6;
            color: white;
        }
        
        .animate-btn:hover {
            background: #8e44ad;
        }
        
        .copy-btn {
            background: #2ecc71;
            color: white;
            display: none;
        }
        
        .copy-btn:hover {
            background: #27ae60;
        }
        
        .download-btn {
            background: #e74c3c;
            color: white;
        }
        
        .download-btn:hover {
            background: #c0392b;
        }
        
        .color-picker {
            width: 30px;
            height: 30px;
            padding: 2px;
            border: 2px solid #ddd;
            border-radius: 5px;
            cursor: pointer;
        }
        
        .angle-control {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .angle-slider {
            width: 80px;
            height: 1px !important;
        }
        
        .angle-value {
            min-width: 30px;
            height: 25px;
            text-align: center;
            font-weight: 600;
        }
        
        /* Drawing Canvas Styles */
        .drawing-container {
            background: white;
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            margin-bottom: 30px;
        }
        
        .canvas-container {
            position: relative;
            width: 100%;
            margin-bottom: 20px;
        }
        
        #signatureCanvas {
            border: 2px dashed #4d6dfd;
            border-radius: 8px;
            background: #f9f9f9;
            width: 100% ;
            height: 200px;
            touch-action: none;
            cursor: crosshair;
            padding: 0px !important;
        }
        
        .drawing-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
            margin-bottom: 20px;
        }
        
        .color-btn {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid #ddd;
        }
        
        .color-btn.active {
            border-color: #2c3e50;
            transform: scale(1.2);
        }
        
        .width-btn {
            padding: 5px 10px;
            background: #ecf0f1;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            line-height: 50px;
            height: 60px;
        }
        
        .width-btn.active {
            background: #4d6dfd;
            color: white;
        }
        
        footer {
            margin-top: 40px;
            text-align: center;
            color: #7f8c8d;
        }
        
        @media (max-width: 768px) {
            .signatures-container {
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            }
            #signaturecanvas{
                height: 300px;
            }
            .drawing-container{
                padding:5px;
            }
            h1 {
                font-size: 2.2rem;
            }
        }
        
        @media (max-width: 480px) {
            .input-group {
                flex-direction: column;
                align-items: center;
            }
            
            input {
                width: 100%;
            }
            
            button {
                width: 100%;
            }
            
            .signatures-container {
                grid-template-columns: 1fr;
            }
            
            .nav-tab {
                padding: 10px 15px;
                font-size: 0.9rem;
            }
            
            .style-controls {
                flex-direction: column;
                align-items: center;
            }
        }
        
        /* Signature Styles */
        .style1 { font-family: 'Dancing Script', cursive; }
        .style2 { font-family: 'Great Vibes', cursive; }
        .style3 { font-family: 'Parisienne', cursive; }
        .style4 { font-family: 'Sacramento', cursive; }
        .style5 { font-family: 'Tangerine', cursive; }
        .style6 { font-family: 'Cedarville Cursive', cursive; }
        .style7 { font-family: 'Rouge Script', cursive; }
        .style8 { font-family: 'Lobster', cursive; }
        .style9 { font-family: 'Pacifico', cursive; }
        .style10 { font-family: 'Satisfy', cursive; }
        .style11 { font-family: 'Alex Brush', cursive; }
        .style12 { font-family: 'Allura', cursive; }
        .style13 { font-family: 'Mr De Haviland', cursive; }
        .style14 { font-family: 'Petit Formal Script', cursive; }
        .style15 { font-family: 'Playball', cursive; }
        .style16 { font-family: 'Clicker Script', cursive; }
        .style17 { font-family: 'Marck Script', cursive; }
        .style18 { font-family: 'Meddon', cursive; }
        .style19 { font-family: 'Nothing You Could Do', cursive; }
        .style20 { font-family: 'Qwigley', cursive; }
        .style21 { font-family: 'Stalemate', cursive; }
        .style22 { font-family: 'Zeyada', cursive; }
        .style23 { font-family: 'Bad Script', cursive; }
        .style24 { font-family: 'Calligraffitti', cursive; }
        .style25 { font-family: 'Cormorant Upright', serif; }
        .style26 { font-family: 'Englebert', sans-serif; }
        .style27 { font-family: 'Fredericka the Great', cursive; }
        .style28 { font-family: 'Gruppo', cursive; }
        .style29 { font-family: 'Homemade Apple', cursive; }
        .style30 { font-family: 'Italiana', sans-serif; }
        .style31 { font-family: 'Julius Sans One', sans-serif; }
        .style32 { font-family: 'Kaushan Script', cursive; }
        .style33 { font-family: 'La Belle Aurore', cursive; }
        .style34 { font-family: 'Montez', cursive; }
        .style35 { font-family: 'Nixie One', cursive; }
        .style36 { font-family: 'Over the Rainbow', cursive; }
        .style37 { font-family: 'Prata', serif; }
        .style38 { font-family: 'Quattrocento', serif; }
        .style39 { font-family: 'Raleway', sans-serif; }
        .style40 { font-family: 'Smokum', cursive; }
        .style41 { font-family: 'Teko', sans-serif; }
        .style42 { font-family: 'UnifrakturMaguntia', cursive; }
        .style43 { font-family: 'Vollkorn', serif; }
        .style44 { font-family: 'WindSong', cursive; }
        .style45 { font-family: 'Xanh Mono', monospace; }
        .style46 { font-family: 'Yesteryear', cursive; }
        .style47 { font-family: 'Zilla Slab', serif; }
        .style48 { font-family: 'Birthstone', cursive; }
        .style49 { font-family: 'Carattere', cursive; }
        .style50 { font-family: 'Charm', cursive; }
        .style51 { font-family: 'Condiment', cursive; }
        .style52 { font-family: 'Dr Sugiyama', cursive; }
        .style53 { font-family: 'Ephesis', cursive; }
        .style54 { font-family: 'Euphoria Script', cursive; }
        .style55 { font-family: 'Fondamento', cursive; }
        .style56 { font-family: 'Grey Qo', cursive; }
        .style57 { font-family: 'Herr Von Muellerhoff', cursive; }
        .style58 { font-family: 'Italianno', cursive; }
        .style59 { font-family: 'Kalam', cursive; }
        .style60 { font-family: 'Kurale', serif; }
        .style61 { font-family: 'League Script', cursive; }
        .style62 { font-family: 'Leckerli One', cursive; }
        .style63 { font-family: 'Monsieur La Doulaise', cursive; }
        .style64 { font-family: 'Norican', cursive; }
        .style65 { font-family: 'Orelega One', cursive; }
        .style66 { font-family: 'Oxygen', sans-serif; }
        .style67 { font-family: 'Pinyon Script', cursive; }
        .style68 { font-family: 'Redressed', cursive; }
        .style69 { font-family: 'Ruthie', cursive; }
        .style70 { font-family: 'Sail', cursive; }
        .style71 { font-family: 'Sirin Stencil', cursive; }
        .style72 { font-family: 'Sorts Mill Goudy', serif; }
        .style73 { font-family: 'Syncopate', sans-serif; }
        .style74 { font-family: 'Yellowtail', cursive; }