        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }

        .header {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid #f0f0f0;
        }

        h1 {
            color: #333;
            margin-bottom: 10px;
            font-size: 2.5em;
        }

        .lead {
            color: #666;
            font-size: 1.2em;
            margin-bottom: 30px;
        }

        .form-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }

        @media (max-width: 768px) {
            .form-container {
                grid-template-columns: 1fr;
            }
        }

        .form-section {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            border: 1px solid #e9ecef;
        }

        .form-section h3 {
            color: #495057;
            margin-bottom: 15px;
            font-size: 1.3em;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .form-section h3 i {
            color: #6c757d;
        }

        .form-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #495057;
            font-size: 0.95em;
        }

        small {
            color: #6c757d;
            font-size: 0.85em;
            display: block;
            margin-top: 5px;
        }

        input,
        select,
        textarea {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: white;
        }

        input:focus,
        select:focus,
        textarea:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        textarea {
            min-height: 120px;
            font-family: 'SF Mono', Monaco, 'Courier New', monospace;
            font-size: 14px;
            line-height: 1.5;
            resize: vertical;
        }

        .target-input-group {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .target-input-group input[type="range"] {
            flex: 1;
        }

        .target-input-group input[type="number"] {
            width: 100px;
        }

        .form-actions {
            grid-column: 1 / -1;
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin-top: 20px;
        }

        .btn {
            padding: 14px 28px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            border: none;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }

        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
        }

        .btn-secondary {
            background: #6c757d;
            color: white;
        }

        .btn-secondary:hover {
            background: #5a6268;
        }

        .btn-success {
            background: #28a745;
            color: white;
        }

        .btn-info {
            background: #17a2b8;
            color: white;
        }

        .btn-danger {
            background: #dc3545;
            color: white;
        }

        .btn-sm {
            padding: 8px 16px;
            font-size: 14px;
        }

        .result {
            margin-top: 40px;
            padding: 25px;
            background: #f8f9fa;
            border-radius: 10px;
            border-left: 5px solid #28a745;
            display: none;
        }

        .result h3 {
            color: #212529;
            margin-bottom: 15px;
            font-size: 1.5em;
        }

        pre {
            background: #212529;
            color: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            overflow: auto;
            font-family: 'SF Mono', Monaco, 'Courier New', monospace;
            font-size: 14px;
            line-height: 1.5;
            margin: 15px 0;
            max-height: 400px;
        }

        .success {
            color: #28a745;
            font-weight: 600;
            margin: 15px 0;
            padding: 10px 15px;
            background: #d4edda;
            border-radius: 5px;
            border: 1px solid #c3e6cb;
        }

        .error {
            color: #dc3545;
            margin: 15px 0;
            padding: 10px 15px;
            background: #f8d7da;
            border-radius: 5px;
            border: 1px solid #f5c6cb;
        }

        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, .3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
        }

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

        .example-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .example-buttons .btn {
            padding: 8px 12px;
            font-size: 14px;
        }

        .tabs {
            display: flex;
            border-bottom: 2px solid #e9ecef;
            margin-bottom: 25px;
            flex-wrap: wrap;
        }

        .tab {
            padding: 12px 25px;
            cursor: pointer;
            font-weight: 600;
            color: #6c757d;
            border-bottom: 3px solid transparent;
            transition: all 0.3s ease;
        }

        .tab:hover {
            color: #495057;
        }

        .tab.active {
            color: #667eea;
            border-bottom-color: #667eea;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .tab-description {
            color: #6c757d;
            margin-bottom: 20px;
        }

        .template-selector {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 15px;
            margin-bottom: 25px;
        }

        .template-card {
            background: white;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            padding: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .template-card:hover {
            border-color: #667eea;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .template-card.active {
            border-color: #28a745;
            background: #f8fff9;
        }

        .template-card h4 {
            color: #495057;
            margin-bottom: 5px;
            font-size: 1.1em;
        }

        .template-card p {
            color: #6c757d;
            font-size: 0.9em;
            line-height: 1.4;
            margin-bottom: 10px;
        }

        .badge {
            display: inline-block;
            padding: 3px 8px;
            font-size: 0.8em;
            border-radius: 12px;
            margin-right: 5px;
            margin-bottom: 5px;
        }

        .badge-primary {
            background: #e3f2fd;
            color: #1976d2;
        }

        .badge-success {
            background: #e8f5e9;
            color: #2e7d32;
        }

        .badge-info {
            background: #e3f2fd;
            color: #0288d1;
        }

        .badge-warning {
            background: #fff3e0;
            color: #f57c00;
        }

        .badge-secondary {
            background: #f5f5f5;
            color: #616161;
        }

        .badge-dark {
            background: #e0e0e0;
            color: #212121;
        }

        .existing-slos {
            background: white;
            border-radius: 8px;
            padding: 20px;
            border: 1px solid #e9ecef;
        }

        .slos-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 15px;
        }

        .slo-card {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            border: 1px solid #e9ecef;
        }

        .slo-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .slo-card-header .btn {
            padding: 5px 10px;
            font-size: 0.8em;
        }

        .slo-card-body {
            font-size: 0.85em;
            color: #6c757d;
            margin-bottom: 10px;
        }

        .slo-card-link {
            display: inline-block;
            margin-top: 10px;
            font-size: 0.8em;
            color: #667eea;
            text-decoration: none;
        }

        .slo-card-link:hover {
            text-decoration: underline;
        }

        .no-slos {
            color: #6c757d;
            text-align: center;
            padding: 40px;
        }

        .error-message {
            color: #dc3545;
            text-align: center;
            padding: 20px;
        }

        .footer {
            margin-top: 40px;
            padding-top: 20px;
            border-top: 1px solid #e9ecef;
            text-align: center;
            color: #6c757d;
            font-size: 0.9em;
        }

        .logo {
            font-size: 2em;
            font-weight: bold;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 10px;
        }

        .alerting-config {
            padding: 15px;
            background: #fff3cd;
            border-radius: 8px;
            border: 1px solid #ffc107;
            margin-top: 10px;
            display: none;
        }

        .alerting-config h4 {
            color: #856404;
            margin-bottom: 15px;
            font-size: 1.1em;
        }

        .label-input {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
        }

        .label-input .label-key,
        .label-input .label-value {
            flex: 1;
        }

        .threshold-row {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
            align-items: center;
            padding: 10px;
            background: white;
            border-radius: 6px;
            border: 1px solid #e9ecef;
            flex-wrap: wrap;
        }

        .threshold-row select,
        .threshold-row input {
            flex: 1;
            padding: 8px;
            min-width: 100px;
        }

        .threshold-label {
            align-self: center;
            color: #666;
            white-space: nowrap;
        }

        .threshold-tips {
            margin-top: 10px;
            font-size: 0.85em;
            color: #856404;
        }

        .output-formats {
            display: flex;
            gap: 15px;
            margin-top: 10px;
            flex-wrap: wrap;
        }

        .output-formats label {
            display: flex;
            align-items: center;
            gap: 5px;
            font-weight: normal;
        }

        .github-link {
            color: #333;
            text-decoration: none;
            background: #f5f5f5;
            padding: 3px 8px;
            border-radius: 4px;
            margin-left: 5px;
            font-weight: 500;
        }

        a {
            color: #667eea;
            text-decoration: none;
        }

        a:hover {
            text-decoration: underline;
        }

        .success-details {
            margin-top: 5px;
            font-size: 0.9em;
            opacity: 0.9;
        }

        .fa-spinner {
            animation: spin 1s linear infinite;
            margin-right: 8px;
        }

        .logo-icon {
            font-size: 1.5em;
            margin-right: 10px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .loading-indicator {
            text-align: center;
            padding: 20px;
            display: none;
        }

        .loading-indicator .loading {
            width: 40px;
            height: 40px;
            margin: 0 auto 10px;
        }

        .telegram-help-btn {
            margin-left: 10px;
            padding: 6px 12px;
            font-size: 0.85em;
        }
