        :root {
            --primary-color: #2c7da0;
            --secondary-color: #a9d6e5;
            --accent-color: #01497c;
            --light-gray: #f8f9fa;
            --border-color: #eaeaea;
            --text-color: #333;
            --text-muted: #6c757d;
            --header-bg: #f0f4f8;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
            --aa-pass: #28a745;
            --aa-fail: #dc3545;
            --aaa-pass: #1e7e34;
            --aaa-fail: #bd2130;
        }
  
        /* Tool Card Styles */
        .tool-card {
            background: white;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            padding: 2rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.03);
        }
        
        .tool-header {
            position: relative;
            padding-bottom: 15px;
            margin-bottom: 25px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .tool-header h2 {
            font-weight: 600;
            color: var(--primary-color);
            margin-bottom: 0.5rem;
        }
        
        /* Contrast Checker */
        .contrast-checker-container {
         //  display: flex;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }
        
        @media (max-width: 768px) {
            .contrast-checker-container {
                grid-template-columns: 1fr;
            }
        }
        
        .color-controls {
            background-color: var(--light-gray);
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
        }
        
        .preview-container {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
        }
        
        .color-group {
            margin-bottom: 1.5rem;
        }
        
        .color-label {
            font-weight: 600;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
        }
        
        .color-label i {
            margin-right: 0.5rem;
        }
        
        .color-input-group {
            display: flex;
            gap: 0.75rem;
        }
        
        .color-preview {
            width: 40px;
            height: 40px;
            border-radius: 6px;
            border: 1px solid var(--border-color);
        }
        
        .color-input {
            flex: 1; height:44px
        }
        
        .contrast-preview {
            height: 200px;
            border-radius: 8px;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            border: 1px solid var(--border-color);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }
        
        .contrast-text {
            font-size: 1.5rem;
            font-weight: 600;
            padding: 1rem;
            border-radius: 6px;
            background-color: rgba(0,0,0,0.1);
            text-align: center;
            max-width: 80%;
        }
        
        .contrast-results {
            background-color: var(--light-gray);
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
        }
        
        .result-item {
            display: flex;
            justify-content: space-between;
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--border-color);
        }
        
        .result-item:last-child {
            border-bottom: none;
        }
        
        .result-label {
            font-weight: 500;
        }
        
        .result-value {
            font-weight: 600;
            font-family: 'Courier New', monospace;
        }
        
        .ratio-display {
            font-size: 2rem;
            font-weight: 700;
            text-align: center;
            margin: 1rem 0;
        }
        
        .pass-badge {
            background-color: var(--success-color);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
        }
        
        .fail-badge {
            background-color: var(--danger-color);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
        }
        
        .rating-card {
            background-color: white;
            border-radius: 8px;
            padding: 1rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1rem;
        }
        
        .rating-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
        }
        
        .rating-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-right: 0.5rem;
            font-size: 0.75rem;
            color: white;
        }
        
        .rating-icon.pass {
            background-color: var(--success-color);
        }
        
        .rating-icon.fail {
            background-color: var(--danger-color);
        }
        
        .rating-description {
            font-size: 0.9rem;
            color: var(--text-muted);
        }
        
        .rating-bar {
            height: 8px;
            background-color: #e9ecef;
            border-radius: 4px;
            margin: 0.5rem 0;
            overflow: hidden;
        }
        
        .rating-level {
            height: 100%;
        }
        
        .wcag-levels {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .wcag-card {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            text-align: center;
        }
        
        .wcag-icon {
            font-size: 2rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }
        
        .wcag-title {
            font-weight: 600;
            margin-bottom: 0.5rem;
        }
        
        .wcag-description {
            font-size: 0.9rem;
            color: var(--text-muted);
        }
        
        .wcag-requirement {
            font-weight: 600;
            margin: 0.5rem 0;
        }
        
        .contrast-examples {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
        }
        
        .example-card {
            background-color: white;
            border-radius: 8px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            box-shadow: 0 4px 8px rgba(0,0,0,0.05);
            cursor: pointer;
        }
        
        .example-preview {
            height: 100px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }
        
        .example-info {
            padding: 1rem;
        }
        
        .example-ratio {
            font-weight: 600;
            margin-bottom: 0.25rem;
        }
        
        .example-rating {
            font-size: 0.85rem;
        }
        
        .pass {
            color: var(--success-color);
        }
        
        .fail {
            color: var(--danger-color);
        }
        
        .contrast-scale {
            display: flex;
            height: 40px;
            border-radius: 6px;
            overflow: hidden;
            margin: 1.5rem 0;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }
        
        .scale-item {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            font-size: 0.85rem;
            text-shadow: 0 1px 2px rgba(0,0,0,0.3);
        }
        
        .action-buttons {
            display: flex;
            gap: 0.75rem;
            margin-top: 1.5rem;
        }
        
     
        .action-btn:hover {
            background-color: var(--light-gray);
        }
        
        .swap-btn {
            background-color: var(--light-gray);
            border: none;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
            margin: 0 auto;
        }
        
        .swap-btn:hover {
            background-color: var(--primary-color);
            color: white;
            transform: rotate(180deg);
        }
        
        /* Related Tools */
        .related-tools {
            background-color: white;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }
        
        .related-title {
            font-weight: 600;
            margin-bottom: 1.25rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border-color);
            color: var(--primary-color);
        }
        
        .related-tool {
            display: flex;
            align-items: center;
            padding: 0.75rem 0;
            border-bottom: 1px solid var(--border-color);
            transition: background-color 0.3s;
        }
        
        .related-tool:hover {
            background-color: var(--light-gray);
        }
        
        .related-tool:last-child {
            border-bottom: none;
        }
        
        .related-icon {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            background-color: rgba(44, 125, 160, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            color: var(--primary-color);
        }
        
        .related-name {
            font-weight: 500;
            margin-bottom: 0.25rem;
        }
        
        .related-desc {
            color: var(--text-muted);
            font-size: 0.9rem;
        }
        
        /* Accessibility Info */
        .accessibility-info {
            background-color: white;
            border-radius: 8px;
            padding: 1.5rem;
            border: 1px solid var(--border-color);
            margin-bottom: 1.5rem;
        }
        
        .info-title {
            font-weight: 600;
            margin-bottom: 1rem;
            color: var(--primary-color);
        }
        
        .info-content {
               display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem;
        }
        
        .stat-card {
            background-color: var(--light-gray);
            border-radius: 8px;
            padding: 1rem;
            border-left: 4px solid var(--primary-color);
            margin: 1rem 0;
        }
        
        .stat-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        
        .stat-label {
            font-size: 0.9rem;
            color: var(--text-muted);
        }
        
        /* Footer */
        .footer {
            background-color: var(--light-gray);
            padding: 3rem 0;
            margin-top: 3rem;
        }
        
        /* Responsive adjustments */
        @media (max-width: 991px) {
            .tool-container {
                flex-direction: column;
            }
            
            .tool-sidebar {
                width: 100%;
            }
        }
    