 /* --- CSS Variables and Reset --- */
        :root {
            --dc-primary: #4361ee;
            --dc-primary-dark: #3a56d4;
            --dc-secondary: #7209b7;
            --dc-light: #f8f9fa;
            --dc-dark: #212529;
            --dc-success: #28a745;
            --dc-danger: #dc3545;
            --dc-border-radius: 16px;
            --dc-card-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
        }

        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }      
        /* --- Main Layout --- */
        .dc-container {
            max-width: 900px;
            margin: auto;
            padding: 0.5rem;
        }

        .dc-card {
            background: white;
            border-radius: var(--dc-border-radius);
            box-shadow: var(--dc-card-shadow);
        }

        /* --- IMPROVED: Header Style --- */
        .dc-card-header {
            background: linear-gradient(135deg, var(--dc-primary), var(--dc-secondary));
            background-size: 200% 200%;
            color: white;
            font-weight: 600;
            padding: 1.5rem 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            animation: gradient-animation 8s ease infinite;
        }
        
        @keyframes gradient-animation {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        .dc-card-header h1 {
            font-size: 1.75rem; /* Increased font size */
            margin: 0;
        }

        .dc-card-body {
            padding: 2rem;
        }

        /* --- Form Elements --- */
        .dc-form-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
        }
        .dc-form-grid-col {
            flex: 1 1 100%;
        }
        @media (min-width: 768px) {
            .dc-form-grid-col {
                flex-basis: calc(50% - 0.75rem);
            }
        }
        
        .dc-form-group {
            margin-bottom: 1.5rem;
        }

        .dc-form-label {
            font-weight: 600;
            color: #495057;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .dc-textarea {
            width: 100%;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            padding: 1rem 1.25rem;
            font-size: 1rem;
            font-family: inherit;
            transition: all 0.3s ease;
            min-height: 180px;
            resize: vertical;
        }
        .dc-textarea:focus {
            border-color: var(--dc-primary);
            box-shadow: 0 4px 12px rgba(67, 97, 238, 0.15);
            outline: none;
        }
        
        .dc-form-text {
            font-size: 0.875rem;
            color: #6c757d;
            margin-top: 0.5rem;
        }

        /* --- Buttons --- */
        .dc-actions {
            display: flex;
            justify-content: center; /* Centered buttons */
            gap: 1rem;
        }
        .dc-btn {
            flex: 0 1 auto; /* Stop buttons from stretching */
            border-radius: 12px;
            padding: 0.875rem 1.5rem;
            font-weight: 600;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            cursor: pointer;
            border: none;
            font-size: 1rem;
        }

        .dc-btn-primary {
            background: linear-gradient(135deg, var(--dc-primary), var(--dc-primary-dark));
            color: white;
        }
        .dc-btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
        }
        .dc-btn-primary:disabled {
            background: #adb5bd;
            cursor: not-allowed;
        }

        .dc-btn-outline-secondary {
            background-color: transparent;
            border: 2px solid #ced4da;
            color: #495057;
        }
        .dc-btn-outline-secondary:hover {
            background-color: #e9ecef;
            border-color: #adb5bd;
            transform: translateY(-2px);
        }
        .dc-btn-outline-secondary:disabled {
            background-color: #e9ecef;
            cursor: not-allowed;
        }
        
        /* --- Results Area --- */
        .dc-results-container {
            margin-top: 2.5rem;
        }
        .dc-result-card {
            background-color: white;
            border: 1px solid #e9ecef;
            border-radius: 14px;
            margin-bottom: 1.5rem;
            box-shadow: 0 5px 15px rgba(0,0,0,0.04);
        }

        .dc-result-header {
            padding: 1rem 1.5rem;
            background-color: #f8f9fa;
            border-bottom: 1px solid #e9ecef;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.9rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .dc-result-body {
            padding: 1.5rem;
        }

        .dc-citation-text {
            font-family: 'JetBrains Mono', monospace;
            background-color: #2b2d42;
            color: #edf2f4;
            padding: 1.5rem;
            border-radius: 12px;
            line-height: 1.7;
            white-space: pre-wrap;
            word-wrap: break-word;
        }
        
        .dc-alert-danger {
            background-color: #f8d7da;
            color: #721c24;
            padding: 1rem;
            border-radius: 12px;
            border: 1px solid #f5c6cb;
        }

        .dc-actions-toolbar {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.75rem;
            margin-top: 1.5rem;
        }
        .dc-action-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            padding: 0.6rem 1.25rem;
            font-weight: 500;
            font-size: 0.95rem;
            border-radius: 8px;
            border: 1px solid #ced4da;
            background-color: #f8f9fa;
            color: #495057;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .dc-action-btn:hover {
            background-color: #e9ecef;
            border-color: #adb5bd;
        }
        .dc-action-btn .fa-caret-down {
            font-size: 0.8em;
            margin-left: 0.25rem;
        }
        .dc-export-btn {
            background-color: #e9ecef;
        }

        /* --- IMPROVED: Custom Dropdown & SearchComboBox --- */
        .dc-combo-box {
            position: relative;
        }
        .dc-combo-input-wrapper {
            position: relative;
        }
        .dc-combo-input {
            width: 100%;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            padding: 1rem 1.25rem;
            font-size: 1rem;
            font-family: inherit;
            transition: all 0.3s ease;
        }
        .dc-combo-input:focus {
            border-color: var(--dc-primary);
            box-shadow: 0 4px 12px rgba(67, 97, 238, 0.15);
            outline: none;
        }
        .dc-combo-arrow {
            position: absolute;
            right: 1rem;
            top: 50%;
            transform: translateY(-50%);
            color: #adb5bd;
            pointer-events: none;
            transition: transform 0.2s ease;
        }
        .dc-combo-box.is-open .dc-combo-arrow {
            transform: translateY(-50%) rotate(180deg);
        }
        .dc-combo-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.08);
            padding: 0.5rem;
            max-height: 280px;
            overflow-y: auto;
            z-index: 10;
            opacity: 0;
            transform: translateY(10px);
            visibility: hidden;
            transition: all 0.2s ease;
        }
        .dc-combo-dropdown.show {
            opacity: 1;
            transform: translateY(0);
            visibility: visible;
        }
        .dc-combo-item {
            display: block;
            padding: 0.8rem 1rem; /* Increased padding */
            border-radius: 8px;
            background: none;
            border: none;
            width: 100%;
            text-align: left;
            cursor: pointer;
            font-size: 1rem; /* Increased font size */
        }
        .dc-combo-item:hover {
            background-color: #f0f4ff;
            color: var(--dc-primary);
        }

        .dc-dropdown {
            position: relative;
        }
        .dc-dropdown-menu {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            min-width: 200px;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(0, 0, 0, 0.08);
            padding: 0.5rem;
            z-index: 10;
            opacity: 0;
            transform: translateY(10px);
            visibility: hidden;
            transition: all 0.2s ease;
        }
        .dc-dropdown-menu.show {
            opacity: 1;
            transform: translateY(0);
            visibility: visible;
        }
        .dc-dropdown-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            border-radius: 8px;
            background: none;
            border: none;
            width: 100%;
            text-align: left;
            cursor: pointer;
            font-weight: 500;
            font-size: 0.9rem;
        }
        .dc-dropdown-item i {
            width: 20px;
            color: #6c757d;
            transition: color 0.2s ease;
        }
        .dc-dropdown-item:hover {
            background-color: #f0f4ff;
            color: var(--dc-primary);
        }
        .dc-dropdown-item:hover i {
            color: var(--dc-primary);
        }

        /* --- IMPROVED: Notification System --- */
        .dc-notification-container {
            position: fixed;
            bottom: 1.5rem;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1060;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }
        .dc-toast {
            width: 350px;
            max-width: 90vw;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color: white;
            padding: 1rem 1.5rem;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            transform: translateY(120%);
            opacity: 0;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        .dc-toast.show { transform: translateY(0); opacity: 1; }
        .dc-toast-success { background: var(--dc-success); }
        .dc-toast-danger { background: var(--dc-danger); }
        .dc-toast-info { background: var(--dc-primary); }

        /* --- Utilities --- */
        .d-none { display: none !important; }
        .badge { display: inline-block; padding: .35em .65em; font-size: .75em; font-weight: 700; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25rem; }
        .bg-success { background-color: var(--dc-success) !important; }
        .bg-danger { background-color: var(--dc-danger) !important; }
        .bg-secondary { background-color: #6c757d !important; }
        .spinner-border { display: inline-block; width: 1rem; height: 1rem; vertical-align: -0.125em; border: .2em solid currentColor; border-right-color: transparent; border-radius: 50%; -webkit-animation: .75s linear infinite spinner-border; animation: .75s linear infinite spinner-border; }
        @keyframes spinner-border { to { transform: rotate(360deg); } }

        /* --- Responsive Adjustments --- */
        @media (max-width: 768px) {
            .dc-actions-toolbar .dc-btn, .dc-actions-toolbar .dc-dropdown { width: 100%; }
            .dc-card-body {padding: 1rem;}
            .dc-actions {flex-direction: column;}
            strong.doi-text.text-truncate.pe-2 {overflow: overlay;}
            .dc-result-body, .dc-citation-text{ padding: 0.8em;}
            span.status-badge.badge.bg-success {position: relative; right: -1.5rem; top: -1.2rem;}
        }
        .converter-footer {
             padding: 25px 30px;
             text-align: center;
             color: var(--gray-text);
             font-size: 1rem;
             margin-top: 40px;
             background: white;
             border-radius: 16px;
             box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
             max-width: 900px;
             margin: 30px auto;

}